NXOpen .NET Reference Guide  1899
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Protected 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 NXOpen.Utilities.NXRemotableObject IDisposable IMessageSink

Public Member Functions

unsafe NXOpen.BasePart Commit ()
 Creates the new part that has been fully-specified by calling methods on this builder. More...
 
unsafe NXOpen.BasePart Commit (bool setAsDisplayPart)
 Creates the new part that has been fully-specified by calling methods on this builder. More...
 
unsafe void SetSeedPart (string seedName)
 Sets the seed part on which the new part will be based. More...
 
- Public Member Functions inherited from NXOpen.PDM.PartBuilder
unsafe string AssignPartFileName (string partFileType)
 This method generates a part file name given an input part file type and assigns this part file name to the builder. More...
 
unsafe
NXOpen.PDM.PartBuilder.PartFileNameData 
AssignPartFileName (string partNumber, string partRevision, string partFileNameType, string oldPartFileName)
 This method generates a part file name and assigns this part file name to the builder. More...
 
unsafe string AssignPartNumber (string partType)
 This method generates a part number given an input part type and assigns this part number to the builder. More...
 
unsafe
NXOpen.PDM.PartBuilder.PartNumberData 
AssignPartNumber (string oldPartNumber, string partType)
 This method generates a part number given an input part type and sets this part number to the builder. More...
 
unsafe string AssignPartRevision ()
 This method generates a part revision and assigns this part revision to the builder. More...
 
unsafe
NXOpen.PDM.PartBuilder.PartRevisionData 
AssignPartRevision (int overload)
 This method generates a part revision and sets this part revision to the builder. More...
 
unsafe
NXOpen.PDM.PartCreationObject 
CreatePartCreationObject ()
 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...
 
unsafe void CreatePartSpec (string partType, string partNumber, string partRevision, string partFileType, string partFileName)
 Create the specification for the new part that will be created. More...
 
unsafe
NXOpen.PDM.AlternateIdManager 
NewAlternateIdManager ()
 Create an instance of a NXOpen.PDM.AlternateIdManager class that will be used to create alternate ID information while creating the new part. More...
 
unsafe
NXOpen.PDM.DatabaseAttributeManager 
NewDatabaseAttributeManager ()
 Create an instance of a NXOpen.PDM.DatabaseAttributeManager class that will be used to modify database attributes while creating the new part. More...
 
unsafe void SetAssignPartNumber (string partNumber)
 Sets the part number explicitly into builder. More...
 
unsafe void SetAssignPartType (string partType)
 Sets the part type explicitly into builder. More...
 
unsafe void SetContextOperation (NXOpen.PDM.PartBuilder.Operation operation)
 Sets explicitly the place from where part selection dialog invoked into builder. More...
 
- Public Member Functions inherited from NXOpen.TransientObject
void Dispose ()
 Frees the object from memory. More...
 
void PrintTestData (String variableName)
 <exclude> More...
 
void PrintTestData (String variableName, int lineNumber)
 <exclude> More...
 
new string ToString ()
 Returns a String that represents the current Object. More...
 
- Public Member Functions inherited from NXOpen.Utilities.NXRemotableObject
IMessageCtrl AsyncProcessMessage (IMessage msg, IMessageSink replySink)
 Asynchronously processes the given message. More...
 
IMessage SyncProcessMessage (IMessage msg)
 Synchronously processes the given message. More...
 

Protected Member Functions

override void FreeResource ()
 Free resources associated with the instance. More...
 

Additional Inherited Members

- Public Types inherited from NXOpen.PDM.PartBuilder
enum  Operation { ExportPartNew, AssemblyDiagram, AssemblyCreateNewComponent, Default }
 Tokens identifying every possible UG/Manager part selection dialog. More...
 
- Properties inherited from NXOpen.TransientObject
IntPtr Handle [get]
 Handle of the internal object represented by this object. 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

Member Function Documentation

unsafe NXOpen.BasePart NXOpen.PDM.PartFromTemplateBuilder.Commit ( )
inline

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.

Created in NX4.0.0

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

License requirements: None.

Returns
newly created part
unsafe NXOpen.BasePart NXOpen.PDM.PartFromTemplateBuilder.Commit ( bool  setAsDisplayPart)
inline

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.

Created in NX4.0.0

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

License requirements: None.

Parameters
setAsDisplayPartTrue means the new part will set as the display part. False means that it will not.
Returns
newly created part
override void NXOpen.PDM.PartFromTemplateBuilder.FreeResource ( )
inlineprotectedvirtual

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.

Reimplemented from NXOpen.PDM.PartBuilder.

unsafe void NXOpen.PDM.PartFromTemplateBuilder.SetSeedPart ( string  seedName)
inline

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

Created in NX4.0.0

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

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 2019 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.