Im trying to build somewhat of a join function that will entmod lines/arcs. I'm searching a 1x1 area around each endpoint for like objects' endpoints (sort of the same idea as a fuzz distance,
just not nearly as intricate).
I plan on using entmod to relocate the start/endpoint of the lines that find matches within the search area and allowing the "pedit" command to do the rest at the end of the routine.
Problem is, arcs don't have a DXF 10 as a startpoint and 11 as an endpoint, DXF 10 is the center of the arc.
So, I'm wondering if there is a way to use DXF codes from an arc in a SSGET function that will select the arc if its startpoint/endpoint is within the
fuzz distanceThis is what I have for the SSGET section but realized the arc filter wasnt correct:
(defun getObjectsToModify
(pt lay
/ x y pp pm mp mm
) pp
(list (+ x
1.5) (+ y
1.5) 0.0) pm
(list (+ x
1.5) (- y
1.5) 0.0) mp
(list (- x
1.5) (+ y
1.5) 0.0) mm
(list (- x
1.5) (- y
1.5) 0.0) )
;;; (cons -4 "<AND")(cons 0 "ARC") (cons 8 lay)
;;; (cons -4 "<,<,*") (cons 10 pp)
;;; (cons -4 "<,>,*") (cons 10 pm)
;;; (cons -4 ">,<,*") (cons 10 mp)
;;; (cons -4 ">,>,*") (cons 10 mm)
;;; (cons -4 "AND>")
)
)
)
)