TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: myloveflyer on March 29, 2020, 11:20:03 AM

Title: How to output text correspondence?
Post by: myloveflyer on March 29, 2020, 11:20:03 AM
Regarding the output text correspondence table or text file, I have written the automatic numbering of circles and lines. Now I need to output the correspondence between them. For details, please see the DWG file in the attachment. Please help me to see how to write the output program.

Thanks!
Title: Re: How to output text correspondence?
Post by: myloveflyer on March 30, 2020, 10:50:37 AM
I now think of the method as follows:
1.Straight line extends to the center of the circle
2.Get circle center coordinates and numbers
3.Get the starting point and end point coordinates and number of the straight line
4. Compare the two tables in step 2 and step 3.
5.Get the circle center number corresponding to the final line number
Title: Re: How to output text correspondence?
Post by: BIGAL on April 01, 2020, 09:38:26 PM
The solutions are at Cadtutor