C++
Adesk::Boolean acgsSetViewParameters( int viewportNumber, const AcGsView * pView, bool bRegenRequired, bool bRescaleRequired, bool bSyncRequired = false );
File
acgs.h
Description
Sets the view parameters for the indicated viewport. Pass in true for bRegenRequired if the new view requires a 2D regen for proper synchronization; otherwise, pass in true for bRescaleRequired if a simple 2D rescale is required for proper 2D-3D synchronization. If neither is required, pass in false for both.
bSyncRequired is used to update the underlying 2D view parameters with the new parameters, without causing either a rescale or a regen. It is useful in 3D viewports, after a view change, where a regen is no longer required, but the 2D view must be kept in sync.
Parameters
Parameters | Description |
---|---|
viewportNumber | Input view number |
pView | Input view parameters |
bRegenRequired | Input argument to cause a 2D regen |
bRescaleRequired | Input argument to cause a 2D rescale |
bSyncRequired | Input Boolean indicating whether or not to sync the 2D view parameters with the new parameters |