CB89 Posted October 15, 2010 Posted October 15, 2010 hello to every one, I was looking for a way to make a block that would trim any line that would go thru it. For example if i have a block of a circle and it has many lines connecting to it at various angles, Is there a way to have the lines automatically trim? I found this Article but I am confused of how it would work with a circle. http://www.afralisp.net/archive/lispa/lisp52.htm Quote
fuccaro Posted October 16, 2010 Posted October 16, 2010 CB89 Don't try to post hyperlinks, you will get your posts moderated. That means that it will appear for public only after a moderator approves it. Read the forum rules. Quote
ReMark Posted October 16, 2010 Posted October 16, 2010 I've seen this feature in AutoCAD Electrical with the blocks it inserts but I wonder, since we are dealing with blocks, if the insertion actually "breaks" the line instead. Quote
Cat Posted October 16, 2010 Posted October 16, 2010 hello to every one, I was looking for a way to make a block that would trim any line that would go thru it. For example if i have a block of a circle and it has many lines connecting to it at various angles, Is there a way to have the lines automatically trim? I found this Article but I am confused of how it would work with a circle. http://www.afralisp.net/archive/lispa/lisp52.htm That's a lot of code to break at two points. To use that code with a circle, you would have to have consistent specific points where any lines crossed through the circle. Quote
lpseifert Posted October 16, 2010 Posted October 16, 2010 If you need to 'trim' the lines for appearance purposes you can create a block that has a circle and a wipeout with a polygon as the border. It doesn't actually trim the lines, just 'hides' them. Attached is a dynamic block that is used for property corners on survey drawings. DB-01.dwg Quote
BIGAL Posted October 18, 2010 Posted October 18, 2010 Another way maybe if you really want to trim rather than hide would be to have 2 blocks the first being a polyline around your block just explode then "Extrim" "last" Erase last then insert block required. You could do it as a command or a lisp. Quote
CB89 Posted October 18, 2010 Author Posted October 18, 2010 Wow, thank you for all the replies. That was faster than I expected. "lpseifert" that is so simple I didn't even think about it thank you. I guess for my purposes this would be the easiest and fastest way. As to the lisp commands, I just found out about the whole programming thing a couple of weeks ago. Im still a complete noob to the whole idea but I am trying to learn with all the links from this site. (they didn't teach lisp at my high school) But I will try the different approaches. Thank You to everyone PS: Sorry about the link, like I said NOOB. Quote
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.