Small Fish
22nd Oct 2009, 08:37 am
I have a shape roughly the shape of a circle and there is a line drawn through it - so there are two intersection points. I want to find the 2 values of these intersection points how is it done?
I have written code below however pt1 is a variant (2 values) I want 2 separate values. How is it done?
Thanks
(setq enaPline(car (entsel "\nSelect shape : ")))
ObjName1 (vlax-ename->vla-object enaPline))
enaLine(car (entsel "\nSelect line : ")))
ObjName2 (vlax-ename->vla-object enaLine))
Pt1 (vlax-safearray->list
(vlax-variant-value
(vla-IntersectWith ObjName1 ObjName2 acExtendNone))))
I have written code below however pt1 is a variant (2 values) I want 2 separate values. How is it done?
Thanks
(setq enaPline(car (entsel "\nSelect shape : ")))
ObjName1 (vlax-ename->vla-object enaPline))
enaLine(car (entsel "\nSelect line : ")))
ObjName2 (vlax-ename->vla-object enaLine))
Pt1 (vlax-safearray->list
(vlax-variant-value
(vla-IntersectWith ObjName1 ObjName2 acExtendNone))))