Jump to content

Automatic trim on crossing lines


Recommended Posts

Couldnt find it with the search so here is my question:

 

Our company works with autocad to draw P&ID's. We got a small thing that may saves us a lot of time. Our drawing contains a lot of crossing lines wich need to be trimmed. Is there a way in autocad to automatic hide a part of a (horizontal or vertical) line when it is crossed by another line. It would be perfect if the line is still one single line.

 

See attachment for example:Capture.JPG

Link to comment
Share on other sites

AutoCAD electrical can do this this and I therefore assume AutoCAD P&ID can too (if you have deep pockets). However electrical leaves the lines as individual elements that remain "joined" through its internal database. They don't automatically repair themselves if you remove the "cutting" line. At least I don't think so, must give it a try. I think I would go down the wipeout route if it were me :)

Link to comment
Share on other sites

We use are own created autoCAD P&ID ;) But it's just a basic autocad.

 

Can you create a linetype in autocad with a wipeout along the side of the line? Is that an idea? Only one problem: it probably wil a completly blank cross...

Link to comment
Share on other sites

Why does the line have to remain one continuous line?

 

Perhaps a lisp routine could be developed that would place a pre-defined (polyline) wipeout frame on either side of a line at all designated locations. It may also have to include the option of rotating the frames depending on whether it is being used horizontally or vertically.

Link to comment
Share on other sites

I think it would be more easy to edit.

Like when there is no crossing line anymore, it changes instantly back to a normal line with no extra command for healing/joining your 2 lines. It's also more easy when you move or stretch.

Link to comment
Share on other sites

Well... My Lisp isn't that good... It's also a kind of hard routine to make! :(

 

I guess I have to disappoint my co-workers...

Link to comment
Share on other sites

By the way...

 

Is there a way in VBA to find the coordinates of 2 crossing lines?

If I have those points, I can place a wipeout.... Or place 2 lines...

Link to comment
Share on other sites

I'm sure there is but you'll have to ask that question in another forum. There are several CADTutor members who could advise you on the coding. I'm not one of them. Sorry.

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