Jump to content

Script Pro For Batch Set By Layer


Recommended Posts

Posted

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!

Posted

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

Posted

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...

Posted

Another script writer you may be interested in:

http://www.cadtutor.net/forum/showpost.php?p=295487&postcount=23

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...