Layouts are completely empty until they are initialized. When you "explore"
each layout, that causes them to be populated with the Paperspace viewport
and usually one other viewport through which Model Space can be viewed.
wrote in message news:6328484@discussion.autodesk.com...
Hi,all.
Dim lay As Layout= ......
If lay.LayoutName (not equal sign) "Model" Then
Dim Vpt as ViewPort= ........
MsgBox (Vpt.objectId.Tostring)
End If
The above code occurs error.
If I explore Layout1 and Layout2 and excute my code then
the result is correct objectid.
We should explore? No another method?
Thanks in advance.
Edited by: gilseorin on Feb 2, 2010 6:02 PM