setactvport
(setactvport nDbNo nVpNo)
The setactvport function lets you set another drawing as current drawing or another viewport as active by determining the ID of a currently opened drawing and the ID of the drawing's viewport to be set.
Arguments
nDbNo: Database ID number of a currently opened drawing.
nVpNo: ID of a opened viewport of the current drawing to be set as active.
Return Value
If the function succeeds, it returns the given arguments in a list, otherwise nil.
: (setactvport 1 1)
getactvport