Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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.

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

Posted

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

Posted

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.

Posted

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

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