Share

acedSetCurrentVPort

Description

Functions

Function Description
acedSetCurrentVPort This function sets the current viewport from the AcDbViewport object pointed to by pVp.SysVarWillChange and SysVarChanged notification are generated by this function.You must be in model space for this function to work properly. This can be done using the following steps:
  1. Turn TILEMODE off and switch to paper space if necessary.
  1. Create a viewport using acedCommand/MVIEW.
  1. Use acedCommand/zoom-extents to ensure that the view was on the screen.
  1. Make sure that the viewport was turned on using acedCommand MVIEW/ON last.
  1. Switch to model space using acedCommand /MSPACE.
  1. Set CVPORT to the number of your viewport to... more
acedSetCurrentVPort This function sets the current viewport from the viewport index vpnumber. Viewport index numbers are the numbers reported by the CVPORT system variable.SysVarWillChange and SysVarChanged notification are generated by this function.Returns Acad::eOk if successful.Returns Acad::eOutOfRange if vpnumber isn't valid for the current environment.

Was this information helpful?