didko Posted August 20, 2008 Share Posted August 20, 2008 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 EDIT: I corrected your link as it was broken Quote Link to comment Share on other sites More sharing options...
Lazer Posted August 20, 2008 Share Posted August 20, 2008 Type tr then hit enter 2 times, then select the trim lines. Quote Link to comment Share on other sites More sharing options...
didko Posted August 20, 2008 Author Share Posted August 20, 2008 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. Quote Link to comment Share on other sites More sharing options...
Lazer Posted August 20, 2008 Share Posted August 20, 2008 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. Quote Link to comment Share on other sites More sharing options...
alanjt Posted August 21, 2008 Share Posted August 21, 2008 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. Quote Link to comment Share on other sites More sharing options...
didko Posted August 21, 2008 Author Share Posted August 21, 2008 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 Quote Link to comment Share on other sites More sharing options...
Cad64 Posted August 21, 2008 Share Posted August 21, 2008 Sounds like your lines and your rectangles are not in the same plane. Flatten your drawing and then try again. Quote Link to comment Share on other sites More sharing options...
smorales02 Posted August 21, 2008 Share Posted August 21, 2008 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.. Quote Link to comment Share on other sites More sharing options...
BOB'27T Posted August 22, 2008 Share Posted August 22, 2008 Here's a lisp called "CHOP", which trims everything in a window: Chop.lsp Quote Link to comment Share on other sites More sharing options...
Lazer Posted August 22, 2008 Share Posted August 22, 2008 Thread moved to here, try out the lisp above and see how you get on. Quote Link to comment Share on other sites More sharing options...
didko Posted August 25, 2008 Author Share Posted August 25, 2008 it works pretty fine! Thank you very much : ) Quote Link to comment Share on other sites More sharing options...
Abrasive Posted June 26, 2022 Share Posted June 26, 2022 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 Quote Link to comment Share on other sites More sharing options...
Steven P Posted June 26, 2022 Share Posted June 26, 2022 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 Quote Link to comment Share on other sites More sharing options...
tombu Posted June 27, 2022 Share Posted June 27, 2022 Using the EXTRIM (Express Tool) command you could select a rectangle and pick inside to trim inside. 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.