iampeter Posted August 6, 2014 Share Posted August 6, 2014 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 Quote Link to comment Share on other sites More sharing options...
BIGAL Posted August 7, 2014 Share Posted August 7, 2014 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 Quote Link to comment Share on other sites More sharing options...
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.