ComponentNameBuilder Class

class NXOpen.Layout2d.ComponentNameBuilder

Bases: NXOpen.TaggedObject, NXOpen.GeometricUtilities.IComponentBuilder

This class is used to construct the component name and part file name block, if it is in manage mode, we also have item number, item revision and item name .

New in version NX10.0.0.

Properties

Property Description
Location Returns or sets the location type of the component indicating local, native or team center
Name Returns or sets the JA method support for accessing and setting Component Name value, NOTE: Client must free the returned TEXT_p_t* with TEXT_free
PartName Returns or sets the JA method support for accessing and setting Component part file mame value, NOTE: Client must free the returned TEXT_p_t* with TEXT_free
Tag Returns the Tag for this object.

Methods

Method Description
SetPartOperationBuilder Sets NXOpen.PDM.PartOperationCreateBuilder
Validate Validate whether the inputs to the component are sufficient for commit to be called.

Property Detail

Location

ComponentNameBuilder.Location

Returns or sets the location type of the component indicating local, native or team center

-------------------------------------

Getter Method

Signature Location

Returns:
Return type:NXOpen.Layout2d.Layout2dDefinitionLocation

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Location

Parameters:location (NXOpen.Layout2d.Layout2dDefinitionLocation) –

New in version NX10.0.0.

License requirements: drafting (“DRAFTING”)

Name

ComponentNameBuilder.Name

Returns or sets the JA method support for accessing and setting Component Name value, NOTE: Client must free the returned TEXT_p_t* with TEXT_free

-------------------------------------

Getter Method

Signature Name

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature Name

Parameters:name (str) –

New in version NX10.0.0.

License requirements: drafting (“DRAFTING”)

PartName

ComponentNameBuilder.PartName

Returns or sets the JA method support for accessing and setting Component part file mame value, NOTE: Client must free the returned TEXT_p_t* with TEXT_free

-------------------------------------

Getter Method

Signature PartName

Returns:
Return type:str

New in version NX10.0.0.

License requirements: None.

-------------------------------------

Setter Method

Signature PartName

Parameters:partName (str) –

New in version NX10.0.0.

License requirements: drafting (“DRAFTING”)

Method Detail

SetPartOperationBuilder

ComponentNameBuilder.SetPartOperationBuilder

Sets NXOpen.PDM.PartOperationCreateBuilder

Signature SetPartOperationBuilder(partOperationBuilder)

Parameters:partOperationBuilder (NXOpen.PDM.PartOperationCreateBuilder) –

New in version NX10.0.0.

License requirements: drafting (“DRAFTING”)

Validate

ComponentNameBuilder.Validate

Validate whether the inputs to the component are sufficient for commit to be called.

If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.

Signature Validate()

Returns:Was self validation successful
Return type:bool

New in version NX3.0.1.

License requirements: None.