Jump to content

Recommended Posts

Posted

I need a solution for the following problem: If I have a line, and a few rectangles crossing it, is there a command which can remove the line portions, which are contained in the reactangulars. Here's a snapshot of the things I'm trying to explain:

 

http://img126.imageshack.us/img126/6726/exmplkk8.jpg

 

Just to add - I need to do multiple trimming with one command. Clicking inside every single rectangle is not a solution :huh:

 

EDIT: I corrected your link as it was broken

Posted

Type tr then hit enter 2 times, then select the trim lines.

Posted

Yes it works fine, but I need to trim out the line inside all the rectangles with less clicks, because on my project i have a line which is crossing... hmm about 200 rectangles and need to trim it. I know it can be done with array but I was wondering if there's a command similar to trim that can do the job.

Posted

My bad, not reading the question correct, I understand now you do not want to click every line one at a time, I think you need lisp to carry this one out.

Posted

if the rectangles are plines, you could use extrim (bonus tool, i mean express). just pick the pline, then pick inside the rec. and on to the next.

i'll look at extrim tomorrow and see if i can modify it to allow you to select multiples and just set to trim inside of closed objects, if time permits.

Posted
if the rectangles are plines, you could use extrim (bonus tool, i mean express). just pick the pline, then pick inside the rec. and on to the next.

i'll look at extrim tomorrow and see if i can modify it to allow you to select multiples and just set to trim inside of closed objects, if time permits.

I tried the extrim command before but it nothing happens when I select the rectangle and click inside of it, althought it's a pline :geek:

Posted

Sounds like your lines and your rectangles are not in the same plane. Flatten your drawing and then try again.

Posted

I dont know of anyway of doing what your asking quickly with out writing a lisp routine... You could always just do a quick fix and use a wipeout on all the rectangles....the complete line will still be there but wont show through the rectangles..

 

Thats just a quick fix in case you neet to print it asap or something..

Posted

Thread moved to here, try out the lisp above and see how you get on.

Posted

it works pretty fine! Thank you very much : )

  • 13 years later...
Posted
On 8/22/2008 at 2:25 PM, BOB'27T said:

Here's a lisp called "CHOP", which trims everything in a window:

Chop.lsp 5.4 kB · 19 downloads

@BOB'27T

This post is an oldie but goodie!!

Could you modify your Chop routine to allow me to single select a rectangle?

I hope so....lol

Thanks, 

Tom

 

Posted

Bob27T... last visited 2010.. might not be visiting in a hurry...

 

 

It should be possible, if you search online there are LISPs out there that ill get you the corners of a rectangle, get them and replace P1 and P3 in the relevant part of the code and that should work.. Look for the part ";-CHOP WITH WINDOW" for P1 and P3,  then after the ((= P1 "W") line put in the select rectangle and get points P1 and P3 code from the internet and it should work.

 

however it is Sunday here, and CAD is off, so I can give you tips but not try anything for you

Posted

Using the EXTRIM (Express Tool) command you could select a rectangle and pick inside to trim inside.

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