NX Open C++ Reference Guide
|
This class provides the methods necessary to create a new part in NX Manager from a template part. More...
Public Member Functions | |
NXOpen::BasePart * | Commit () |
Creates the new part that has been fully-specified by calling methods on this builder. | |
NXOpen::BasePart * | Commit (bool setAsDisplayPart) |
Creates the new part that has been fully-specified by calling methods on this builder. | |
void | SetSeedPart (const NXString &seedName) |
Sets the seed part on which the new part will be based. | |
void | SetSeedPart (const char *seedName) |
Sets the seed part on which the new part will be based. | |
virtual | ~PartFromTemplateBuilder () |
Free resources associated with the instance. | |
![]() | |
NXString | AssignPartFileName (const NXString &partFileType) |
This method generates a part file name given an input part file type and assigns this part file name to the builder. | |
NXString | AssignPartFileName (const char *partFileType) |
This method generates a part file name given an input part file type and assigns this part file name to the builder. | |
NXOpen::PDM::PartBuilder::PartFileNameData | AssignPartFileName (const NXString &partNumber, const NXString &partRevision, const NXString &partFileNameType, const NXString &oldPartFileName) |
This method generates a part file name and assigns this part file name to the builder. | |
NXOpen::PDM::PartBuilder::PartFileNameData | AssignPartFileName (const char *partNumber, const char *partRevision, const char *partFileNameType, const char *oldPartFileName) |
This method generates a part file name and assigns this part file name to the builder. | |
NXString | AssignPartNumber (const NXString &partType) |
This method generates a part number given an input part type and assigns this part number to the builder. | |
NXString | AssignPartNumber (const char *partType) |
This method generates a part number given an input part type and assigns this part number to the builder. | |
NXOpen::PDM::PartBuilder::PartNumberData | AssignPartNumber (const NXString &oldPartNumber, const NXString &partType) |
This method generates a part number given an input part type and sets this part number to the builder. | |
NXOpen::PDM::PartBuilder::PartNumberData | AssignPartNumber (const char *oldPartNumber, const char *partType) |
This method generates a part number given an input part type and sets this part number to the builder. | |
NXString | AssignPartRevision () |
This method generates a part revision and assigns this part revision to the builder. | |
NXOpen::PDM::PartBuilder::PartRevisionData | AssignPartRevision (int overload) |
This method generates a part revision and sets this part number to the builder. | |
NXOpen::PDM::PartCreationObject * | CreatePartCreationObject () |
Create an instance of a PDM::PartCreationObject class that acts as a proxy for a part in NX Manager mode prior to that part being created. | |
void | CreatePartSpec (const NXString &partType, const NXString &partNumber, const NXString &partRevision, const NXString &partFileType, const NXString &partFileName) |
Create the specification for the new part that will be created. | |
void | CreatePartSpec (const char *partType, const char *partNumber, const char *partRevision, const char *partFileType, const char *partFileName) |
Create the specification for the new part that will be created. | |
NXOpen::PDM::AlternateIdManager * | NewAlternateIdManager () |
Create an instance of a PDM::AlternateIdManager class that will be used to create alternate ID information while creating the new part. | |
NXOpen::PDM::DatabaseAttributeManager * | NewDatabaseAttributeManager () |
Create an instance of a PDM::DatabaseAttributeManager class that will be used to modify database attributes while creating the new part. | |
void | SetAssignPartNumber (const NXString &partNumber) |
Sets the part number explicitly into builder. | |
void | SetAssignPartNumber (const char *partNumber) |
Sets the part number explicitly into builder. | |
void | SetAssignPartType (const NXString &partType) |
Sets the part type explicitly into builder. | |
void | SetAssignPartType (const char *partType) |
Sets the part type explicitly into builder. | |
void | SetContextOperation (NXOpen::PDM::PartBuilder::Operation operation) |
Sets explicitly the place from where part selection dialog invoked into builder. | |
virtual | ~PartBuilder () |
Free resources associated with the instance. | |
![]() | |
void * | GetHandle () |
Handle of the internal object represented by this object. | |
Additional Inherited Members | |
![]() | |
enum | Operation { OperationExportPartNew, OperationAssemblyDiagram, OperationAssemblyCreateNewComponent, OperationDefault } |
Tokens identifying every possible UG/Manager part selection dialog. More... | |
This class provides the methods necessary to create a new part in NX Manager from a template part.
<br>
The operation that this builder supports is equivalent to the file new operation which creates a new part from a template (or seed) part.
If the operation is successful, then the newly created part will be the display part.
This class is a singleton meaning only one instance of it can be exist at a time.
Created in NX4.0.0.
|
virtual |
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.
Created in NX4.0.0.
License requirements : None
NXOpen::BasePart* NXOpen::PDM::PartFromTemplateBuilder::Commit | ( | ) |
Creates the new part that has been fully-specified by calling methods on this builder.
The new part will be set to display part after it is created.
NXOpen::BasePart* NXOpen::PDM::PartFromTemplateBuilder::Commit | ( | bool | setAsDisplayPart | ) |
Creates the new part that has been fully-specified by calling methods on this builder.
The caller specifies whether the new part should be set as the display after it is created.
setAsDisplayPart | True means the new part will set as the display part. False means that it will not. |
void NXOpen::PDM::PartFromTemplateBuilder::SetSeedPart | ( | const NXString & | seedName | ) |
Sets the seed part on which the new part will be based.
Created in NX4.0.0.
License requirements : None
seedName | display name of the seed part. E.g. "Metric" NOTE: The full Unicode character set is not supported for this parameter. |
void NXOpen::PDM::PartFromTemplateBuilder::SetSeedPart | ( | const char * | seedName | ) |
Sets the seed part on which the new part will be based.
Created in NX4.0.0.
License requirements : None
seedName | display name of the seed part. E.g. "Metric" NOTE: The full Unicode character set is not supported for this parameter. |