Jump to content

Erase objects from selection


sivapathasunderam

Recommended Posts

Dear all;

 

My end goal is to erase some of the parts from multiple drawings

Command:

Erase

window

specify first corner

specify opposite corner

enter

 

Please correct the below "script"

(command "Erase" "W" x,y x,y "")

 

"First corner + opposite corner coordinates are same for many drawings"

 

Thanks in advance for any help/advice

Siva

Edited by sivapathasunderam
added one sentence
Link to comment
Share on other sites

If you want to do this using a script, to batch process a folder full of drawings, don't you need to also open, save and close each drawing as well?

Link to comment
Share on other sites

a simple example

 

open dwg1 (command "._erase" "_W" (list 5.1 11.2)(list 8.1 8.1) "") close Y
open dwg2 (command "._erase" "_W" (list 5.1 11.2)(list 8.1 8.1) "") close Y
open dwg3 (command "._erase" "_W" (list 5.1 11.2)(list 8.1 8.1) "") close Y

Link to comment
Share on other sites

;; x y x y

(command "._erase" "_W" (list 5.1 11.2)(list 8.1 8.1) "")

 

open dwg1 (command "._erase" "_W" (list 5.1 11.2)(list 8.1 8.1) "") close Y

open dwg2 (command "._erase" "_W" (list 5.1 11.2)(list 8.1 8.1) "") close Y

open dwg3 (command "._erase" "_W" (list 5.1 11.2)(list 8.1 8.1) "") close Y

 

Excellent!

I really appreciate it.

 

Thanks for the help!

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