Viewport.setCurrentAsHome Method
Parent Object:
ViewportDefined in namespace "adsk::core" and the header file is <Core/Application/Viewport.h>
Description
Sets the "home" view to be the current view orientation.
Syntax
"viewport_var" is a variable referencing a Viewport object.returnValue = viewport_var.setCurrentAsHome(isFitToView)
|
"viewport_var" is a variable referencing a Viewport object.
#include <Core/Application/Viewport.h>
returnValue = viewport_var->setCurrentAsHome(isFitToView);
|
Return Value
boolean |
Returns true if setting the view orientation was successful. |
Parameters
isFitToView |
boolean |
Specifies if when the view goes "home" if the view should be fit to the model or not. True indicates the view will be fit to the model. |
Version
Introduced in version September 2022