Ron,
Not really off Topic :
Are both objects selected lines (or straignt polylines) rather than any other object.
A little known factoid about the IntersectWith Method is that it will return ALL intersections for curved objects.
For instance draw 2 intersecting circles and run the code I posted ( or your initial code)
(SETQ datalist (VLAX-INVOKE (VLAX-ENAME->VLA-OBJECT (CAR (ENTSEL)))
"intersectwith"
(VLAX-ENAME->VLA-OBJECT (CAR (ENTSEL)))
ACEXTENDBOTH
)
)
With My code you will get something like
(44407.4 3271.38 0.0 42033.4 6814.93 0.0)
... just a collection of reals ..
Run it through a translator like this ;
(DEFUN kdub:datalist->points (datalist sublistSize / tmp return Index)
(SETQ Index 0)
(FOREACH var datalist
(SETQ tmp (APPEND tmp (LIST var)))
(IF (ZEROP (REM (SETQ Index (1+ Index)) sublistSize))
(SETQ return (CONS tmp return)
tmp nil
)
)
)
(REVERSE return)
)
(kdub:datalist->points datalist 3)
Will return ALL the intersection points, something like
((44407.4 3271.38 0.0) (42033.4 6814.93 0.0))
... has some possibilities, heh?