DefaultUnitsPreferencesCollection.itemByName Method

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

Description

Returns the DefaultUnitsPreference object with the specified name.

Syntax

"defaultUnitsPreferencesCollection_var" is a variable referencing a DefaultUnitsPreferencesCollection object.
returnValue = defaultUnitsPreferencesCollection_var.itemByName(name)
"defaultUnitsPreferencesCollection_var" is a variable referencing a DefaultUnitsPreferencesCollection object.

#include <Core/Application/DefaultUnitsPreferencesCollection.h>

returnValue = defaultUnitsPreferencesCollection_var->itemByName(name);

Return Value

Type Description
DefaultUnitsPreferences Returns the DefaultUnitsPreference object or null if if an invalid name was specified.

Parameters

Name Type Description
name string The name of the DefaultUnitsPreference to return.

Version

Introduced in version August 2014