
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
There is a code I'm working on right now, where the code will find and display the coordinates and radius of ONLY circle and arcs.
I can filter them with:
(SSGET "_X" '((0 . "ARC,CIRCLE")))
BUT, I also have blocks where two circles with different radius is placed on the same coordinate.
Since these are blocks, the code above does not recognize the blocks as circles, so I can't get the coordinates.
I've tried:
(SETQ P1 (getstring T "Enter here: "))
\(SETQ ss1 (ssget "_x" '((0 . "INSERT")(2 . P1)))
CPT (CDR (ASSOC 10 (SETQ ENTS (ENTGET EN))))
PTR (CDR (ASSOC 40 (SETQ ENTS (ENTGET EN))))
UCPT (trans CPT 0 1)
Which does allow me to get the coordinate of the center, but not the radius. Is ASSOC 40 not the right number to use?
If someone can help me, that would be very helpful.
Solved! Go to Solution.