我补一点内容:
一、获取内容之后,先转一下:
(vlax-ename->vla-object (car a1))
(vlax-ename->vla-object (car a2))
二、然后再求交点
(vla-intersectwith (vlax-ename->vla-object (car a1))(vlax-ename->vla-object (car a2))acextendboth)
三、然后再用下面这个命令返回一下变体的值
(vlax-variant-value (vla-intersectwith (vlax-ename->vla-object (car a1))(vlax-ename->vla-object (car a2))acextendboth))
四、最后用vlax-safearray->list 这个命令
把值转换一下放到列表里
(vlax-safearray->list (vlax-variant-value (vla-intersectwith (vlax-ename->vla-object (car a1))(vlax-ename->vla-object (car a2))acextendboth)))
到了列表这一步,剩下的就应该好弄了