Share

Viewport.parentDocument Property

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

Description

Returns the parent document of this viewport.

Syntax

"viewport_var" is a variable referencing a Viewport object.

# Get the value of the property.
propertyValue = viewport_var.parentDocument

Property Value

This is a read only property whose value is a Document.

Version

Introduced in version September 2022

Was this information helpful?