Jump to content

Recommended Posts

Posted

I got three line of command, I tried to run in Autocad with the Script writer form Mac Lee, but only run in the first drawing. Even if I add the folder which contains more that one drawing, this run only in the fisrt one and then stops.

The lines are:

 

(command "_.-insert" "BLOCK_NAME=C:/Users/BLOCK_NAME" "y" (command))
(command "_.attsync" "n" "BLOCK_NAME")
(command "_.qsave" "_.close")

 

Could anyone help me to see if I am missing something?

Posted

You have to OPEN DWG 1st so the script has something to work on. 

Open dwg1
(command "_.-insert" "BLOCK_NAME=C:/Users/BLOCK_NAME" "y" (command))
(command "_.attsync" "n" "BLOCK_NAME")
_.qsave _.close
Open dwg2
(command "_.-insert" "BLOCK_NAME=C:/Users/BLOCK_NAME" "y" (command))
(command "_.attsync" "n" "BLOCK_NAME")
_.qsave _.close
Open dwg3
(command "_.-insert" "BLOCK_NAME=C:/Users/BLOCK_NAME" "y" (command))
(command "_.attsync" "n" "BLOCK_NAME")
_.qsave _.close

 

  • Agree 1

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