public interface FileNew extends Builder
FileNew
Modifier and Type | Method and Description |
---|---|
FileNewApplication |
application()
Deprecated.
Deprecated in NX9.0.0. Use
applicationName() that takes a string name instead.
|
String |
applicationName()
Returns the application type for the new file being created
Use
getApplicationNames() to get valid application names. |
String |
designElementState()
Returns the state for the new design element.
|
String |
designElementType()
Returns the design element type for the new design element.
|
boolean |
getAddMasterFlag()
Deprecated.
Deprecated in NX10.0.0. Use
PartOperationCreateBuilder.getAddMaster() to get addMaster flag.
|
String[] |
getApplicationNames()
Returns all registered application names.
|
String[] |
getAvailableTemplates()
Returns the available templates for the session
License requirements: None. |
boolean |
getCanCreateAltrep()
Gets the flag specifying if the current template customization allows Alternate representation creation using the template
License requirements: None. |
String |
itemType()
Returns the item type for the new file.
|
boolean |
makeDisplayedPart()
Returns the property that controls if the new file should be made the displayed part
License requirements: None. |
String |
masterFileName()
Returns the name of the master model part to be referenced.
|
String |
newFileName()
Returns the name of the new file being created
License requirements: None. |
String |
relationType()
Returns the relation type of the underlying template which is used for the new file being created.
|
void |
setAddMasterFlag(boolean addMaster)
Deprecated.
Deprecated in NX10.0.0. Use
PartOperationCreateBuilder.setAddMaster(boolean) to set addMaster flag.
|
void |
setApplication(FileNewApplication application)
Deprecated.
Deprecated in NX9.0.0. Use
setApplicationName(java.lang.String) that takes a string name instead.
|
void |
setApplicationName(String application)
License requirements: None. |
void |
setCanCreateAltrep(boolean createAltrep)
Sets the flag specifying if the current template customization allows Alternate representation creation using the template
License requirements: None. |
void |
setDesignElementState(String deState)
License requirements: None. |
void |
setDesignElementType(String deType)
License requirements: None. |
void |
setItemType(String itemType)
License requirements: None. |
void |
setMakeDisplayedPart(boolean makeDisplayedPart)
License requirements: None. |
void |
setMasterFileName(String masterFileName)
License requirements: None. |
void |
setNewFileName(String fileName)
License requirements: None. |
void |
setPartOperationCreateBuilder(PartOperationBuilder partOperationBuilder)
Sets
PartOperationBuilder
License requirements: None. |
void |
setProjectsData(String[] projectName,
int[] assignmentState)
Deprecated.
Deprecated in NX10.0.0. Use
Session.assignRemoveProjects(java.lang.String[], nxopen.Session.ProjectAssignmentObjectType[], java.lang.String[], nxopen.Session.ProjectAssignmentState[]) to assign/remove projects.
|
void |
setRelationType(String relationType)
License requirements: None. |
void |
setSpecialization(String specialization)
License requirements: None. |
void |
setTemplateFileName(String templateFileName)
License requirements: None. |
void |
setTemplatePresentationName(String presentationName)
License requirements: None. |
void |
setTemplateType(FileNewTemplateType templateType)
License requirements: None. |
void |
setUnits(Part.Units units)
License requirements: None. |
void |
setUseBlankTemplate(boolean useBlankTemplate)
License requirements: None. |
void |
setUsesMasterModel(String usesMasterModel)
License requirements: None. |
String |
specialization()
Returns the specialization for the new file
License requirements: None. |
String |
templateFileName()
Returns the name of the template part from which to create the new file
License requirements: None. |
String |
templatePresentationName()
Returns the presentation name of the underlying template which is used for the new file being created
License requirements: None. |
FileNewTemplateType |
templateType()
Returns the template type for the new file being created
License requirements: None. |
Part.Units |
units()
Returns the units for the new file being created
License requirements: None. |
boolean |
useBlankTemplate()
Returns the property that controls if the new file should be created using a blank template.
|
String |
usesMasterModel()
Returns the uses master model flag of the underlying template which is used for the new file being created.
|
commit, destroy, getCommittedObjects, getObject, showResults
printTestData, printTestData, tag, tagValue
validate
String newFileName() throws NXException, RemoteException
NXException
RemoteException
void setNewFileName(String fileName) throws NXException, RemoteException
fileName
- NXException
RemoteException
String templateFileName() throws NXException, RemoteException
NXException
RemoteException
void setTemplateFileName(String templateFileName) throws NXException, RemoteException
templateFileName
- NXException
RemoteException
String masterFileName() throws NXException, RemoteException
NXException
RemoteException
void setMasterFileName(String masterFileName) throws NXException, RemoteException
masterFileName
- NXException
RemoteException
Part.Units units() throws NXException, RemoteException
NXException
RemoteException
void setUnits(Part.Units units) throws NXException, RemoteException
units
- NXException
RemoteException
FileNewApplication application() throws NXException, RemoteException
applicationName()
that takes a string name instead.
NXException
RemoteException
void setApplication(FileNewApplication application) throws NXException, RemoteException
setApplicationName(java.lang.String)
that takes a string name instead.
application
- NXException
RemoteException
String applicationName() throws NXException, RemoteException
getApplicationNames()
to get valid application names.
NXException
RemoteException
void setApplicationName(String application) throws NXException, RemoteException
application
- NXException
RemoteException
boolean useBlankTemplate() throws NXException, RemoteException
setTemplateFileName(java.lang.String)
. If set to True, this means that no template
is used during creation.
Note: This property should be set to True only while creating traditional items with template type set as
FileNewTemplateType.ITEM
NXException
RemoteException
void setUseBlankTemplate(boolean useBlankTemplate) throws NXException, RemoteException
useBlankTemplate
- NXException
RemoteException
boolean makeDisplayedPart() throws NXException, RemoteException
NXException
RemoteException
void setMakeDisplayedPart(boolean makeDisplayedPart) throws NXException, RemoteException
makeDisplayedPart
- NXException
RemoteException
String[] getAvailableTemplates() throws NXException, RemoteException
NXException
RemoteException
void setProjectsData(String[] projectName, int[] assignmentState) throws NXException, RemoteException
Session.assignRemoveProjects(java.lang.String[], nxopen.Session.ProjectAssignmentObjectType[], java.lang.String[], nxopen.Session.ProjectAssignmentState[])
to assign/remove projects.
projectName
- name of the project assignmentState
- assignment state
NXException
RemoteException
boolean getAddMasterFlag() throws NXException, RemoteException
PartOperationCreateBuilder.getAddMaster()
to get addMaster flag.
NXException
RemoteException
void setAddMasterFlag(boolean addMaster) throws NXException, RemoteException
PartOperationCreateBuilder.setAddMaster(boolean)
to set addMaster flag.
addMaster
- whether master to be added as child component
NXException
RemoteException
FileNewTemplateType templateType() throws NXException, RemoteException
NXException
RemoteException
void setTemplateType(FileNewTemplateType templateType) throws NXException, RemoteException
templateType
- NXException
RemoteException
String itemType() throws NXException, RemoteException
NXException
RemoteException
void setItemType(String itemType) throws NXException, RemoteException
itemType
- NXException
RemoteException
String designElementType() throws NXException, RemoteException
NXException
RemoteException
void setDesignElementType(String deType) throws NXException, RemoteException
deType
- NXException
RemoteException
String designElementState() throws NXException, RemoteException
NXException
RemoteException
void setDesignElementState(String deState) throws NXException, RemoteException
deState
- NXException
RemoteException
String specialization() throws NXException, RemoteException
NXException
RemoteException
void setSpecialization(String specialization) throws NXException, RemoteException
specialization
- NXException
RemoteException
String templatePresentationName() throws NXException, RemoteException
NXException
RemoteException
void setTemplatePresentationName(String presentationName) throws NXException, RemoteException
presentationName
- NXException
RemoteException
String relationType() throws NXException, RemoteException
setUsesMasterModel(java.lang.String)
to be set to 'Yes'
NXException
RemoteException
void setRelationType(String relationType) throws NXException, RemoteException
relationType
- NXException
RemoteException
String usesMasterModel() throws NXException, RemoteException
NXException
RemoteException
void setUsesMasterModel(String usesMasterModel) throws NXException, RemoteException
usesMasterModel
- NXException
RemoteException
String[] getApplicationNames() throws NXException, RemoteException
setApplicationName(java.lang.String)
.
NXException
RemoteException
void setPartOperationCreateBuilder(PartOperationBuilder partOperationBuilder) throws NXException, RemoteException
partOperationBuilder
- NXException
RemoteException
void setCanCreateAltrep(boolean createAltrep) throws NXException, RemoteException
createAltrep
- NXException
RemoteException
boolean getCanCreateAltrep() throws NXException, RemoteException
NXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.