PlasticRules.itemByName Method

Parent Object: PlasticRules
Defined in namespace "adsk::fusion" and the header file is <Fusion/Plastic/PlasticRules.h>

Description

Function that returns the specified plastic rule using the name of the rule.

Syntax

"plasticRules_var" is a variable referencing a PlasticRules object.
returnValue = plasticRules_var.itemByName(name)
"plasticRules_var" is a variable referencing a PlasticRules object.

#include <Fusion/Plastic/PlasticRules.h>

returnValue = plasticRules_var->itemByName(name);

Return Value

Type Description
PlasticRule Returns the specified item or null if the specified name was not found.

Parameters

Name Type Description
name string The name of the rule within the collection to return. This is the name seen in the Plastic Rules dialog.

Version

Introduced in version January 2024