TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Andrea on January 11, 2017, 05:36:09 PM

Title: using vla-addtable for specific Layout
Post by: Andrea on January 11, 2017, 05:36:09 PM
Hi all,

I'm trying to use vla-addtable to create AutoCAD Table with specific settings..
however,..I would like to use it by creating the table without switching Layout Tab.

any sample who can help me to replace (vla-get-paperspace doc) by a specific layout ?

Thank you.
Title: Re: using vla-addtable for specific Layout
Post by: Lee Mac on January 11, 2017, 05:45:25 PM
Example:
Code: [Select]
(vla-addtable (vla-get-block (vla-item (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object))) "Layout1")) (vlax-3D-point 0 0) 5 5 1 1)
Title: Re: using vla-addtable for specific Layout
Post by: Andrea on January 11, 2017, 05:51:53 PM
(vla-get-block..

that is what i've miss...
Thank you very Much Lee,..you're a big reference as always...