Jump to content

Running scripts problem


dingleboy

Recommended Posts

Hi all,

 

Trying to run a simple script on a bunch of files and am running into trouble. Using ScriptPro and AutoCAD Architecture 2012. I read Lee Mac's script writing tutorial http://lee-mac.com/scriptwriting.html but am not using The Script Writer (which looks pretty super).

 

Macros should change the plot state of a specific layer, "X-CHEK" in this case, to No Plot, save, close the drawing. Here's what I have (after many small and tests):

 

-LAYER P N

X-CHEK

 

_.save _Y _.close

 

Results have been mixed. Currently ScriptPro is reporting failed for each drawing, but I know the layer state change was successful for about 80% of the drawings because saving the drawings in AutoCAD increases the file size from 8-10kb to ~80kb. Solution has been to go back and run the script on those unsuccessful drawings.

 

Another strange thing that seemed to happen without warning was that AutoCAD stopped running the script altogether, flashing _.SCRIPT at the command line and closing the drawing without saving.

 

Any ideas what I'm doing wrong?

Link to comment
Share on other sites

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