InstanceDefinition Class¶
-
class
NXOpen.PartFamily.
InstanceDefinition
¶ Bases:
NXOpen.TransientObject
This class repesents a part family table record (or instance definition on the template) and is created/deleted by
PartFamily.TemplateManager
.Use
PartFamily.TemplateManager.AddInstanceDefinition()
to create a new instance defintion.New in version NX9.0.0.
Methods¶
Method | Description |
---|---|
Dispose | Free resources associated with the instance. |
GetValueOfAttribute | Get the value for passed atribute @return |
SetValueOfAttribute | Set the value for passed atribute with the value |
Method Detail¶
Dispose¶
-
InstanceDefinition.
Dispose
¶ Free resources associated with the instance.
After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector
Signature
Dispose()
New in version NX9.0.0.
License requirements: None.
GetValueOfAttribute¶
-
InstanceDefinition.
GetValueOfAttribute
¶ Get the value for passed atribute
Signature
GetValueOfAttribute(partFamAttr)
Parameters: partFamAttr ( NXOpen.PartFamily.FamilyAttribute
) –Returns: Return type: str New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
SetValueOfAttribute¶
-
InstanceDefinition.
SetValueOfAttribute
¶ Set the value for passed atribute with the value
Signature
SetValueOfAttribute(partFamAttr, value)
Parameters: - partFamAttr (
NXOpen.PartFamily.FamilyAttribute
) – - value (str) –
New in version NX9.0.0.
License requirements: solid_modeling (“SOLIDS MODELING”)
- partFamAttr (