PDA

View Full Version : Layout dxf codes



wildtb
2004-09-02, 09:13 PM
Hi ,

Does anyone know how to get at the Layout dotted pairs? I can get the list of names but I want to get the list of dxf codes like an entity list. Not sure how to get at them.

Thanks,

Brian

whdjr
2004-09-02, 09:25 PM
See if this works for you.


(vl-load-com)
(defun C:get_layouts (/ lays layents)
(setq lays (vla-get-layouts
(vla-get-activedocument (vlax-get-acad-object))
)
)
(vlax-for for-item lays
(setq layents (cons (entget (vlax-vla-object->ename for-item)) layents))
)
)

wildtb
2004-09-02, 09:38 PM
WHOOO HOOOO That's it!

Thanks!