public interface MechanismImport extends Remote
MotionSession
Modifier and Type | Interface and Description |
---|---|
static class |
MechanismImport.NamingRule
Naming Rule type to modify imported object's name
|
Modifier and Type | Method and Description |
---|---|
void |
importFromSubassembly(Component compOcc,
Part motionPart,
Part workPart,
MechanismImport.NamingRule namingRule,
String appendixString,
boolean reportToInfoWindow,
boolean abortOnFailure)
Imports a Motion Definition (.sim) Part.
|
void |
importMdef(NXObject workPart,
String fileName,
MechanismImport.NamingRule namingRule,
String addString,
boolean reportToInfoWindow,
boolean replaceExistingElements)
Imports a Motion Definition (.mdef) file.
|
void |
importXML(Part workPart,
String fileName,
MechanismImport.NamingRule namingRule,
String appendixString,
boolean reportToInfoWindow)
Imports a Motion Definition (.XML) file.
|
void importMdef(NXObject workPart, String fileName, MechanismImport.NamingRule namingRule, String addString, boolean reportToInfoWindow, boolean replaceExistingElements) throws NXException, RemoteException
workPart
- fileName
- Full path to the .mdef filenamingRule
- addString
- string to add when NamingRule is AddPrefix or AddSuffixreportToInfoWindow
- Flag to report import status in the information windowreplaceExistingElements
- Flag to replace elements with same namesNXException
RemoteException
void importXML(Part workPart, String fileName, MechanismImport.NamingRule namingRule, String appendixString, boolean reportToInfoWindow) throws NXException, RemoteException
workPart
- fileName
- Full path to the .xml filenamingRule
- appendixString
- string to add when NamingRule is AddPrefix or AddSuffixreportToInfoWindow
- Flag to report import status in the information windowNXException
RemoteException
void importFromSubassembly(Component compOcc, Part motionPart, Part workPart, MechanismImport.NamingRule namingRule, String appendixString, boolean reportToInfoWindow, boolean abortOnFailure) throws NXException, RemoteException
compOcc
- the selected component part occmotionPart
- the motion part which the mechanism objects are imported fromworkPart
- the current work partnamingRule
- enum to rule the naming behavior of the imported objectsappendixString
- string to add when NamingRule is AddPrefix or AddSuffixreportToInfoWindow
- Flag to report import status in the information windowabortOnFailure
- Flag to rule whether to abort the process when there is error occurrsNXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.