DWG Destroyer Posted February 8, 2010 Posted February 8, 2010 I have an issue with using scriptpro to batch edit a bunch of drawing files, probably down to my ineptitude in composing scripts... What I have tried to do is produce a simple script that will run through a set of commands to ultimately ready a drawing for its use as an XREF. Here is what I have come up with so far: (COMMAND "TILEMODE" "1" "_AI_SELALL" "SETBYLAYER" "YES" "YES" "TILEMODE" "0" "QSAVE" ) A most simple chain; I cannot understand what would prevent it from doing its job. It seems when I run it, it finds a problem with recognizing the "_AI_SELALL" command, and cannot progress any further. When I manually type "_AI_SELALL" into a drawing, it functions as it should. Could anyone offer this poor confused novice a scrap of advice? Any input is always greatly appreciated! Quote
lpseifert Posted February 8, 2010 Posted February 8, 2010 If you want to use Scriptpro, I think it needs to be a script file (with a .scr extension). If you are trying to make sure the the entities in MS are set by layer, try selecting by All instead of _AI_SELALL. tilemode 1 setbylayer all y y tilemode 0 qsave Quote
DWG Destroyer Posted February 8, 2010 Author Posted February 8, 2010 Ahhh i see. Got it working now! But, what if i were to want to use "_AI_SELALL" for some other reason? I'm sure somewhere down the line i will find the need to incorporate it into a script... Quote
Lee Mac Posted February 8, 2010 Posted February 8, 2010 Another script writer you may be interested in: http://www.cadtutor.net/forum/showpost.php?p=295487&postcount=23 Quote
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.