Application.activeProduct Property

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

Description

Returns the current active product.

Syntax

"application_var" is a variable referencing an Application object.

# Get the value of the property.
propertyValue = application_var.activeProduct
"application_var" is a variable referencing an Application object.
#include <Core/Application/Application.h>

// Get the value of the property.
Ptr<Product> propertyValue = application_var->activeProduct();

Property Value

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

Samples

Name Description
Simple Extrusion Sample Creates a new extrusion feature, resulting in a new component.
Simple Revolve Feature Sample Creates a new revolve feature, resulting in a new component.

Version

Introduced in version August 2014