| Library | Package | Frames | Expand | Java Toolkit |
| Method Summary | |
|---|---|
| ExternalDataAccess | AccessExternalData
()
Initializes External Data access |
| void | Backup
(ModelDescriptor WhereTo)
Backs up the model to a specified directory. |
| boolean | CheckIsModifiable
(boolean ShowUI)
Check if given model is modifiable, indicating that the model could be saved (without checking for any subordinate models). |
| boolean | CheckIsSaveAllowed
(boolean ShowUI)
Check if given model can be saved along with all its subordinate models that are to be saved together with it according to their modification status and the configuration option 'save_objects'. |
| void | CleanupDependencies
()
Forces cleaning up dependencies database of an object in the Creo Parametric workspace. This function should not be called during reference altering operations like feature create, edit definition or restructure. |
| void | ClearIntf3DModelData
()
Clears model data set for export. Clears model data which user set using following methods Model.SetIntf3DLayerSetupFile(/*optional*/ String) <reference 4 to unknown entity pfcModel::Model::SetIntf3DCsys> |
| void | Copy
(String NewName,
/*optional*/
CopyInstructions Instructions)
Copies the disk file for the model to another named file. The model copy is not retrieved into the session. |
| Model | CopyAndRetrieve
(String NewName,
/*optional*/
CopyInstructions Instructions)
Copies the model to a new one, and retrieves the new model into memory. |
| Layer | CreateLayer
(String Name)
Creates a new layer in the object. |
| void | Delete
()
Deletes the model from memory and disk. |
| void | DeletePostRegenerationRelations
()
Deletes the post-regeneration relations in the model. |
| void | Display
()
Displays the model in its window. |
| void | DisplayInNewWindow
()
|
| void | Erase
()
Erases the model from the session. This method does not delete the model file from the disk. |
| void | EraseWithDependencies
()
Erases the model and its dependencies from the session. |
| void | Export
(String FileName, ExportInstructions ExportData)
Exports model data to a file or creates a plot. |
| void | ExportIntf3D
(String NewFileName, ExportType ExpType,
/*optional*/
String ProfileFile)
Exports a Creo Parametric model using default export profile. |
| /*optional*/ String | GetBranch
()
Get method for attribute "Branch" The branch. This attribute can be null. |
| String | GetCommonName
()
Get method for attribute "CommonName" The common name for the model. This is the name that will shown for the model in Windchill PDM. It can be modified for models which are not owned by PDM. |
| ModelDescriptor | GetDescr
()
Get method for attribute "Descr" The model descriptor. |
| String | GetFileName
()
Get method for attribute "FileName" The model file name in "name"."type" format. |
| String | GetFullName
()
Get method for attribute "FullName" The full name of the model in instance<generic> format. |
| /*optional*/ String | GetGenericName
()
Get method for attribute "GenericName" The name of the generic model. If the model is not an instance, this attribute must be null or an empty string. |
| String | GetInstanceName
()
Get method for attribute "InstanceName" The name of the model, or, if the model is an instance, the instance name. |
| boolean | GetIsModified
()
Get method for attribute "IsModified" A Boolean flag that specifies whether the model has been modified since the last save. |
| String | GetOrigin
()
Get method for attribute "Origin" The location of the origin of the model. |
| /*optional*/ stringseq | GetPostRegenerationRelations
()
Get method for attribute "PostRegenerationRelations" The list of the post-regeneration relations assigned to the model. This attribute can be null. |
| /*optional*/ Integer | GetRelationId
()
Get method for attribute "RelationId" The relation identifier. This attribute can be null. |
| /*optional*/ String | GetReleaseLevel
()
Get method for attribute "ReleaseLevel" The release level. This attribute can be null. |
| /*optional*/ String | GetRevision
()
Get method for attribute "Revision" The revision number. This attribute can be null. |
| ModelType | GetType
()
Get method for attribute "Type" The model type. |
| /*optional*/ String | GetVersion
()
Get method for attribute "Version" The version. This attribute can be null. |
| String | GetVersionStamp
()
Get method for attribute "VersionStamp" The version stamp. |
| void | Import
(String FilePath, ImportInstructions ImportData)
Reads a file into Creo Parametric. The format must be the same as if these files were created by Creo Parametric. |
| boolean | IsCommonNameModifiable
()
Identifies if the model common name (Model.GetCommonName(String)) can be modified. |
| boolean | IsIntf3DCsysIgnored
()
Checks that reference CSYS for export is ignored or not. |
| boolean | IsIntf3DLayerSetupFileIgnored
()
Checks that layer setup file for export is ignored or not. |
| boolean | IsNativeModel
()
Returns true if the origin of the model is Creo; false otherwise. |
| /*optional*/ ModelDescriptors | ListDeclaredModels
()
Finds all the first-level objects declared for the model. |
| /*optional*/ Dependencies | ListDependencies
()
Finds the first-level dependencies for the model in the Creo Parametric workspace. |
| void | RegeneratePostRegenerationRelations
()
Regenerates the post-regeneration relations in the model. |
| void | Rename
(String NewName,
/*optional*/
Boolean RenameFilesToo)
Renames the model. |
| void | Save
()
Writes the model to disk. |
| void | SetCommonName
(String value)
Set method for attribute "CommonName" The common name for the model. This is the name that will shown for the model in Windchill PDM. It can be modified for models which are not owned by PDM. |
| void | SetIntf3DLayerSetupFile
(
/*optional*/
String setupFilePath)
Set layer setup file for export |
| void | SetPostRegenerationRelations
(
/*optional*/
stringseq value)
Set method for attribute "PostRegenerationRelations" The list of the post-regeneration relations assigned to the model. This attribute can be null. |
| void | TerminateExternalData
()
Cleans up the setup required for the generic application data operations for the specified model. |
| Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent |
|---|
| GetChild |
| Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ModelItemOwner |
|---|
| GetItemByName, GetItemById, ListItems |
| Methods Inherited from Interface com.ptc.pfc.pfcView.ViewOwner |
|---|
| RetrieveView, GetView, SaveView, GetCurrentViewTransform, SetCurrentViewTransform, CurrentViewRotate, ListViews, GetCurrentView |
| Methods Inherited from Interface com.ptc.pfc.pfcObject.Child |
|---|
| GetDBParent, GetOId |
| Methods Inherited from Interface com.ptc.pfc.pfcBase.ActionSource |
|---|
| AddActionListener, RemoveActionListener, AddActionListenerWithType |
| Methods Inherited from Interface com.ptc.pfc.pfcModelItem.RelationOwner |
|---|
| DeleteRelations, GetRelations, SetRelations, RegenerateRelations, EvaluateExpression |
| Methods Inherited from Interface com.ptc.pfc.pfcModelItem.ParameterOwner |
|---|
| GetParam, CreateParam, ListParams, SelectParam, CreateParamWithUnits, SelectParameters |
| Method Detail |
|---|
| GetDescr |
|---|
| ModelDescriptor | GetDescr | () |
| The model descriptor. Exceptions thrown (but not limited to): XToolkitUnsupported - Unsupported model. For instance, models which come from Multi-CAD model approach, are not supported in this release.
|
| GetRelationId |
|---|
| /*optional*/ Integer | GetRelationId | () |
The relation identifier. This attribute can be null.
|
| GetIsModified |
|---|
| boolean | GetIsModified | () |
A Boolean flag that specifies whether the model has been modified since the last save.
|
| GetVersionStamp |
|---|
| String | GetVersionStamp | () |
The version stamp.
|
| GetRevision |
|---|
| /*optional*/ String | GetRevision | () |
The revision number. This attribute can be null.
|
| GetVersion |
|---|
| /*optional*/ String | GetVersion | () |
The version. This attribute can be null.
|
| GetBranch |
|---|
| /*optional*/ String | GetBranch | () |
The branch. This attribute can be null.
|
| GetReleaseLevel |
|---|
| /*optional*/ String | GetReleaseLevel | () |
The release level. This attribute can be null.
|
| GetCommonName/SetCommonName |
|---|
| String | GetCommonName | () |
| void | SetCommonName | (String value) |
| The common name for the model. This is the name that will shown for the model in Windchill PDM. It can be modified for models which are not owned by PDM. Exceptions thrown (but not limited to): XToolkitCantModify - The common name for the given model has been locked by PDM and cannot be modified.
|
| IsCommonNameModifiable |
|---|
| boolean | IsCommonNameModifiable | () |
Identifies if the model common name (Model.GetCommonName(String)) can be modified.
|
| GetFullName |
|---|
| String | GetFullName | () |
The full name of the model in instance<generic> format.
|
| GetInstanceName |
|---|
| String | GetInstanceName | () |
The name of the model, or, if the model is an instance, the instance name.
|
| GetGenericName |
|---|
| /*optional*/ String | GetGenericName | () |
| The name of the generic model. If the model is not an instance, this attribute must be null or an empty string. Exceptions thrown (but not limited to): XToolkitNotFound - The specified model is not an instance -- it has no generic model. XToolkitCantOpen - The immediate generic is not in session ('immediate' is set to TRUE).
|
| GetType |
|---|
| ModelType | GetType | () |
The model type.
|
| GetFileName |
|---|
| String | GetFileName | () |
The model file name in "name"."type" format.
|
| Backup |
|---|
| void | Backup | (ModelDescriptor WhereTo) |
| Backs up the model to a specified directory.
Exceptions thrown (but not limited to): XToolkitInvalidPtr - The handle is not correct, or the name and type are invalid (for example, the object is not in memory). XToolkitInvalidType - The specified type is invalid. XToolkitCantWrite - The system could not write to the specified directory. XToolkitInvalidDir - The specified directory (path) is invalid. XToolkitNoPermission - The function does not have permission to operate on this model. XToolkitBadContext - The function is not available in Design Test Mode.
|
| Copy |
|---|
| void | Copy | (String NewName, /*optional*/ CopyInstructions Instructions) |
| Copies the disk file for the model to another named file. The model copy is
not retrieved into the session.
Exceptions thrown (but not limited to): XToolkitNoPermission - The function does not have permission to operate on this model. XToolkitUnsupported - Unsupported model. For instance, models which come from Multi-CAD model approach, are not supported in this release.
|
| CopyAndRetrieve |
|---|
| Model | CopyAndRetrieve | (String NewName, /*optional*/ CopyInstructions Instructions) |
| Copies the model to a new one, and retrieves the new model into memory.
Exceptions thrown (but not limited to): XToolkitNoPermission - The function does not have permission to operate on this model. XToolkitUnsupported - Unsupported model. For instance, models which come from Multi-CAD model approach, are not supported in this release.
|
| Rename |
|---|
| void | Rename | (String NewName, /*optional*/ Boolean RenameFilesToo) |
| Renames the model.
Exceptions thrown (but not limited to): XToolkitBadContext - The function is not available in Design Test Mode. XToolkitUnsupported - Unsupported model. For instance, models which come from Multi-CAD model approach, are not supported in this release.
|
| Save |
|---|
| void | Save | () |
| Writes the model to disk.
Exceptions thrown (but not limited to): XToolkitCantWrite - Failed to save the model or at least one of its subordinate models due to unresolved non-overridable conflicts in the target location. XToolkitNoPermission - The function does not have permission to operate on this model. XToolkitBadContext - The function is not available in Design Test Mode.
|
| Erase |
|---|
| void | Erase | () |
| Erases the model from the session. This method does not delete the model file
from the disk.
If the model is displayed in a window, the model is marked to be erased when control returns the Creo Parametric UI from the application. It is not erased immediately. Models used by other models cannot be erased until the models dependent upon them are erased. Exceptions thrown (but not limited to): XToolkitDeadLock - The Creo Parametric user interface is not prepared to handle this request (because it is blocked by another process such as an OLE container activation).
|
| EraseWithDependencies |
|---|
| void | EraseWithDependencies | () |
| Erases the model and its dependencies from the session.
This method also erases all of the models that this model depdends on from disk, so long as the dependencies are not needed by other items in session. If the model is displayed in a window, the model is marked to be erased when control returns the Creo Parametric UI from the application. It is not erased immediately. Exceptions thrown (but not limited to): XToolkitBadContext - Current User Interface context does not allow erasure of models (for example, when the Erase button is grayed out). XToolkitInUse - The model could not be erased because it is in use, for example by another model in the session.
|
| Delete |
|---|
| void | Delete | () |
| Deletes the model from memory and disk.
Exceptions thrown (but not limited to): XToolkitBadContext - The function is not available in Design Test Mode.
|
| Display |
|---|
| void | Display | () |
| Displays the model in its window.
Does not support display of 2D section models. Exceptions thrown (but not limited to): XToolkitNotFound - The model is NULL, and there is no current object. XToolkitInvalidPtr - The specified model is not in memory. XToolkitInvalidType - You specified an invalid model type.
|
| DisplayInNewWindow |
|---|
| void | DisplayInNewWindow | () |
|
| ListDependencies |
|---|
| /*optional*/ Dependencies | ListDependencies | () |
| Finds the first-level dependencies for the model in
the Creo Parametric workspace.
Exceptions thrown (but not limited to): XToolkitNotFound - No dependencies were found. XToolkitBadContext - Some dependencies could not be processed and were skipped.
|
| ListDeclaredModels |
|---|
| /*optional*/ ModelDescriptors | ListDeclaredModels | () |
| Finds all the first-level objects declared for the model.
If layout A is declared in layout B and layout B is declared in part P, only layout B will be returned. Exceptions thrown (but not limited to): XToolkitNotFound - No objects were found.
|
| CreateLayer |
|---|
| Layer | CreateLayer | (String Name) |
| Creates a new layer in the object.
Exceptions thrown (but not limited to): XToolkitInvalidName - You specified an invalid layer name. XToolkitFound - A layer with the specified name already exists.
|
| Export |
|---|
| void | Export | (String FileName, ExportInstructions ExportData) |
| Import |
|---|
| void | Import | (String FilePath, ImportInstructions ImportData) |
| Reads a file into Creo Parametric.
The format must be the same as if these files were created by Creo Parametric.
Exceptions thrown (but not limited to): XToolkitLineTooLong - The input filename length is too long for this import file type. XToolkitObsoleteFunc - The file format selected is no longer supported on this platform. XToolkitInvalidFile - The input file could not be found, or contained unrecoverable errors. XToolkitNoLicense - There is no license for this import option. XInAMethod - Call pfcBaseSession_tk::LoadConfigFile for pfcIMPORT_CONFIG
|
| AccessExternalData |
|---|
| ExternalDataAccess | AccessExternalData | () |
| Initializes External Data access
Exceptions thrown (but not limited to): XExternalDataTKError - The function failed. XExternalDataInvalidObject - The specified model is invalid.
|
| TerminateExternalData |
|---|
| void | TerminateExternalData | () |
| Cleans up the setup required for the generic application data operations for the specified model.
If you need to preserve the external data created in session you must save the model before calling this method. Otherwise your data will be lost. Exceptions thrown (but not limited to): XExternalDataTKError - The function failed. XExternalDataInvalidObject - The specified model is invalid.
|
| CheckIsSaveAllowed |
|---|
| boolean | CheckIsSaveAllowed | (boolean ShowUI) |
| Check if given model can be saved along with all its subordinate models that
are to be saved together with it according to their modification status and the configuration
option 'save_objects'. This will also check the current UI context to see if it is currently safe to save the model, and so calling this function at different times might return different results.
|
| CheckIsModifiable |
|---|
| boolean | CheckIsModifiable | (boolean ShowUI) |
| Check if given model is modifiable, indicating that the model could be saved
(without checking for any subordinate models). For a generic model, if ShowUI is true, all its instances are also checked.
|
| GetOrigin |
|---|
| String | GetOrigin | () |
| The location of the origin of the model. This method supports Multi-CAD approach only for Object Toolkit (OTK) users. Outside of OTK (for instance in J-Link), this method will throw the XToolkitUnsupported exception if called on models originated through Multi-CAD.
|
| GetPostRegenerationRelations/SetPostRegenerationRelations |
|---|
| /*optional*/ stringseq | GetPostRegenerationRelations | () |
| void | SetPostRegenerationRelations | ( /*optional*/ stringseq value) |
| The list of the post-regeneration relations assigned to the model.
This attribute can be null. This attribute is a complement of pfcModelItem::RelationOwner::Relations which does not contain post regeneration relations. The obtained post regeneration relations attribute can be used in pfcModelItem::RelationOwner::SetRelations(/*optional*/ stringseq value), RelationOwner.RegenerateRelations() and RelationOwner.DeleteRelations(). Exceptions thrown (but not limited to): XToolkitNotFound - The post regeneration relation set was not found.
|
| RegeneratePostRegenerationRelations |
|---|
| void | RegeneratePostRegenerationRelations | () |
Regenerates the post-regeneration relations in the model.
|
| DeletePostRegenerationRelations |
|---|
| void | DeletePostRegenerationRelations | () |
Deletes the post-regeneration relations in the model.
|
| CleanupDependencies |
|---|
| void | CleanupDependencies | () |
|
Forces cleaning up dependencies database of an object in the
Creo Parametric workspace. This function should not be called
during reference altering operations like feature create, edit
definition or restructure.
Exceptions thrown (but not limited to): XToolkitNotValid - The supplied solid is in the state, not allowing to cleanup dependencies i.e. inside feature creation.
|
| IsNativeModel |
|---|
| boolean | IsNativeModel | () |
| Returns true if the origin of the model is Creo; false otherwise. Use this method to indetify models created through the Multi-CAD approach. For such models it will return false. Multi-CAD models are supported only through Object Toolkit.
|
| ExportIntf3D |
|---|
| void | ExportIntf3D | (String NewFileName, ExportType ExpType, /*optional*/ String ProfileFile) |
| Exports a Creo Parametric model using default export profile. Exceptions thrown (but not limited to): XToolkitNotFound - This means either:
XToolkitObsoleteFunc - The file format selected is no longer supported on this platform. XToolkitBadContext - This means either:
XToolkitNoPermission - The function does not have permission to operate on this model. XToolkitNoLicense - You do not have a license. XToolkitNotDisplayed - Model not displayed in any window. XToolkitUnsupported - Export type is not Supported
|
| SetIntf3DLayerSetupFile |
|---|
| void | SetIntf3DLayerSetupFile | ( /*optional*/ String setupFilePath) |
Set layer setup file for export
|
| IsIntf3DLayerSetupFileIgnored |
|---|
| boolean | IsIntf3DLayerSetupFileIgnored | () |
Checks that layer setup file for export is ignored or not.
|
| IsIntf3DCsysIgnored |
|---|
| boolean | IsIntf3DCsysIgnored | () |
Checks that reference CSYS for export is ignored or not.
|
| ClearIntf3DModelData |
|---|
| void | ClearIntf3DModelData | () |
Clears model data set for export.
Clears model data which user set using following methods
Model.SetIntf3DLayerSetupFile(/*optional*/ String)
<reference 4 to unknown entity pfcModel::Model::SetIntf3DCsys>
|