amogle Posted August 10, 2012 Share Posted August 10, 2012 Here is a little script I wrote a while ago to export a DWG for Illustrator. What it does is group everything by class to make things easier to manage in illustrator. Any comments welcome. Script: {Export DWG with Grouped Classes for Illustrator} PROCEDURE Expill; VAR noofcls, classno : LONGINT; ClassH, noOfCl: STRING; BEGIN noofcls:= ClassNum; classno:=1; WHILE classno <= noofcls DO BEGIN ClassH:= ClassList(classno); SelectObj((C= ClassH)); Group; DSelectAll; classno := classno + 1; END; DoMenuTextByName( 'Export DXF/DWG', 0 ); SelectAll; ungroup; DSelectAll; END; Run(Expill); Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.