Attribute.isValid Property

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

Description

Indicates if this object is still valid, i.e. hasn't been deleted or some other action done to invalidate the reference.

Syntax

"attribute_var" is a variable referencing an Attribute object.

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

// Get the value of the property.
boolean propertyValue = attribute_var->isValid();

Property Value

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

Version

Introduced in version May 2016