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
"viewport_var" is a variable referencing a Viewport object.
#include <Core/Application/Viewport.h>

// Get the value of the property.
Ptr<Document> propertyValue = viewport_var->parentDocument();

Property Value

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

Version

Introduced in version September 2022