NX Open C++ Reference Guide
Public Member Functions | List of all members
NXOpen::PDM::PartFromTemplateBuilder Class Reference

This class provides the methods necessary to create a new part in NX Manager from a template part. More...

Inheritance diagram for NXOpen::PDM::PartFromTemplateBuilder:
NXOpen::PDM::PartBuilder NXOpen::TransientObject

Public Member Functions

NXOpen::BasePartCommit ()
 Creates the new part that has been fully-specified by calling methods on this builder. More...
 
NXOpen::BasePartCommit (bool setAsDisplayPart)
 Creates the new part that has been fully-specified by calling methods on this builder. More...
 
void SetSeedPart (const NXString &seedName)
 Sets the seed part on which the new part will be based. More...
 
void SetSeedPart (const char *seedName)
 Sets the seed part on which the new part will be based. More...
 
virtual ~PartFromTemplateBuilder ()
 Free resources associated with the instance. More...
 
- Public Member Functions inherited from NXOpen::PDM::PartBuilder
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. More...
 
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. More...
 
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. More...
 
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. More...
 
NXString AssignPartNumber (const NXString &partType)
 This method generates a part number given an input part type and assigns this part number to the builder. More...
 
NXString AssignPartNumber (const char *partType)
 This method generates a part number given an input part type and assigns this part number to the builder. More...
 
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. More...
 
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. More...
 
NXString AssignPartRevision ()
 This method generates a part revision and assigns this part revision to the builder. More...
 
NXOpen::PDM::PartBuilder::PartRevisionData AssignPartRevision (int overload)
 This method generates a part revision and sets this part revision to the builder. More...
 
NXOpen::PDM::PartCreationObjectCreatePartCreationObject ()
 Create an instance of a NXOpen::PDM::PartCreationObject class that acts as a proxy for a part in NX Manager mode prior to that part being created. More...
 
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. More...
 
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. More...
 
NXOpen::PDM::AlternateIdManagerNewAlternateIdManager ()
 Create an instance of a NXOpen::PDM::AlternateIdManager class that will be used to create alternate ID information while creating the new part. More...
 
NXOpen::PDM::DatabaseAttributeManagerNewDatabaseAttributeManager ()
 Create an instance of a NXOpen::PDM::DatabaseAttributeManager class that will be used to modify database attributes while creating the new part. More...
 
void SetAssignPartNumber (const NXString &partNumber)
 Sets the part number explicitly into builder. More...
 
void SetAssignPartNumber (const char *partNumber)
 Sets the part number explicitly into builder. More...
 
void SetAssignPartType (const NXString &partType)
 Sets the part type explicitly into builder. More...
 
void SetAssignPartType (const char *partType)
 Sets the part type explicitly into builder. More...
 
void SetContextOperation (NXOpen::PDM::PartBuilder::Operation operation)
 Sets explicitly the place from where part selection dialog invoked into builder. More...
 
virtual ~PartBuilder ()
 Free resources associated with the instance. More...
 
- Public Member Functions inherited from NXOpen::TransientObject
void * GetHandle ()
 Handle of the internal object represented by this object. More...
 

Additional Inherited Members

- Public Types inherited from NXOpen::PDM::PartBuilder
enum  Operation { OperationExportPartNew, OperationAssemblyDiagram, OperationAssemblyCreateNewComponent, OperationDefault }
 Tokens identifying every possible UG/Manager part selection dialog. More...
 

Detailed Description

This class provides the methods necessary to create a new part in NX Manager from a template part.


Deprecated in NX10.0.0. Use PDM::PartOperationCreateBuilder instead.


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.

Constructor & Destructor Documentation

virtual NXOpen::PDM::PartFromTemplateBuilder::~PartFromTemplateBuilder ( )
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

Member Function Documentation

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.

Returns
newly created part
Deprecated:
Deprecated in NX10.0.0. Use PDM::PartOperationCreateBuilder instead.


Created in NX4.0.0.

License requirements : None

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.

Returns
newly created part
Deprecated:
Deprecated in NX10.0.0. Use PDM::PartOperationCreateBuilder instead.


Created in NX4.0.0.

License requirements : None

Parameters
setAsDisplayPartTrue 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.


Deprecated:
Deprecated in NX10.0.0. Use PDM::PartOperationCreateBuilder instead.


Created in NX4.0.0.

License requirements : None

Parameters
seedNamedisplay name of the seed part. E.g. "Metric"
void NXOpen::PDM::PartFromTemplateBuilder::SetSeedPart ( const char *  seedName)

Sets the seed part on which the new part will be based.


Deprecated:
Deprecated in NX10.0.0. Use PDM::PartOperationCreateBuilder instead.


Created in NX4.0.0.

License requirements : None

Parameters
seedNamedisplay name of the seed part. E.g. "Metric"

The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.