Share

Viewport.fit Method

Parent Object: Viewport
Defined in namespace "adsk::core" and the header file is <Core/Application/Viewport.h>

Description

Forces a camera change so that all of the graphics are visible in the viewport.

Syntax

"viewport_var" is a variable referencing a Viewport object.
returnValue = viewport_var.fit()

Return Value

Type Description
boolean Returns true if the fit was successful.

Version

Introduced in version August 2014

Was this information helpful?