ChoosePartPluginData Class¶
-
class
NXOpen.Routing.
ChoosePartPluginData
¶ Bases:
NXOpen.TaggedObject
Data object created by Routing for use by the Choose Part plugin called by the Place Part command.
Routing sends this object to any registered Choose Part plugin.
It is the Choose Part plugin’s responsibility to prompt the user to choose a part and then fill in the information about the part by calling the methods on this object.
For more information, see
Routing.CustomManager
and theRouting.CustomManager.SetChoosePartPlugin()
An instance of this object will be sent to the Choose Part plugin used by Place Part.
New in version NX12.0.0.
Methods¶
Method | Description |
---|---|
SetCharacteristics | Sets the characteristics of the part choosen by the user. |
SetMemberName | Sets the Member Name of the part choosen by the user. |
SetPartName | Sets the Part Name of the part choosen by the user. |
SetPartNumber | Sets the Part Number of the part choosen by the user. |
Method Detail¶
SetCharacteristics¶
-
ChoosePartPluginData.
SetCharacteristics
¶ Sets the characteristics of the part choosen by the user.
Signature
SetCharacteristics(characteristics)
Parameters: characteristics ( NXOpen.Routing.CharacteristicList
) –New in version NX12.0.0.
License requirements: routing_base (“Routing Basic”)
SetMemberName¶
-
ChoosePartPluginData.
SetMemberName
¶ Sets the Member Name of the part choosen by the user.
The unique name of each member in a part family. Routing uses Part Name and Member Name together to find the correct .prt file or Teamcenter Item ID in a part family.
Signature
SetMemberName(memberName)
Parameters: memberName (str) – New in version NX12.0.0.
License requirements: routing_base (“Routing Basic”)
SetPartName¶
-
ChoosePartPluginData.
SetPartName
¶ Sets the Part Name of the part choosen by the user.
The Part Name is the key Routing uses to find the .prt file in native mode on disk or to find the proper item ID in Teamcenter. The Part Name must exactly match the .prt file name or the Item ID in order for Routing to place the part.
Signature
SetPartName(partName)
Parameters: partName (str) – New in version NX12.0.0.
License requirements: routing_base (“Routing Basic”)
SetPartNumber¶
-
ChoosePartPluginData.
SetPartNumber
¶ Sets the Part Number of the part choosen by the user.
The Part Number is an attribute that Routing displays in the Reuse Library. Part Number does not have to match the .prt file name or the Item ID in Teamcenter, but it often does. Part Name and Part Number are often the same.
Signature
SetPartNumber(partNumber)
Parameters: partNumber (str) – New in version NX12.0.0.
License requirements: routing_base (“Routing Basic”)