Activate Layout

Activate Layout

Anonymous
Not applicable
295 Views
2 Replies
Message 1 of 3

Activate Layout

Anonymous
Not applicable
Hi!

How can I activate in VB a Layout after create it with
ObjAcadDoc.Layouts.Add ("test")?

Thaks
0 Likes
296 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
two ways to do it... the first is probably more useful, because you'll
likely want to access this layout again.

' #1
Dim objLayout As AcadLayout
Set objLayout = ObjAcadDoc.Layouts.Add ("test")
ObjAcadDoc.ActiveLayout = objLayout

' #2
ObjAcadDoc.ActiveLayout = ObjAcadDoc.Layouts.Add ("test2")

James
0 Likes
Message 3 of 3

Anonymous
Not applicable
It works very well
tanks very much


"James Belshan" escribió en el mensaje
news:A95E95AF6180FEF107D209124D8C656D@in.WebX.maYIadrTaRb...
> two ways to do it... the first is probably more useful, because you'll
> likely want to access this layout again.
>
> ' #1
> Dim objLayout As AcadLayout
> Set objLayout = ObjAcadDoc.Layouts.Add ("test")
> ObjAcadDoc.ActiveLayout = objLayout
>
> ' #2
> ObjAcadDoc.ActiveLayout = ObjAcadDoc.Layouts.Add ("test2")
>
> James
>
>
0 Likes