TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: dgpuertas on May 09, 2019, 04:32:00 AM

Title: access to layout without "CTAB"
Post by: dgpuertas on May 09, 2019, 04:32:00 AM
I need to insert a block in layout via ObjectDBX
I use ObjectDBX Wrapper (many many thanks lee mac), works fine.

But I cant use system variables to put CTAB in a different layout via ObjectDBX

How i change the layout to use
(vla-InsertBlock (vla-get-paperspace acdoc)

in different layouts.

Thanks and sorry about my engish.
Title: Re: access to layout without "CTAB"
Post by: roy_043 on May 09, 2019, 06:35:34 AM
Code - Auto/Visual Lisp: [Select]
  1. (setq spc (vla-get-block (vla-item (vla-get-layouts docObj) "layoutName")))
  2. (vla-insertblock spc ...)
Title: Re: access to layout without "CTAB"
Post by: dgpuertas on May 09, 2019, 07:27:09 AM
Thanks a lot, roy
I didint know block property for layout object :wink:
Works fine

Thanks