public interface PartBuilder extends TransientObject
PartOperationBuilder
and FileNew
For Save As of master parts, use PartOperationCopyBuilder
.
Modifier and Type | Interface and Description |
---|---|
static class |
PartBuilder.Operation
Tokens identifying every possible UG/Manager part selection dialog.
|
static class |
PartBuilder.PartFileNameData
Contains part file name information
|
static class |
PartBuilder.PartNumberData
Contains part number information.
|
static class |
PartBuilder.PartRevisionData
Contains part revision information
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
String |
assignPartNumber(String partType)
This method generates a part number given an input part type and
assigns this part number to the builder.
|
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.
|
String |
assignPartRevision()
This method generates a part revision and assigns this part revision
to the builder.
|
PartBuilder.PartRevisionData |
assignPartRevision(int overload)
This method generates a part revision and sets this part revision to the builder.
|
PartCreationObject |
createPartCreationObject()
Create an instance of a
PartCreationObject
class that acts as a proxy for a part in NX Manager mode prior to that part
being created. |
void |
createPartSpec(String partType,
String partNumber,
String partRevision,
String partFileType,
String partFileName)
Create the specification for the new part that will be created.
|
AlternateIdManager |
newAlternateIdManager()
Create an instance of a
AlternateIdManager
class that will be used to create alternate ID information while creating the new part. |
DatabaseAttributeManager |
newDatabaseAttributeManager()
Create an instance of a
DatabaseAttributeManager
class that will be used to modify database attributes while creating the new part. |
void |
setAssignPartNumber(String partNumber)
Sets the part number explicitly into builder.
|
void |
setAssignPartType(String partType)
Sets the part type explicitly into builder.
|
void |
setContextOperation(PartBuilder.Operation operation)
Sets explicitly the place from where part selection dialog invoked into builder.
|
_value, dispose, printTestData, printTestData
void createPartSpec(String partType, String partNumber, String partRevision, String partFileType, String partFileName) throws NXException, RemoteException
PartOperationBuilder.createSpecificationsForLogicalObjects(nxopen.pdm.LogicalObject[])
instead.
partType
- the part type partNumber
- the multifield key partRevision
- the part revision partFileType
- the part file type partFileName
- the dataset name NXException
RemoteException
DatabaseAttributeManager newDatabaseAttributeManager() throws NXException, RemoteException
DatabaseAttributeManager
class that will be used to modify database attributes while creating the new part.
DatabaseAttributeManager
instanceNXException
RemoteException
PartCreationObject createPartCreationObject() throws NXException, RemoteException
PartCreationObject
class that acts as a proxy for a part in NX Manager mode prior to that part
being created.
PartCreationObject
instanceNXException
RemoteException
AlternateIdManager newAlternateIdManager() throws NXException, RemoteException
AlternateIdManager
class that will be used to create alternate ID information while creating the new part.
AlternateIdManager
instanceNXException
RemoteException
String assignPartNumber(String partType) throws NXException, RemoteException
PDM.PartBuilder#createPartSpec
.
PDM.PartBuilder#createPartSpec
(as will typically be the case) then the part_type and
part_number parameters of
PDM.PartBuilder#createPartSpec
should be set to null so that the builder will use the values assigned
by this method. Otherwise, CreatePartSpec will override the values assigned
here and assign the values of the part_type and part_number
parameters to the builder.
PartOperationCreateBuilder
for Create and PartOperationCopyBuilder
for Save As instead.
To assign part number, use LogicalObject
and
AttributePropertiesBuilder
to create DB_PART_NO attribute.
partType
- the part type NXException
RemoteException
String assignPartRevision() throws NXException, RemoteException
PDM.PartBuilder#createPartSpec
or,
more likely, to assignPartNumber(java.lang.String)
must be made
before calling this method.
PDM.PartBuilder#createPartSpec
(as will typically be the case) then the part_revision parameter of
PDM.PartBuilder#createPartSpec
should be set to null so that the builder will use the value assigned
by this method. Otherwise, CreatePartSpec will override the value assigned
here and assign the value of the part_revision
parameters to the builder.
PartOperationCreateBuilder
for Create and PartOperationCopyBuilder
for Save As instead.
To assign part number, use LogicalObject
and
AttributePropertiesBuilder
to create DB_PART_REV attribute.
NXException
RemoteException
String assignPartFileName(String partFileType) throws NXException, RemoteException
PDM.PartBuilder#createPartSpec
or,
more likely, calls to PDM.PartBuilder#assignPartNumber
and
PDM.PartBuilder#assignPartRevision
must be made
before calling this method.
PDM.PartBuilder#createPartSpec
(as will typically be the case) then the part_file_type and
part_file_name parameters of
PDM.PartBuilder#createPartSpec
should be set to null so that the builder will use the values assigned
by this method. Otherwise, CreatePartSpec will override the values assigned
here and assign the values of the part_file_type and part_file_name
parameters to the builder.
PartOperationBuilder.createSpecificationsForLogicalObjects(nxopen.pdm.LogicalObject[])
instead.
partFileType
- the part file type. Note that if the
part file type is "master", then this method will return null but
will still set the part file type in the builder. NXException
RemoteException
PartBuilder.PartNumberData assignPartNumber(String oldPartNumber, String partType) throws NXException, RemoteException
PDM.PartBuilder#createPartSpec
.
PDM.PartBuilder#createPartSpec
then the part_number parameter of
PDM.PartBuilder#createPartSpec
should be set to null so that the builder will use the value assigned
by this method. Otherwise, CreatePartSpec will override the value assigned
here and assign the value of part_number
parameter to the builder.
PartOperationCreateBuilder
for Create and PartOperationCopyBuilder
for Save As instead.
To assign part number, use LogicalObject
and
AttributePropertiesBuilder
to create DB_PART_NO attribute.
oldPartNumber
- Old part number partType
- Part type NXException
RemoteException
PartBuilder.PartRevisionData assignPartRevision(int overload) throws NXException, RemoteException
PDM.PartBuilder#createPartSpec
or,
more likely, to assignPartNumber(java.lang.String)
must be made
before calling this method.
PDM.PartBuilder#createPartSpec
then the part_revision parameter of
PDM.PartBuilder#createPartSpec
should be set to null so that the builder will use the value assigned
by this method. Otherwise, CreatePartSpec will override the value assigned
here and assign the value of the part_revision
parameters to the builder.
PartOperationCreateBuilder
for Create and PartOperationCopyBuilder
for Save As instead.
To assign part number, use LogicalObject
and
AttributePropertiesBuilder
to create DB_PART_REV attribute.
overload
- Dummy parameter to call this overloaded methodNXException
RemoteException
PartBuilder.PartFileNameData assignPartFileName(String partNumber, String partRevision, String partFileNameType, String oldPartFileName) throws NXException, RemoteException
PDM.PartBuilder#createPartSpec
then the part_file_name parameter of PDM.PartBuilder#createPartSpec
should be set to null so that the builder will use the value assigned
by this method. Otherwise, CreatePartSpec will override the value assigned
here and assign the values of the part_file_type and part_file_name
parameters to the builder.
PartOperationBuilder.createSpecificationsForLogicalObjects(nxopen.pdm.LogicalObject[])
instead.
partNumber
- Part Number partRevision
- part revision partFileNameType
- Part file name type.
Note that if the part file type is "master", then this method will set the
field PartFileName of PDM.PartBuilder.PartFileNameData
with null oldPartFileName
- Old part file name NXException
RemoteException
void setAssignPartNumber(String partNumber) throws NXException, RemoteException
PDM.PartBuilder#createPartSpec
PartOperationCreateBuilder
for Create and PartOperationCopyBuilder
for Save As instead.
To assign part number, use LogicalObject
and
AttributePropertiesBuilder
to set the DB_PART_NO attribute.
partNumber
- the part number NXException
RemoteException
void setAssignPartType(String partType) throws NXException, RemoteException
PDM.PartBuilder#createPartSpec
PartOperationBuilder.createSpecificationsForLogicalObjects(nxopen.pdm.LogicalObject[])
instead.
partType
- NXException
RemoteException
void setContextOperation(PartBuilder.Operation operation) throws NXException, RemoteException
PartOperationBuilder.createSpecificationsForLogicalObjects(nxopen.pdm.LogicalObject[])
instead.
operation
- Token identifying place from where UG/Manager part selection dialog invokedNXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.