HCBBS Forum (English)
Submit Chemical Projects / Find Solutions
Amplify Your Requirements on a Broader Chemical Platform *Engineering · Technology · Equipment · Solutions*
Submit Request

How to detect overlapping lines on the same layer in CAD?

2009-03-23View Original

Thread Content

How to detect overlapping lines on the same layer in CAD? It’s difficult to avoid two straight lines when drawing, but errors occur when using auxiliary plugins to calculate their lengths. For example, when drawing two lines of 1000 each, 300 units overlap; when using a plugin to calculate this, the figure is 2000, but in reality there are only 1400 units of overlap.
Reply #22009-03-23
You can use “CTRL+A” to select all objects in CAD, and then determine whether the lines overlap by checking the grips (this method is rather cumbersome). Of course, if accuracy is required when drawing, overlapping will not occur. This post was last edited by Shiny Purple Cat on 2009-3-23 12:55.]
Reply #32009-03-23
If there is an overlap, when selecting the entire straight line, the number of selected items displayed in the command bar is not 1.
Reply #42009-03-23
If there’s overlap, just delete it; there’s nothing to think about. Delete one first, and then delete the shorter ones as well.
Reply #52009-03-23
You can select a line to view the location of its grip points. This method is also inconvenient when the online endpoint is outside the screen. It’s best to develop good *habits when drawing.
Reply #62009-03-24
So who knows if there’s any plugin or Lisp program that can merge two overlapping lines on the same layer into one line?
Reply #72009-03-24
It’s actually very difficult to determine, and even using Lisp, it’s rather troublesome. The approach in Lisp is as follows: ssget '((0 . \"LINE\")) first compares horizontal lines; it takes one of these lines and compares it with the other lines. If the Y-coordinates of the starting and ending points of two lines are the same, then there is an intersection, which indicates that the lines coincide, and those two lines are recorded. Let’s compare vertical lines again. This approach cannot be used to determine inclined lines.

Submit a Project

**Looking for Chemical Technology, Equipment & Solutions?** No Registration Required Broader Platform Exposure | Global Chemical Service Provider Connections

Submit Request — Free Consultation

Disclaimer

This is an automated machine translation of the original thread. Some technical terms may have inaccuracies; the original text shall prevail. Click "View Original" at the top right to access the source page, which supports IP-based automatic real-time language translation. Please watch out for contact details and sales inducements to prevent fraud. All content and translations are for reference only, representing solely the poster's personal views. For enquiries, email service@hcbbs.com.