Dan, If you want paperspace viewports
use.
Dim pvport As AcadPViewport
For Each pvport In ThisDrawing.PaperSpace
Debug.Print pvport.ObjectName
Next pvport
Don't see a name property thougt. Don't know
if you can transfer the name of a saved view when
restoring as a paperspace viewport.
Paul
"Dan" wrote in message
news:4886298@discussion.autodesk.com...
Thanks for the input.
Not sure if I am being clear or not.
If I have 5 viewports in paperspace, the code below just provide the name
"*Active".
This does not help me select the 5th viewort in the bottom righ-hand corner.
I am not sure how to go about it.
Thanks,
Dan
"Paul Richardson" wrote in message
news:4884930@discussion.autodesk.com...
>Or even simpler, how would one cycle through each viewport?
Is what I posted not what you want?
Dim vport As AcadViewport
For Each vport In ThisDrawing.Viewports
Debug.Print vport.Name
Next vport
"Dan" wrote in message
news:4884916@discussion.autodesk.com...
Thank you for the input.
If I run the following code, "*Active" is returned. I need some way to make
sure a specific Viewport is active, and then set a named view.
Or even simpler, how would one cycle through each viewport?
Any help is greatly appreciated.
Dan
If I have 5 viewports in paperspace, how would I make changes to the bottom
right viewport for example.
"Paul Richardson" wrote in message
news:4883412@discussion.autodesk.com...
I think you want to be saving a vport not a view. Now
restoring this vport in a paperspace layout and retrieve
with this idea.
Dim vport As AcadViewport
For Each vport In ThisDrawing.Viewports
Debug.Print vport.Name
Next vport
gl
Paul
"Dan" wrote in message
news:4883288@discussion.autodesk.com...
I have written code to create a named view, then set that named view. I do
not see a method to select a specific viewport in PS.
If I have 5 viewports, how do I choose between them using VBA code?
Thanks for the insight,
Dan