public interface PartOperationBuilder extends Builder, IAttributeSourceObjectBuilder
PartOperationBuilder.OperationType
PdmSession.createOperationBuilder(nxopen.pdm.PartOperationBuilder.OperationType)
Modifier and Type | Interface and Description |
---|---|
static class |
PartOperationBuilder.DependentFileSaveAs
Deprecated.
Deprecated in NX10.0.0. Use
PartOperationCopyBuilder.CopyDependentFiles instead
|
static class |
PartOperationBuilder.NonMasterSaveAs
Deprecated.
Deprecated in NX10.0.0. Use
PartOperationCopyBuilder.CopyNonMasterParts instead
|
static class |
PartOperationBuilder.OperationType
Represents an operation type that can be performed on a part .
|
commit, destroy, getCommittedObjects, getObject, showResults
printTestData, printTestData, tag, tagValue
validate
autoAssignAttributes, autoAssignAttributesWithNamingPattern, createAttributeTitleToNamingPatternMap
LogicalObject[] createLogicalObjects() throws NXException, RemoteException
NXException
RemoteException
PartOperationBuilder.OperationType getDialogOperation() throws NXException, RemoteException
PartOperationBuilder.OperationType.SAVE_AS
and
PartOperationBuilder.OperationType.REVISE
NXException
RemoteException
void setDialogOperation(PartOperationBuilder.OperationType dialogOperation) throws NXException, RemoteException
PartOperationBuilder.OperationType.SAVE_AS
and
PartOperationBuilder.OperationType.REVISE
dialogOperation
- NXException
RemoteException
ErrorList getOperationFailures() throws NXException, RemoteException
getErrorMessageHandler(boolean)
instead
NXException
RemoteException
AlternateIdManager getAlternateIDManager(LogicalObject logicalObject) throws NXException, RemoteException
AlternateIdManager
class that will be used to create alternate ID information while creating the new part.
CreateSpec call should happen before calling this method.
logicalObject
- AlternateIdManager
instanceNXException
RemoteException
void createSpecificationsForLogicalObjects(LogicalObject[] logicalObjects) throws NXException, RemoteException
logicalObjects
- NXException
RemoteException
void validateLogicalObjectsToCommit() throws NXException, RemoteException
LogicalObject
objects with this builder and udpates the operation failuers.
getOperationFailures()
can be called to get the errors occurred
during this operation.
NXException
RemoteException
BasePart[] setSelectedParts(BasePart[] selectedParts) throws NXException, RemoteException
PartOperationCopyBuilder.setSelectedPartsToCopy(nxopen.BasePart[])
instead
PartOperationBuilder.OperationType.SAVE_AS
and
PartOperationBuilder.OperationType.REVISE
Also returns an array of parts failed to added, these are not removed from the input array though.
getOperationFailures()
can be called to get the errors occurred
during this operation.
selectedParts
- NXException
RemoteException
boolean replaceAllComponents() throws NXException, RemoteException
PartOperationCopyBuilder.replaceAllComponentsInSession()
instead
PartOperationBuilder.OperationType.SAVE_AS
and
PartOperationBuilder.OperationType.REVISE
NXException
RemoteException
void setReplaceAllComponents(boolean replaceAllComponents) throws NXException, RemoteException
PartOperationCopyBuilder.setReplaceAllComponentsInSession(boolean)
instead
replaceAllComponents
- NXException
RemoteException
void addRelatedPartToOperate(BasePart basePart, BasePart[] relatedParts, String[] relatedPartsReasons, PartOperationBuilder.OperationType operation) throws NXException, RemoteException
PartOperationCopyBuilder.addRelatedPartsToCopy(nxopen.BasePart, nxopen.BasePart[], java.lang.String[], nxopen.pdm.PartOperationBuilder.OperationType)
instead
PartOperationBuilder.OperationType.SAVE_AS
and
PartOperationBuilder.OperationType.REVISE
basePart
- relatedParts
- relatedPartsReasons
- operation
- NXException
RemoteException
void createNonMasterListForLogicalObject(LogicalObject logicalObject) throws NXException, RemoteException
PartOperationCopyBuilder.createNonMasterListForCopyLogicalObject(nxopen.pdm.LogicalObject)
instead
logicalObject
- NXException
RemoteException
void setNonMasterSaveAsOption(LogicalObject logicalObject, PartOperationBuilder.NonMasterSaveAs saveOption) throws NXException, RemoteException
PartOperationCopyBuilder.setCopyNonMasterPartsOption(nxopen.pdm.LogicalObject, nxopen.pdm.PartOperationCopyBuilder.CopyNonMasterParts)
instead
logicalObject
- saveOption
- NXException
RemoteException
void setSelectedNonMasterToSaveAs(LogicalObject logicalObject, String partName) throws NXException, RemoteException
PartOperationCopyBuilder.setSelectedNonMasterToCopy(nxopen.pdm.LogicalObject, java.lang.String)
instead
logicalObject
- partName
- the non-master part whose save option is being set here
NXException
RemoteException
String[] getNonMasterList(LogicalObject logicalObject) throws NXException, RemoteException
PartOperationCopyBuilder.getNonMasterListForCopyLogicalObject(nxopen.pdm.LogicalObject)
instead
logicalObject
- NXException
RemoteException
boolean isNonMasterBeingCopied(LogicalObject logicalObject, String partName) throws NXException, RemoteException
PartOperationCopyBuilder.isNonMasterForLogicalObjectBeingCopied(nxopen.pdm.LogicalObject, java.lang.String)
instead
LogicalObject
will actually get
saved during the save as operation.
logicalObject
- partName
- the non-master part that the caller wants to save or not saveNXException
RemoteException
PartOperationBuilder.NonMasterSaveAs getNonMasterCopyOption(LogicalObject logicalObject) throws NXException, RemoteException
PartOperationCopyBuilder.getCopyNonMasterPartsOption(nxopen.pdm.LogicalObject)
instead
PartOperationBuilder.NonMasterSaveAs.ALL
and
PartOperationBuilder.NonMasterSaveAs.NONE
logicalObject
- NXException
RemoteException
boolean editNonMasterName(LogicalObject logicalObject, String oldName, String newName) throws NXException, RemoteException
PartOperationCopyBuilder.editNonMasterToCopyName(nxopen.pdm.LogicalObject, java.lang.String, java.lang.String)
instead
logicalObject
- oldName
- the non-master part whose save as name is being set herenewName
- the new nameNXException
RemoteException
PartOperationBuilder.DependentFileSaveAs dependentFileSaveAsOption() throws NXException, RemoteException
PartOperationCopyBuilder.dependentFilesToCopyOption()
instead
PartOperationBuilder.DependentFileSaveAs.ALL
and
PartOperationBuilder.DependentFileSaveAs.NONE
NXException
RemoteException
void setDependentFileSaveAsOption(PartOperationBuilder.DependentFileSaveAs saveOption) throws NXException, RemoteException
PartOperationCopyBuilder.setDependentFilesToCopyOption(nxopen.pdm.PartOperationCopyBuilder.CopyDependentFiles)
instead
saveOption
- NXException
RemoteException
String defaultDestinationFolder() throws NXException, RemoteException
NXException
RemoteException
void setDefaultDestinationFolder(String defaultDestinationFolder) throws NXException, RemoteException
defaultDestinationFolder
- NXException
RemoteException
void clearWarnings() throws NXException, RemoteException
NXException
RemoteException
ErrorMessageHandler getErrorMessageHandler(boolean refresh) throws NXException, RemoteException
refresh
- NXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.