Jump to content

Can anyone help me to write a script file?


Recommended Posts

I try to open a file to Erase an object which is a block named GEMLOGO, then Purge_all in the drawing and Svae & Close. Can anyone help me to write a script file? so i can run this file throughout a set of drawings.

 

Thanks,

 

Peter

Link to comment
Share on other sites

The script is easy bit test on copies first just double chcek the sequence code not tested.

open dwg1 (setq ss (ssget "X" (list (cons 0 "INSERT")(cons 2 "GEMLOGO"))))(command "erase" ss "")(command "-purge" "a" "" "N") close Y
open dwg2 (setq ss (ssget "X" (list (cons 0 "INSERT")(cons 2 "GEMLOGO"))))(command "erase" ss "")(command "-purge" "a" "" "N") close Y
open dwg3 (setq ss (ssget "X" (list (cons 0 "INSERT")(cons 2 "GEMLOGO"))))(command "erase" ss "")(command "-purge" "a" "" "N") close Y

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