| Library | File | Frames | Expand |
| pfcExternalDataAccess_ptr | AccessExternalData () | |
| Initializes External Data access | ||
| void | Backup (pfcModelDescriptor_ptr WhereTo) | |
| Backs up the model to a specified directory. | ||
| xbool | CheckIsModifiable (xbool ShowUI) | |
| Check if given model is modifiable, indicating that the model could be saved (without checking for any subordinate models). | ||
| xbool | CheckIsSaveAllowed (xbool 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 pfcModel::SetIntf3DLayerSetupFile(optional xrstring) <reference 2 to unknown entity pfcModel::Model::SetIntf3DCsys> | ||
| void | Copy (xrstring NewName, optional pfcCopyInstructions_ptr Instructions) | |
| Copies the disk file for the model to another named file. The model copy is not retrieved into the session. | ||
| pfcModel_ptr | CopyAndRetrieve (xrstring NewName, optional pfcCopyInstructions_ptr Instructions) | |
| Copies the model to a new one, and retrieves the new model into memory. | ||
| pfcLayer_ptr | CreateLayer (xrstring 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 (xrstring FileName, pfcExportInstructions_ptr ExportData) | |
| Exports model data to a file or creates a plot. | ||
| void | ExportIntf3D (xrstring NewFileName, pfcExportType ExpType, optional xrstring ProfileFile) | |
| Exports a Creo Parametric model using default export profile. | ||
| optional xstring | GetBranch () | |
| The branch. This attribute can be null. | ||
| xstring | GetCommonName () | |
| void | SetCommonName (xrstring 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. | ||
| pfcModelDescriptor_ptr | GetDescr () | |
| The model descriptor. | ||
| xstring | GetFileName () | |
| The model file name in "name"."type" format. | ||
| xstring | GetFullName () | |
| The full name of the model in instance<generic> format. | ||
| optional xstring | GetGenericName () | |
| The name of the generic model. If the model is not an instance, this attribute must be null or an empty string. | ||
| xstring | GetInstanceName () | |
| The name of the model, or, if the model is an instance, the instance name. | ||
| xbool | GetIsModified () | |
| A Boolean flag that specifies whether the model has been modified since the last save. | ||
| xstring | GetOrigin () | |
| The location of the origin of the model. | ||
| optional xstringsequence_ptr | GetPostRegenerationRelations () | |
| void | SetPostRegenerationRelations (optional xstringsequence_ptr value) | |
| The list of the post-regeneration relations assigned to the model. This attribute can be null. | ||
| optional xint | GetRelationId () | |
| The relation identifier. This attribute can be null. | ||
| optional xstring | GetReleaseLevel () | |
| The release level. This attribute can be null. | ||
| optional xstring | GetRevision () | |
| The revision number. This attribute can be null. | ||
| pfcModelType | GetType () | |
| The model type. | ||
| optional xstring | GetVersion () | |
| The version. This attribute can be null. | ||
| xstring | GetVersionStamp () | |
| The version stamp. | ||
| void | Import (xrstring FilePath, pfcImportInstructions_ptr ImportData) | |
| Reads a file into Creo Parametric. The format must be the same as if these files were created by Creo Parametric. | ||
| xbool | IsCommonNameModifiable () | |
| Identifies if the model common name (pfcModel::GetCommonName(xrstring)) can be modified. | ||
| xbool | IsIntf3DCsysIgnored () | |
|
Checks that reference CSYS for export is ignored or not.
|
||
| xbool | IsIntf3DLayerSetupFileIgnored () | |
|
Checks that layer setup file for export is ignored or not.
|
||
| xbool | IsNativeModel () | |
| Returns true if the origin of the model is Creo; false otherwise. | ||
| optional pfcModelDescriptors_ptr | ListDeclaredModels () | |
| Finds all the first-level objects declared for the model. | ||
| optional pfcDependencies_ptr | 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 (xrstring NewName, optional xbool RenameFilesToo) | |
| Renames the model. | ||
| void | Save () | |
| Writes the model to disk. | ||
| void | SetIntf3DLayerSetupFile (optional xrstring setupFilePath) | |
| Set layer setup file for export | ||
| void | TerminateExternalData () | |
| Cleans up the setup required for the generic application data operations for the specified model. | ||
| pfcModelDescriptor_ptr | GetDescr | () |
|
The model descriptor. Exceptions thrown (but not limited to): pfcXToolkitUnsupported - Unsupported model. For instance, models which come from Multi-CAD model approach, are not supported in this release.
|
| optional xint | GetRelationId | () |
|
The relation identifier. This attribute can be null.
|
| xbool | GetIsModified | () |
|
A Boolean flag that specifies whether the model has been modified since the last save.
|
| xstring | GetVersionStamp | () |
|
The version stamp.
|
| optional xstring | GetRevision | () |
|
The revision number. This attribute can be null.
|
| optional xstring | GetVersion | () |
|
The version. This attribute can be null.
|
| optional xstring | GetBranch | () |
|
The branch. This attribute can be null.
|
| optional xstring | GetReleaseLevel | () |
|
The release level. This attribute can be null.
|
| xstring | GetCommonName | () |
| void | SetCommonName | (xrstring 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): pfcXToolkitCantModify - The common name for the given model has been locked by PDM and cannot be modified.
|
| xbool | IsCommonNameModifiable | () |
|
Identifies if the model common name (pfcModel::GetCommonName(xrstring)) can be modified.
|
| xstring | GetFullName | () |
|
The full name of the model in instance<generic> format.
|
| xstring | GetInstanceName | () |
|
The name of the model, or, if the model is an instance, the instance name.
|
| optional xstring | 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): pfcXToolkitNotFound - The specified model is not an instance -- it has no generic model. pfcXToolkitCantOpen - The immediate generic is not in session ('immediate' is set to TRUE).
|
| pfcModelType | GetType | () |
|
The model type.
|
| xstring | GetFileName | () |
|
The model file name in "name"."type" format.
|
| void | Backup | (pfcModelDescriptor_ptr WhereTo) |
|
Backs up the model to a specified directory. Exceptions thrown (but not limited to): pfcXToolkitInvalidPtr - The handle is not correct, or the name and type are invalid (for example, the object is not in memory). pfcXToolkitInvalidType - The specified type is invalid. pfcXToolkitCantWrite - The system could not write to the specified directory. pfcXToolkitInvalidDir - The specified directory (path) is invalid. pfcXToolkitNoPermission - The function does not have permission to operate on this model. pfcXToolkitBadContext - The function is not available in Design Test Mode.
|
| void | Copy | (xrstring NewName, optional pfcCopyInstructions_ptr 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): pfcXToolkitNoPermission - The function does not have permission to operate on this model. pfcXToolkitUnsupported - Unsupported model. For instance, models which come from Multi-CAD model approach, are not supported in this release.
|
| pfcModel_ptr | CopyAndRetrieve | (xrstring NewName, optional pfcCopyInstructions_ptr Instructions) |
|
Copies the model to a new one, and retrieves the new model into memory. Exceptions thrown (but not limited to): pfcXToolkitNoPermission - The function does not have permission to operate on this model. pfcXToolkitUnsupported - Unsupported model. For instance, models which come from Multi-CAD model approach, are not supported in this release.
|
| void | Rename | (xrstring NewName, optional xbool RenameFilesToo) |
|
Renames the model. Exceptions thrown (but not limited to): pfcXToolkitBadContext - The function is not available in Design Test Mode. pfcXToolkitUnsupported - Unsupported model. For instance, models which come from Multi-CAD model approach, are not supported in this release.
|
| void | Save | () |
|
Writes the model to disk. Exceptions thrown (but not limited to): pfcXToolkitCantWrite - Failed to save the model or at least one of its subordinate models due to unresolved non-overridable conflicts in the target location. pfcXToolkitNoPermission - The function does not have permission to operate on this model. pfcXToolkitBadContext - The function is not available in Design Test Mode.
|
| 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): pfcXToolkitDeadLock - 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).
|
| 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): pfcXToolkitBadContext - Current User Interface context does not allow erasure of models (for example, when the Erase button is grayed out). pfcXToolkitInUse - The model could not be erased because it is in use, for example by another model in the session.
|
| void | Delete | () |
|
Deletes the model from memory and disk. Exceptions thrown (but not limited to): pfcXToolkitBadContext - The function is not available in Design Test Mode.
|
| void | Display | () |
|
Displays the model in its window. Does not support display of 2D section models. Exceptions thrown (but not limited to): pfcXToolkitNotFound - The model is NULL, and there is no current object. pfcXToolkitInvalidPtr - The specified model is not in memory. pfcXToolkitInvalidType - You specified an invalid model type.
|
| void | DisplayInNewWindow | () |
|
| optional pfcDependencies_ptr | ListDependencies | () |
|
Finds the first-level dependencies for the model in the Creo Parametric workspace. Exceptions thrown (but not limited to): pfcXToolkitNotFound - No dependencies were found. pfcXToolkitBadContext - Some dependencies could not be processed and were skipped.
|
| optional pfcModelDescriptors_ptr | 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): pfcXToolkitNotFound - No objects were found.
|
| pfcLayer_ptr | CreateLayer | (xrstring Name) |
|
Creates a new layer in the object. Exceptions thrown (but not limited to): pfcXToolkitInvalidName - You specified an invalid layer name. pfcXToolkitFound - A layer with the specified name already exists.
|
| void | Export | (xrstring FileName, pfcExportInstructions_ptr ExportData) |
| void | Import | (xrstring FilePath, pfcImportInstructions_ptr ImportData) |
| pfcExternalDataAccess_ptr | AccessExternalData | () |
|
Initializes External Data access Exceptions thrown (but not limited to): pfcXExternalDataTKError - The function failed. pfcXExternalDataInvalidObject - The specified model is invalid.
|
| 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): pfcXExternalDataTKError - The function failed. pfcXExternalDataInvalidObject - The specified model is invalid.
|
| xbool | CheckIsSaveAllowed | (xbool 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.
|
| xbool | CheckIsModifiable | (xbool 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.
|
| xstring | 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.
|
| optional xstringsequence_ptr | GetPostRegenerationRelations | () |
| void | SetPostRegenerationRelations | (optional xstringsequence_ptr 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), pfcRelationOwner::RegenerateRelations() and pfcRelationOwner::DeleteRelations(). Exceptions thrown (but not limited to): pfcXToolkitNotFound - The post regeneration relation set was not found.
|
| void | RegeneratePostRegenerationRelations | () |
|
Regenerates the post-regeneration relations in the model.
|
| void | DeletePostRegenerationRelations | () |
|
Deletes the post-regeneration relations in the model.
|
| 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): pfcXToolkitNotValid - The supplied solid is in the state, not allowing to cleanup dependencies i.e. inside feature creation.
|
| xbool | 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.
|
| void | ExportIntf3D | (xrstring NewFileName, pfcExportType ExpType, optional xrstring ProfileFile) |
|
Exports a Creo Parametric model using default export profile. Exceptions thrown (but not limited to): pfcXToolkitNotFound - This means either:
pfcXToolkitObsoleteFunc - The file format selected is no longer supported on this platform. pfcXToolkitBadContext - This means either:
pfcXToolkitNoPermission - The function does not have permission to operate on this model. pfcXToolkitNoLicense - You do not have a license. pfcXToolkitNotDisplayed - Model not displayed in any window. pfcXToolkitUnsupported - Export type is not Supported
|
| void | SetIntf3DLayerSetupFile | (optional xrstring setupFilePath) |
|
Set layer setup file for export
|
| xbool | IsIntf3DLayerSetupFileIgnored | () |
|
Checks that layer setup file for export is ignored or not.
|
| xbool | IsIntf3DCsysIgnored | () |
|
Checks that reference CSYS for export is ignored or not.
|
| void | ClearIntf3DModelData | () |
|
Clears model data set for export. Clears model data which user set using following methods pfcModel::SetIntf3DLayerSetupFile(optional xrstring) <reference 2 to unknown entity pfcModel::Model::SetIntf3DCsys>
|