Author Topic: Start point multileader dxf code?  (Read 434 times)

0 Members and 1 Guest are viewing this topic.

Amsterdammed

  • Swamp Rat
  • Posts: 507
  • Revit MEP 2016 Acad2013, OPEN DCL
Start point multileader dxf code?
« 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
Bernd

marcoheuer

  • Mosquito
  • Posts: 3
Re: Start point multileader dxf code?
« Reply #1 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

Lee Mac

  • Seagull
  • Posts: 12267
  • London, England
Re: Start point multileader dxf code?
« Reply #2 on: October 26, 2018, 07:40:55 AM »