Author Topic: multiple line to one line by one selection in mouse  (Read 1792 times)

0 Members and 1 Guest are viewing this topic.

banna.kbet@gmail.com

  • Guest
multiple line to one line by one selection in mouse
« on: March 02, 2017, 12:13:14 AM »
Hi,
 
I have a pipe drawing in which each pipe has many different sections like small line, arc, blank space etc.
When I click on one endpoint of that like it will automatically connect all small lines, arc and bank spaces between them.
I want to connect them all into one line.
 
I have different colors line. Connecting lines could be done by calculating distance or could be done by color.
 
I also want to know the whole pipeline length.
 
If any one could help me I will be very glad.
Please help me with C# coding or LISP.
 
thanks-
Banna

BIGAL

  • Swamp Rat
  • Posts: 1396
  • 40 + years of using Autocad
Re: multiple line to one line by one selection in mouse
« Reply #1 on: March 02, 2017, 08:55:53 PM »
Dont know about auto join but have you tried Pedit or Pe and Join ? is this what your trying to automate ? What happens when you get to a Tee ? Which direction do you go in ?

As a start select lots of object sort all objects by end points, select the start object and use pedit iterating through the end points and joining note you may have to swap start & end as you dont know which way it was drawn L-R or R-L.
A man who never made a mistake never made anything