TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Amsterdammed on October 22, 2018, 05:01:32 PM

Title: Start point multileader dxf code?
Post by: Amsterdammed on October 22, 2018, 05:01:32 PM
Hello there,

how can i read out the start point of a multileader in vlisp?

Thanks

 Bernd
Title: Re: Start point multileader dxf code?
Post by: marcoheuer on October 26, 2018, 07:36:55 AM
hello bernd,
Code: [Select]
(setq array (vla-GetLeaderLineVertices (vlax-ename->vla-object (car (entsel))) 0)) ; parameter "0" means: first leader
(setq lst (vlax-safearray->list (vlax-variant-value array)))

the first 3 values in variable lst are your start point coordinates.

regards
marco
Title: Re: Start point multileader dxf code?
Post by: Lee Mac on October 26, 2018, 07:40:55 AM
Duplicate of:
http://www.theswamp.org/index.php?topic=54604