Library | Package Java Toolkit

Interface Model

package com.ptc.pfc.pfcModel;

public interface Model
  extends com.ptc.pfc.pfcModelItem.ModelItemOwner,
          com.ptc.pfc.pfcView.ViewOwner,
          com.ptc.pfc.pfcObject.Child,
          com.ptc.pfc.pfcBase.ActionSource,
          com.ptc.pfc.pfcModelItem.RelationOwner,
          com.ptc.pfc.pfcModelItem.ParameterOwner



Description

This class specifies the information about a model which is currently in session.

Attributes Revision, Version, Branch and ReleaseLevel are used for data management applications. Attributes FullName, GenericName, InstanceName and Type have the same values as the corresponding attributes of the model descriptor Descr.
See Also:
Solid, Model2D, BaseSession.ListModels(), BaseSession.RetrieveModel(ModelDescriptor), BaseSession.GetModel(String, ModelType), BaseSession.GetModelFromDescr(ModelDescriptor), BaseSession.GetByRelationId(int), BaseSession.CreateModelWindow(Model), BaseSession.ImportNewModel(String, NewModelImportType, ModelType, String, /*optional*/ LayerImportFilter)
Direct Known Subclasses:
Solid, DrawingFormat, Model2D, MFG, Section2D, Diagram, Markup, WModel



Method Summary
ExternalDataAccessAccessExternalData ()
    Initializes External Data access
voidBackup (ModelDescriptor WhereTo)
    Backs up the model to a specified directory.
booleanCheckIsModifiable (boolean ShowUI)
    Check if given model is modifiable, indicating that the model could be saved (without checking for any subordinate models).
booleanCheckIsSaveAllowed (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'.
voidCleanupDependencies ()
     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.
voidClearIntf3DModelData ()
     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>
voidCopy (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.
ModelCopyAndRetrieve (String NewName, /*optional*/ CopyInstructions Instructions)
    Copies the model to a new one, and retrieves the new model into memory.
LayerCreateLayer (String Name)
    Creates a new layer in the object.
voidDelete ()
    Deletes the model from memory and disk.
voidDeletePostRegenerationRelations ()
    Deletes the post-regeneration relations in the model.
voidDisplay ()
    Displays the model in its window.
voidDisplayInNewWindow ()
     
voidErase ()
    Erases the model from the session. This method does not delete the model file from the disk.
voidEraseWithDependencies ()
    Erases the model and its dependencies from the session.
voidExport (String FileName, ExportInstructions ExportData)
    Exports model data to a file or creates a plot.
voidExportIntf3D (String NewFileName, ExportType ExpType, /*optional*/ String ProfileFile)
    Exports a Creo Parametric model using default export profile.
/*optional*/ StringGetBranch ()
    Get method for attribute "Branch"
    The branch. This attribute can be null.
StringGetCommonName ()
    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.
ModelDescriptorGetDescr ()
    Get method for attribute "Descr"
    The model descriptor.
StringGetFileName ()
    Get method for attribute "FileName"
    The model file name in "name"."type" format.
StringGetFullName ()
    Get method for attribute "FullName"
    The full name of the model in instance<generic> format.
/*optional*/ StringGetGenericName ()
    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.
StringGetInstanceName ()
    Get method for attribute "InstanceName"
    The name of the model, or, if the model is an instance, the instance name.
booleanGetIsModified ()
    Get method for attribute "IsModified"
    A Boolean flag that specifies whether the model has been modified since the last save.
StringGetOrigin ()
    Get method for attribute "Origin"
    The location of the origin of the model.
/*optional*/ stringseqGetPostRegenerationRelations ()
    Get method for attribute "PostRegenerationRelations"
    The list of the post-regeneration relations assigned to the model. This attribute can be null.
/*optional*/ IntegerGetRelationId ()
    Get method for attribute "RelationId"
    The relation identifier. This attribute can be null.
/*optional*/ StringGetReleaseLevel ()
    Get method for attribute "ReleaseLevel"
    The release level. This attribute can be null.
/*optional*/ StringGetRevision ()
    Get method for attribute "Revision"
    The revision number. This attribute can be null.
ModelTypeGetType ()
    Get method for attribute "Type"
    The model type.
/*optional*/ StringGetVersion ()
    Get method for attribute "Version"
    The version. This attribute can be null.
StringGetVersionStamp ()
    Get method for attribute "VersionStamp"
    The version stamp.
voidImport (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.
booleanIsCommonNameModifiable ()
    Identifies if the model common name (Model.GetCommonName(String)) can be modified.
booleanIsIntf3DCsysIgnored ()
     Checks that reference CSYS for export is ignored or not. This API returns CSYS ignored status for last export using method ExportIntf3D. Call this API after ExportIntf3D otherwise results will not be reliable.
booleanIsIntf3DLayerSetupFileIgnored ()
     Checks that layer setup file for export is ignored or not. This method returns layer setup file ignored status for last export using method ExportIntf3D. Call this method after ExportIntf3D otherwise results will not be reliable.
booleanIsNativeModel ()
    Returns true if the origin of the model is Creo; false otherwise.
/*optional*/ ModelDescriptorsListDeclaredModels ()
    Finds all the first-level objects declared for the model.
/*optional*/ DependenciesListDependencies ()
    Finds the first-level dependencies for the model in the Creo Parametric workspace.
voidRegeneratePostRegenerationRelations ()
    Regenerates the post-regeneration relations in the model.
voidRename (String NewName, /*optional*/ Boolean RenameFilesToo)
    Renames the model.
voidSave ()
    Writes the model to disk.
voidSetCommonName (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.
voidSetIntf3DLayerSetupFile ( /*optional*/ String setupFilePath)
     Set layer setup file for export
voidSetPostRegenerationRelations ( /*optional*/ stringseq value)
    Set method for attribute "PostRegenerationRelations"
    The list of the post-regeneration relations assigned to the model. This attribute can be null.
voidTerminateExternalData ()
    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

ModelDescriptorGetDescr ()


    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.


Manual References:
Models: Model Information, Models: Model Information



GetRelationId

/*optional*/ IntegerGetRelationId ()


    The relation identifier. This attribute can be null.
Manual References:
Models: Model Information, Models: Model Information



GetIsModified

booleanGetIsModified ()


    A Boolean flag that specifies whether the model has been modified since the last save.
Manual References:
Models: Model Information, Models: Model Information



GetVersionStamp

StringGetVersionStamp ()


    The version stamp.
Manual References:
Models: Model Information, Models: Model Information



GetRevision

/*optional*/ StringGetRevision ()


    The revision number. This attribute can be null.
Manual References:
Models: Model Information, Models: Model Information



GetVersion

/*optional*/ StringGetVersion ()


    The version. This attribute can be null.
Manual References:
Models: Model Information, Models: Model Information



GetBranch

/*optional*/ StringGetBranch ()


    The branch. This attribute can be null.
Manual References:
Models: Model Information, Models: Model Information



GetReleaseLevel

/*optional*/ StringGetReleaseLevel ()


    The release level. This attribute can be null.
Manual References:
Models: Model Information, Models: Model Information



GetCommonName/SetCommonName

StringGetCommonName ()
voidSetCommonName (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.


Manual References:
Models: Model Information, Models: Model Information, Models: Model Operations, Models: Model Operations



IsCommonNameModifiable

booleanIsCommonNameModifiable ()


    Identifies if the model common name (Model.GetCommonName(String)) can be modified.
Manual References:
Models: Model Information, Models: Model Information
Returns:


GetFullName

StringGetFullName ()


    The full name of the model in instance<generic> format.
Manual References:
Models: Model Descriptors, Models: Model Information, Models: Model Information



GetInstanceName

StringGetInstanceName ()


    The name of the model, or, if the model is an instance, the instance name.
Manual References:
Models: Model Information, Models: Model Information



GetGenericName

/*optional*/ StringGetGenericName ()


    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).


Manual References:
Models: Model Information, Models: Model Information



GetType

ModelTypeGetType ()


    The model type.
Manual References:
Models: Model Information, Models: Model Information



GetFileName

StringGetFileName ()


    The model file name in "name"."type" format.
Manual References:
Models: Model Information, Models: Model Information



Backup

voidBackup (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.


See Also:
Model.Save(), Model.Copy(String, /*optional*/ CopyInstructions)
Manual References:
Models: Model Operations, Models: Model Operations
Parameters:
WhereTo
The path to the directory where the backup copy is created. (The backup has the same file name as the original.)
Returns:


Copy

voidCopy (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.


See Also:
Model.CopyAndRetrieve(String, /*optional*/ CopyInstructions)
Manual References:
Models: Model Operations, Models: Model Operations
Parameters:
NewName
The new name of the model
Instructions
Reserved for the future. Pass null.
Returns:


CopyAndRetrieve

ModelCopyAndRetrieve (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.


See Also:
Model.Copy(String, /*optional*/ CopyInstructions)
Manual References:
Models: Model Operations, Models: Model Operations
Parameters:
NewName
The new name of the model
Instructions
Reserved for the future. Pass null.
Returns:
The copied model


Rename

voidRename (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.


Manual References:
Models: Model Operations, Models: Model Operations
Parameters:
NewName
The new name for the model.
RenameFilesToo
Ignored: by default, this is false.
Returns:


Save

voidSave ()


    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.


See Also:
Model.Backup(ModelDescriptor)
Manual References:
Models: Model Operations, Models: Model Operations, Windchill Connectivity APIs: Save, Windchill Connectivity APIs: Upload, Windchill Connectivity APIs: CheckIn
Returns:


Erase

voidErase ()


    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).


See Also:
Model.EraseWithDependencies(), BaseSession.EraseUndisplayedModels()
Manual References:
Models: Model Operations, Models: Model Operations
Returns:


EraseWithDependencies

voidEraseWithDependencies ()


    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.


See Also:
Model.Erase(), BaseSession.EraseUndisplayedModels()
Manual References:
Models: Model Operations, Models: Model Operations
Returns:


Delete

voidDelete ()


    Deletes the model from memory and disk.

Exceptions thrown (but not limited to):

XToolkitBadContext - The function is not available in Design Test Mode.


See Also:
Model.Erase()
Manual References:
Models: Model Operations, Models: Model Operations
Returns:


Display

voidDisplay ()


    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.


Manual References:
Models: Model Operations, Models: Model Operations, Simplified Representations: Simplified Representation Utilities, Windows and Views: Getting a Window Object, Windows and Views: Getting a Window Object, Interface: Exporting to Faceted Formats
Returns:


DisplayInNewWindow

voidDisplayInNewWindow ()


     
Returns:


ListDependencies

/*optional*/ DependenciesListDependencies ()


    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.


Manual References:
Models: Model Information, Models: Model Information
Returns:
The list of dependencies, or null, if no dependencies found.


ListDeclaredModels

/*optional*/ ModelDescriptorsListDeclaredModels ()


    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.


Manual References:
Models: Model Information, Models: Model Information
Returns:
The list of model descriptors, or null, if no objects declared for the model have been found.


CreateLayer

LayerCreateLayer (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.


Manual References:
ModelItem: Getting Layer Objects
Parameters:
Name
The name of the new layer
Returns:
The created layer


Export

voidExport (String FileName, ExportInstructions ExportData)


    Exports model data to a file or creates a plot.

NOTE: Interface Export3DInstructions is deprecated in Creo5. Use superseding method <reference 6 to unknown entity pfcModel::ExportIntf3D> to export these type of objects.

The exported file(s) will be typically be placed in the current Creo Parametric working directory.

Exceptions thrown (but not limited to):

XToolkitNotFound - This means either:

  • pro2prod_view.dll is not found, OR
  • Some entity from source model required for export does not exist.

XToolkitObsoleteFunc - The file format selected is no longer supported on this platform.

XToolkitBadContext - This means either:

  • pro2prod_view.dll could not be loaded, OR
  • Design Test Mode is active - the function is not available in this mode.

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

XInAMethod - Call pfcBaseSession_tk::ExportDirectVRML method instead


See Also:
Window.ExportRasterImage(String, RasterImageExportInstructions), RelationExportInstructions, IGESFileExportInstructions, ModelInfoExportInstructions, ProgramExportInstructions, DXFExportInstructions, DWGSetupExportInstructions, FeatIdExportInstructions, FeatInfoExportInstructions, MFGFeatCLExportInstructions, MFGOperCLExportInstructions, CATIAFacetsExportInstructions, RenderExportInstructions, STLASCIIExportInstructions, STLBinaryExportInstructions, InventorExportInstructions, IGES3DExportInstructions, STEPExportInstructions, VDAExportInstructions, FIATExportInstructions, BOMExportInstructions, MaterialExportInstructions, ConnectorParamExportInstructions, CGMFILEExportInstructions, VRMLModelExportInstructions, PlotInstructions, STEP3DExportInstructions, VDA3DExportInstructions, IGES3DNewExportInstructions, CATIAModel3DExportInstructions, ACIS3DExportInstructions, CATIASession3DExportInstructions, CADDSExportInstructions, NEUTRALFileExportInstructions, ProductViewExportInstructions, STEP2DExportInstructions, CableParamsFileInstructions
Manual References:
Interface: Exporting Files and 2D Models, Interface: Exporting to Faceted Formats, Interface: Exporting to PDF and U3D, Interface: Export Utilities, Interface: Printer Options
Parameters:
FileName
The name of the export file.

When ExportData is a VRMLExportInstructions object, Name specifies the directory where the VRML files will be created.
ExportData
An export-instructions object that controls the exporting or plotting operation.
Returns:


Import

voidImport (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


See Also:
Import2DInstructions, STEPImport2DInstructions, IGESImport2DInstructions, DXFImport2DInstructions, DWGImport2DInstructions, RelationImportInstructions, IGESSectionImportInstructions, ProgramImportInstructions, ConfigImportInstructions, DWGSetupImportInstructions, SpoolImportInstructions, ConnectorParamsImportInstructions, CableParamsImportInstructions, ASSEMTreeCFGImportInstructions, WireListImportInstructions
Manual References:
Interface: Importing Files, Interface: Import Instructions
Parameters:
FilePath
 
ImportData
An import instructions object that controls the import operation.
Returns:


AccessExternalData

ExternalDataAccessAccessExternalData ()


    Initializes External Data access

Exceptions thrown (but not limited to):

XExternalDataTKError - The function failed.

XExternalDataInvalidObject - The specified model is invalid.


Manual References:
External Data: Accessing External Data, External Data: Accessing External Data
Returns:
ExternalDataAccess object used to access model's external dara


TerminateExternalData

voidTerminateExternalData ()


    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.


Manual References:
External Data: Accessing External Data, External Data: Accessing External Data
Returns:


CheckIsSaveAllowed

booleanCheckIsSaveAllowed (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.
Manual References:
Models: Model Information, Models: Model Information
Parameters:
ShowUI
Indicates whether the Conflicts dialog should be shown to user to resolve conflicts (if they are detected); when set to false no UI is enabled and the model is considered as modifiable if there are no conflicts that could not be overridden or resolved by default resolution actions.
Returns:
The boolean save access status. If it is true, the check is successful. If it is false, the model or at least one of its subordinate models can not be saved due to remaining unresolved non-overridable conflicts. Conflicts will not be shown if the model currently cannot be saved due to UI restrictions; the function will return false regardless of this flag.


CheckIsModifiable

booleanCheckIsModifiable (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.
Manual References:
Models: Model Information, Models: Model Information
Parameters:
ShowUI
Indicates whether the Conflicts dialog should be shown to user to resolve conflicts (if they are detected); when set to false no UI is enabled and the model is considered as modifiable if there are no conflicts that could not be overridden or resolved by default resolution actions.
Returns:
The access status. If it is true, the model is modifiable.


GetOrigin

StringGetOrigin ()


    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.
Manual References:
Models: Model Information, Models: Model Information



GetPostRegenerationRelations/SetPostRegenerationRelations

/*optional*/ stringseqGetPostRegenerationRelations ()
voidSetPostRegenerationRelations ( /*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.


Manual References:
Relations: Accessing Post Regeneration Relations, Relations: Accessing Post Regeneration Relations



RegeneratePostRegenerationRelations

voidRegeneratePostRegenerationRelations ()


    Regenerates the post-regeneration relations in the model.
Manual References:
Relations: Accessing Post Regeneration Relations, Relations: Accessing Post Regeneration Relations
Returns:


DeletePostRegenerationRelations

voidDeletePostRegenerationRelations ()


    Deletes the post-regeneration relations in the model.
Manual References:
Relations: Accessing Post Regeneration Relations
Returns:


CleanupDependencies

voidCleanupDependencies ()


     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.


Manual References:
Models: Model Information, Models: Model Information
Returns:


IsNativeModel

booleanIsNativeModel ()


    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.
Manual References:
Models: Model Information
Returns:


ExportIntf3D

voidExportIntf3D (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:

  • pro2prod_view.dll is not found, OR
  • Some entity from source model required for export does not exist.

XToolkitObsoleteFunc - The file format selected is no longer supported on this platform.

XToolkitBadContext - This means either:

  • pro2prod_view.dll could not be loaded, OR
  • Design Test Mode is active - the function is not available in this mode.

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


Manual References:
Interface: Export Instructions, Interface: Export Instructions
Parameters:
NewFileName
The output file name to produce. Optionally, this includes the path for the file location. The filename should not include the file extension, this will be added automatically by Creo Parametric.
ExpType
The type of output file to produce.
ProfileFile
Reserved for the future.
Returns:


SetIntf3DLayerSetupFile

voidSetIntf3DLayerSetupFile ( /*optional*/ String setupFilePath)


     Set layer setup file for export
Parameters:
setupFilePath
input layer setup file's full path. This is Optional argument. Call this method without any argument to set default layer setup settings. Layer setup file is not supported for CADDS and NEUTRAL file types.
Returns:


IsIntf3DLayerSetupFileIgnored

booleanIsIntf3DLayerSetupFileIgnored ()


     Checks that layer setup file for export is ignored or not. This method returns layer setup file ignored status for last export using method ExportIntf3D. Call this method after ExportIntf3D otherwise results will not be reliable.
Returns:
The boolean Layer SetupFile Ignored status. If it is true, layer setup file is ignored. If it is false, layer setup file is not ignored.


IsIntf3DCsysIgnored

booleanIsIntf3DCsysIgnored ()


     Checks that reference CSYS for export is ignored or not. This API returns CSYS ignored status for last export using method ExportIntf3D. Call this API after ExportIntf3D otherwise results will not be reliable.
Returns:
The boolean CSYS Ignored status. If it is true, reference csys is ignored. If it is false, reference csys is not ignored.


ClearIntf3DModelData

voidClearIntf3DModelData ()


     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>
Returns: