| Library | Package | Frames | Expand | Java Toolkit |
| Method Summary | |
|---|---|
| void | AddBeforeModelRetrieveListener
(BeforeModelRetrieveActionListener listen)
DEPRECATED: since Creo 4 SUCCESSOR(S): ActionSource.AddActionListener Adds an action listener to notify you of activating file open dialog using File -> Open. This listener can pass instructions for retrieving model to Creo Parametric. |
| void | AddBrowserMessageListener
(String key, BrowserMessageListener Listener)
Add listener callback for browser events. |
| void | AddCollectionToSelectionBuffer
(Collection Coll)
Adds collection to selection buffer |
| void | AddModelRetrievePreListener
(BeforeModelRetrieveListener listen)
DEPRECATED: since Creo 4 SUCCESSOR(S): ActionSource.AddActionListener Adds an action listener to notify you of activating file open dialog using File -> Open. |
| void | AddModelSavePreAllListener
(BeforeModelSaveAllListener listen)
DEPRECATED: since Creo 4 SUCCESSOR(S): ActionSource.AddActionListener |
| void | AddNavigatorPaneLayout
(String PaneName, String ResFileName,
/*optional*/
String IconFileName)
Add new pane tab with specified name on the Navigator pane. |
| void | AutoPropagate
()
LICENSE: 222 Automatically propagates annotation elements within the current model to the currently selected feature based on the standard Creo Parametric algorithm. |
| WWindow | CreateAccessorywindowWithTree
(String ObjectName, MdlfileType ObjectType,
/*optional*/
Boolean EnableTree)
Retrieves a window and attaches the object to it. |
| WWindow | CreateBarewindow
(String ObjectName, MdlfileType ObjectType)
Retrieves a window and attaches the object to it. |
| ElementTree | CreateElementTree
(Elements Elems)
Creates an element tree from the elements and returns a handle to ElementTree |
| ElementTree | CreateElementTreeFromXML
(String Filename)
Creates an element tree from xml file provided. |
| ExternalObjectClass | CreateExternalClass
(String Name, int Type)
Registers a new external object class. |
| Section | CreateSection2D
()
Allocates a two-dimensional section. |
| void | CreateSnapshot
(String Name)
Creates a top assembly level snapshot from the current position on screen. Constraints will be copied from the active snapshot. The newly created snapshot will become the active one. |
| void | DeleteBrowserMessageListener
(String key)
|
| void | DeleteSnapshot
(String Name,
/*optional*/
ComponentPath Path)
Deletes snapshot. |
| void | DisplayInformationWindow
(String FilePath,
/*optional*/
Double XOffset,
/*optional*/
Double YOffset,
/*optional*/
Integer Rows,
/*optional*/
Integer Columns)
Creates a window and shows the text of the file specified by FilePath. |
| void | ExecuteMacro
()
|
| /*optional*/ Section | GetActiveSection
()
Returns a copy of the current active sketcher section. |
| String | GetApplicationPath
()
|
| String | GetApplicationTextPath
()
|
| CreoType | GetCreoType
()
Returns the type of Creo which runs this application. |
| IntfDataSourceType | GetDataSourceType
(IntfType IntfType)
Provide the IntfDataSourceType for given IntfType. |
| double | GetDefaultTolerance
(ToleranceType Type, int Decimals)
Retrieves the current Creo Parametric default tolerance value for the specified number of decimal places. |
| String | GetDisplayDateCode
()
Returns the Creo session's customer visible datecode. |
| /*optional*/ ElementWstringOption | GetElemWstrOption
()
Get method for attribute "ElemWstrOption" Options used to retrieve string values of elements |
| String | GetGTolSymbolString
(GTolSymbol Symbol, SymbolFont Font)
Get value string of gtol |
| ImportfeatRedefSourceType | GetImportFeatRedefSourceType
(ImportFeatRedefOperationType Type)
Provides the wfcFeature::ImportfeatRedefSourceType used to redefine an import feature. |
| boolean | GetIncompleteSurfaceTessellationAllowed
()
|
| SnapshotTransformations | GetKinSnapshotTransformations
(String Name,
/*optional*/
ComponentPath Path)
This method brings transformation paths and transformation matrices for all components in the snapshot versus top level assembly. |
| /*optional*/ String | GetKnownDirectory
(KnownDirectoryType dir_type)
|
| LineStyleData | GetLineStyleData
(StdLineStyle LineStyle)
Provides a description of the specified line style. |
| MdlfileDescriptor | GetMdlfileDescriptor
(ModelDescriptor ModelDescr)
|
| Model | GetModelFromMdlfileDescriptor
(MdlfileDescriptor MdlfileDescr)
Returns the model based on the model descriptor input. |
| String | GetNavigatorPaneComponent
(String PaneName, String ComponentLocalName)
Get the changed name of a component in the pane. |
| String | GetNavigatorPaneDevice
(Window WindowObject)
Get the name of the navigator pane device specific to window object. |
| String | GetNavigatorPaneLayoutComponent
(String PaneName)
Get the changed name of the top layout in navigator pane. |
| int | GetReleaseNumericVersion
()
Returns the integer major version number of the Creo executable that the application is connected to. |
| String | GetResourcePath
()
Provides the resource path of an application. |
| Solid | GetSolid
(String Name, ModelType Type)
Initializes the ProSolid handle. |
| /*optional*/ String | GetTextureFilePath
(String TextureFileName, boolean CreateTempFile)
Looks up the full path to the texture, decal, or bump map file indicated. |
| UDFVariableParameters | GetUDFDataDefaultVariableParameters
(String Name,
/*optional*/
String Instance)
|
| Model | ImportAsModel
(String FileToImport, NewModelImportType NewModelType, ModelType Type, String NewModelName, ImportRepType ModelRepType,
/*optional*/
String profile,
/*optional*/
LayerImportFilter Filter)
Creates a new imported model in the solid. |
| boolean | IsOptionOrdered
(String OptionName)
Determines whether the specified option is available. |
| boolean | IsTextureFileEmbedded
(String TextureFileName)
Checks if the texture file was embedded. |
| Model | LoadModelRepresentation
(String AssemblyFileName, ModelType Type,
/*optional*/
String SimpRepName,
/*optional*/
SimpRepInstructions Instructions)
Retrieves the specified simplified representation. |
| void | MoveKinDrag
(Selection DragPoint, Point2Ds Moves)
This method bring to drag this selected object. Displays a hook point around the point. Performs a drag according to the environment set in WSession.SetKinDragEnvironment(KinDragType, /*optional*/ String, /*optional*/ ComponentPath, /*optional*/ Selection) For dragging use constraints from current snapshot, if it set. After end of the movement the hook point is removed. |
| void | MoveKinDragForModel
(Selection DragPoint, Point3Ds Moves,
/*optional*/
Matrix3D Matrix)
This function brings to drag this selected object. Performs a drag according to the environment set in WSession.SetKinDragEnvironment(KinDragType, /*optional*/ String, /*optional*/ ComponentPath, /*optional*/ Selection) For dragging use constraints from the current snapshot, if it is set. |
| Drawing | OpenDrawingAsReadOnly
(String Path)
|
| Window | OpenSource
(MdlfileDescriptor MdlfileDesc)
Retrieves the specified model and displays it in a window. |
| ParsedFileNameData | ParseFileName
(String FileName)
Parses the specified file name into its components. |
| void | RegisterExternalSelectionHighlight
(ExternalSelectionHighlight RegistrationMethods)
Registers external application highlighting callbacks in order to let application media (like a tree) react on selections made while calling or while in BaseSession.Select(SelectionOptions, /*optional*/ Selections) |
| void | ReleaseExternalSelectionHighlight
(ExternalSelectionHighlight RegistrationMethods)
Releases the client interface used for external selection. |
| Status | ReleaseVisitor
(VisitingClient visitingClient)
|
| Assembly | RetrieveAssemblySimpRep
(String AssemName, MdlfileType FileType,
/*optional*/
SimpRepInstructions Instructions)
Retrieves the specified simplified representation. Takes the origin file type into account. |
| Assembly | RetrieveAutomaticSimpRep
(String AssemName, MdlfileType FileType, String UDSrepName)
Retrieve user defined simplified representation as automatic rep. |
| Assembly | RetrieveDefaultEnvelopeSimprep
(String AssemName)
Retrieves the Default Envelope simplified representation of an assembly |
| Assembly | RetrieveLightweightGraphicsSimpRep
(String AssemName)
Retrieves the light-weight graphics simplified representation of an assembly. |
| Model | RetrieveModelByFiletype
(MdlfileDescriptor MdlfileDescr, RetrieveModelOptions Opts)
Retrieves the specified model into the Creo Parametric session from standard directory. |
| Solid | RetrieveSimpRep
(String ModelName, MdlfileType FileType, SimpRepType SimpRepType,
/*optional*/
String ReprName)
Retrieves the specified simplified representation Takes the origin file type into account. |
| void | RunAsCreoType
(CreoType type)
Sets the type of Creo. |
| void | SetElemWstrOption
(
/*optional*/
ElementWstringOption value)
Set method for attribute "ElemWstrOption" Options used to retrieve string values of elements |
| void | SetIncompleteSurfaceTessellationAllowed
(boolean IsAllowed)
|
| void | SetKinDragEnvironment
(KinDragType Type,
/*optional*/
String Name,
/*optional*/
ComponentPath Path,
/*optional*/
Selection Reference)
This method setups the environment for subsequenmt dragging and reconnect operations. Environment can be set / reset several times after WSession.StartKinDrag() is called. |
| void | StartKinDrag
()
This method starts a drag session it should be called before any other Kinematic drag or Snapshot function is called. All subsequent methods will work with the Snapshots of the window assembly. All component path should start from this assembly. All transforms belong to this assembly. The method can be called for design assemblies in Standard Assembly and Mechanism modes. It cannot be used if assembly is exploded, if sketcher is active, when component placement is active or when drag dialog is on screen. |
| void | StopKinDrag
()
This method will stop drag session. Method Window.Refresh() should be performed to see the change of the graphic window scale according to updated outline. |
| boolean | UIEditFile
(String FileName)
Opens an edit window for the specified file using the default text editor. |
| String | UIOpenFileType
(FiletypeOpenOptions Options)
Prompts the standard file open browser interface of Creo Parametric. |
| String | UISaveFileType
(FiletypeSaveOptions Options)
Prompts the standard file save browser interface of Creo Parametric. |
| void | UpdateSnapshot
(String Name)
Update snapshot. |
| Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent |
|---|
| GetChild |
| Methods Inherited from Interface com.ptc.wfc.wfcDisplay.WDisplay |
|---|
| GetColorByObjectType, SetColorRGBAlternateScheme, GetColorRGBAlternateScheme, SetColorRGBVersion, GetColorRGBVersion, ModifyGraphicsColor, ModifyTextColor, DrawPolylines |
| Methods Inherited from Interface com.ptc.pfc.pfcBase.ActionSource |
|---|
| AddActionListener, RemoveActionListener, AddActionListenerWithType |
| Method Detail |
|---|
| GetCreoType |
|---|
| CreoType | GetCreoType | () |
| Returns the type of Creo which runs this application. This method allows the developer to write an application which can be used with different types of Creo (Parametric, Direct etc.) - for instance, avoid calling methods allowed for Creo Parametric in case if the application is run with Creo Direct.
|
| RunAsCreoType |
|---|
| void | RunAsCreoType | (CreoType type) |
| Sets the type of Creo.
This method allows to emulate other Creo types while running the application with Creo Parametric - for instance to check that used methods are enabled for a specific Creo type. It must be used only during the development cycle and removed in the final version of the application. If used with Creo applications other than Creo Parametric, this method will throw an exception. Exceptions thrown (but not limited to): XMethodForbidden - Type is other than <reference 6 to unknown entity wfcCreoType::wfcCREO_PARAMETRIC> .
|
| GetGTolSymbolString |
|---|
| String | GetGTolSymbolString | (GTolSymbol Symbol, SymbolFont Font) |
Get value string of gtol
|
| CreateElementTreeFromXML |
|---|
| ElementTree | CreateElementTreeFromXML | (String Filename) |
|
Creates an element tree from xml file provided.
Reads in the xml file and converts into an element tree Exceptions thrown (but not limited to): XToolkitOutOfMemory - XML Parser failed to initialize XToolkitCantAccess - XML Parser failed during parsing XToolkitCantOpen - XML Parser failed opening DOM Tree XToolkitNotValid - XML Parser failed due to other errors XToolkitAmbiguous - Error occurred during creation of output transcoder XToolkitBadContext - Function failed to create the element tree due to an error in the ProElemId, ProType, or Enum Value in the XML file The function populates the ProArray p_errors to hold the errors ( refer to fields:
|
| CreateElementTree |
|---|
| ElementTree | CreateElementTree | (Elements Elems) |
Creates an element tree from the elements and returns a handle to ElementTree
|
| GetElemWstrOption/SetElemWstrOption |
|---|
| /*optional*/ ElementWstringOption | GetElemWstrOption | () |
| void | SetElemWstrOption | ( /*optional*/ ElementWstringOption value) |
| Options used to retrieve string values of elements These options will be considered on call to method Element.GetValueAsString(/*optional*/ String)
|
| ImportAsModel |
|---|
| Model | ImportAsModel | (String FileToImport, NewModelImportType NewModelType, ModelType Type, String NewModelName, ImportRepType ModelRepType, /*optional*/ String profile, /*optional*/ LayerImportFilter Filter) |
| Creates a new imported model in the solid. Exceptions thrown (but not limited to): XToolkitCantOpen - import_file can't be opened. XToolkitUnsupported - Creo Parametric does not support import of the indicated file. XToolkitNotExist - No profile found. XToolkitInvalidFile - profile is not readable. XToolkitInvalidType - This combination of arguments is invalid. XToolkitLineTooLong - Name length of new model is more than 31 chars.
|
| GetActiveSection |
|---|
| /*optional*/ Section | GetActiveSection | () |
| Returns a copy of the current active sketcher section. If Intent Manager mode is supposed to be used for this section,the call Section.SetIntentManagerMode(boolean) to true must follow this method You must be in active sketcher mode to get section. Exceptions thrown (but not limited to): XToolkitBadContext - Section not in sketcher mode.
|
| CreateSection2D |
|---|
| Section | CreateSection2D | () |
| Allocates a two-dimensional section. Exceptions thrown (but not limited to): XToolkitOutOfMemory - There was a memory error.
|
| GetDisplayDateCode |
|---|
| String | GetDisplayDateCode | () |
| Returns the Creo session's customer visible datecode. The datecode is returned in the same format as shown in Creo Parametric Help information. Note for the users of C++ Object Toolkit: If it is necessary to show an identifier for the Creo version to the user from an application, this value should be used, rather than the value passed in to the application's user_initialize().
|
| GetReleaseNumericVersion |
|---|
| int | GetReleaseNumericVersion | () |
|
Returns the integer major version number of the Creo
executable that the application is connected to.
The returned value is an absolute number counting from the first shipment of PTC's MCAD software; for Creo Parametric 2.0 it is 31.
|
| AddCollectionToSelectionBuffer |
|---|
| void | AddCollectionToSelectionBuffer | (Collection Coll) |
Adds collection to selection buffer
|
| RegisterExternalSelectionHighlight |
|---|
| void | RegisterExternalSelectionHighlight | (ExternalSelectionHighlight RegistrationMethods) |
|
Registers external application highlighting callbacks in order to
let application media (like a tree) react on selections made
while calling or while in BaseSession.Select(SelectionOptions, /*optional*/ Selections)
The client instance, passed is an input to the method, should be released after the application is done with using it.
|
| ReleaseExternalSelectionHighlight |
|---|
| void | ReleaseExternalSelectionHighlight | (ExternalSelectionHighlight RegistrationMethods) |
Releases the client interface used for external selection.
|
| RetrieveLightweightGraphicsSimpRep |
|---|
| Assembly | RetrieveLightweightGraphicsSimpRep | (String AssemName) |
| Retrieves the light-weight graphics simplified representation of
an assembly. This method is a shortcut for WSession.RetrieveSimpRep(String, MdlfileType, SimpRepType, /*optional*/ String) Exceptions thrown (but not limited to): XToolkitNoPermission - The function does not have permission to operate on this assembly.
|
| RetrieveDefaultEnvelopeSimprep |
|---|
| Assembly | RetrieveDefaultEnvelopeSimprep | (String AssemName) |
|
Retrieves the Default Envelope simplified representation of an assembly
This method is a shortcut for WSession.RetrieveSimpRep(String, MdlfileType, SimpRepType, /*optional*/ String) Operates on assemblies only, not parts Exceptions thrown (but not limited to): XToolkitNoPermission - The function does not have permission to operate on this assembly.
|
| RetrieveAssemblySimpRep |
|---|
| Assembly | RetrieveAssemblySimpRep | (String AssemName, MdlfileType FileType, /*optional*/ SimpRepInstructions Instructions) |
| Retrieves the specified simplified representation.
Takes the origin file type into account.
This method supports Multi-CAD models. Exceptions thrown (but not limited to): XToolkitNoPermission - The function does not have permission to operate on this assembly. XToolkitNotFound - The function did not find the simplified representation in the solid.
|
| RetrieveSimpRep |
|---|
| Solid | RetrieveSimpRep | (String ModelName, MdlfileType FileType, SimpRepType SimpRepType, /*optional*/ String ReprName) |
| Retrieves the specified simplified representation
Takes the origin file type into account.
This method supports Multi-CAD models. If errors occur in regeneration, the model will include suppressed features. Use Solid.HasRetrievalErrors() to identify the errors. Exceptions thrown (but not limited to): XToolkitNoPermission - The function does not have permission to operate on this model.
|
| GetDefaultTolerance |
|---|
| double | GetDefaultTolerance | (ToleranceType Type, int Decimals) |
Retrieves the current Creo Parametric default tolerance value for the specified number of decimal places.
|
| LoadModelRepresentation |
|---|
| Model | LoadModelRepresentation | (String AssemblyFileName, ModelType Type, /*optional*/ String SimpRepName, /*optional*/ SimpRepInstructions Instructions) |
| Retrieves the specified simplified representation. Exceptions thrown (but not limited to): XToolkitNotFound - The file was not found. XToolkitCantOpen - The file exists but is not readable. XToolkitEmpty - The specified representation was not stored in the file (for non user-defined representations). XToolkitInvalidFile - The model is not a Creo Parametric model. XToolkitLineTooLong - The model name is too long. XToolkitInvalidName - The specified user defined representation was not found (in which case it may be created on the fly following instructions in p_simp_rep_data - check p_result for being not NULL) XToolkitNoPermission - The function does not have permission to operate on this model.
|
| GetSolid |
|---|
| Solid | GetSolid | (String Name, ModelType Type) |
Initializes the ProSolid handle.
|
| GetImportFeatRedefSourceType |
|---|
| ImportfeatRedefSourceType | GetImportFeatRedefSourceType | (ImportFeatRedefOperationType Type) |
Provides the wfcFeature::ImportfeatRedefSourceType used to redefine an import feature.
|
| GetLineStyleData |
|---|
| LineStyleData | GetLineStyleData | (StdLineStyle LineStyle) |
| Provides a description of the specified line style. Exceptions thrown (but not limited to): XToolkitInvalidPtr - The style_info == NULL.
|
| GetDataSourceType |
|---|
| IntfDataSourceType | GetDataSourceType | (IntfType IntfType) |
Provide the IntfDataSourceType for given IntfType.
|
| CreateAccessorywindowWithTree |
|---|
| WWindow | CreateAccessorywindowWithTree | (String ObjectName, MdlfileType ObjectType, /*optional*/ Boolean EnableTree) |
|
Retrieves a window and attaches the object to it.
If the window is already open with the object attached, the function returns the window.If there is an empty window up, the function attaches the object to it.Otherwise, the function creates a new window and attaches the object to it. The window created is smaller than the one created by BaseSession.CreateModelWindow(Model) This window doesn't have the toolbar. It doesn't allow any options and has restricted options under Windows menu. Exceptions thrown (but not limited to): XToolkitInvalidType - You specified an invalid object type. XToolkitNotFound - The application is trying to open an embedded model (that is, a model representing a single body of a multi-body foreign object) in a separate window. This operation is not supported.
|
| CreateBarewindow |
|---|
| WWindow | CreateBarewindow | (String ObjectName, MdlfileType ObjectType) |
|
Retrieves a window and attaches the object to it.
If the window is already open with the object attached, the function returns the window. If there is an empty window up, the function attaches the object to it. Otherwise, the function creates a new window and attaches the object to it. The window created doesn't have any toolbars or menus. It can be minimized or closed and it has all the regular mouse-driven view capabilites like zoom, rotation and panning. Exceptions thrown (but not limited to): XToolkitInvalidType - You specified an invalid object type. XToolkitNotFound - The application is trying to open an embedded model (that is, a model representing a single body of a multi-body foreign object) in a separate window. This operation is not supported.
|
| IsTextureFileEmbedded |
|---|
| boolean | IsTextureFileEmbedded | (String TextureFileName) |
|
Checks if the texture file was embedded.
Exceptions thrown (but not limited to): XToolkitNotFound - The texture file could not be found on disk or in memory. XToolkitCantWrite - The temporary texture file could not be written.
|
| GetTextureFilePath |
|---|
| /*optional*/ String | GetTextureFilePath | (String TextureFileName, boolean CreateTempFile) |
|
Looks up the full path to the texture, decal, or bump map file
indicated.
If the texture is embedded inside a Creo Parametric model, instead of being loaded from the texture path, this function will write a temporary copy of the file if CreateTempFile is set to Exceptions thrown (but not limited to): XToolkitNotFound - The texture file could not be found on disk or in memory. XToolkitCantWrite - The temporary texture file could not be written.
|
| DisplayInformationWindow |
|---|
| void | DisplayInformationWindow | (String FilePath, /*optional*/ Double XOffset, /*optional*/ Double YOffset, /*optional*/ Integer Rows, /*optional*/ Integer Columns) |
Creates a window and shows the text of the file specified by FilePath.
|
| OpenDrawingAsReadOnly |
|---|
| Drawing | OpenDrawingAsReadOnly | (String Path) |
|
| UIEditFile |
|---|
| boolean | UIEditFile | (String FileName) |
| Opens an edit window for the specified file using the default text editor.
Exceptions thrown (but not limited to): XToolkitNoChange - The user quit from the editor.
|
| ParseFileName |
|---|
| ParsedFileNameData | ParseFileName | (String FileName) |
Parses the specified file name into its components.
|
| UIOpenFileType |
|---|
| String | UIOpenFileType | (FiletypeOpenOptions Options) |
| Prompts the standard file open browser interface of Creo Parametric.
Exceptions thrown (but not limited to): XToolkitUserAbort - The user aborted from the user interface.
|
| UISaveFileType |
|---|
| String | UISaveFileType | (FiletypeSaveOptions Options) |
| Prompts the standard file save browser interface of Creo Parametric.
For Multi-CAD objects, this method does not support local disk saving location in a Windchill connected session. Exceptions thrown (but not limited to): XToolkitUserAbort - The user aborted from the user interface.
|
| IsOptionOrdered |
|---|
| boolean | IsOptionOrdered | (String OptionName) |
| Determines whether the specified option is available. Exceptions thrown (but not limited to): XToolkitNotFound - The specified option was not found.
|
| GetResourcePath |
|---|
| String | GetResourcePath | () |
| Provides the resource path of an application. This function can be used only to obtain the resource path. The path and its contents must not be altered in any way; an attempt to do so will make the application behavior unpredictable.
|
| GetMdlfileDescriptor |
|---|
| MdlfileDescriptor | GetMdlfileDescriptor | (ModelDescriptor ModelDescr) |
|
| OpenSource |
|---|
| Window | OpenSource | (MdlfileDescriptor MdlfileDesc) |
| Retrieves the specified model and displays it in a window.
This method opens the file and displays it in a new window. It accepts filetypes supported by Multi-CAD approach. Exceptions thrown (but not limited to): XToolkitNotFound - This means either:
XToolkitNoPermission - The function does not have permission to operate on this model. XToolkitBadContext - The Multi-CAD model is not being retrieved from an active Windchill server. XToolkitInvalidType - You specified an invalid object type. 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).
|
| RetrieveModelByFiletype |
|---|
| Model | RetrieveModelByFiletype | (MdlfileDescriptor MdlfileDescr, RetrieveModelOptions Opts) |
| Retrieves the specified model into the Creo Parametric session from standard directory.
The method does not create a window for the model or display it anywhere. The model can be retrieved only from standard directory. Path argument in model descriptor is ignored by this api. It accepts filetypes supported by Multi-CAD approach. Exceptions thrown (but not limited to): XToolkitNotFound - The model was not found in the current directory. XToolkitNoPermission - The function does not have permission to operate on this model. XToolkitBadContext - The Multi-CAD model is not being retrieved from an active Windchill server.
|
| CreateExternalClass |
|---|
| ExternalObjectClass | CreateExternalClass | (String Name, int Type) |
| Registers a new external object class. Exceptions thrown (but not limited to): XToolkitFound - The external object class already exists.
|
| AddNavigatorPaneLayout |
|---|
| void | AddNavigatorPaneLayout | (String PaneName, String ResFileName, /*optional*/ String IconFileName) |
Add new pane tab with specified name on the Navigator pane.
|
| GetNavigatorPaneDevice |
|---|
| String | GetNavigatorPaneDevice | (Window WindowObject) |
Get the name of the navigator pane device specific to window object.
|
| GetNavigatorPaneComponent |
|---|
| String | GetNavigatorPaneComponent | (String PaneName, String ComponentLocalName) |
|
Get the changed name of a component in the pane.
Exceptions thrown (but not limited to): XToolkitMsgTooLong - Pane name is too long.
|
| GetNavigatorPaneLayoutComponent |
|---|
| String | GetNavigatorPaneLayoutComponent | (String PaneName) |
|
Get the changed name of the top layout in navigator pane.
Exceptions thrown (but not limited to): XToolkitMsgTooLong - Pane name is too long.
|
| GetModelFromMdlfileDescriptor |
|---|
| Model | GetModelFromMdlfileDescriptor | (MdlfileDescriptor MdlfileDescr) |
|
Returns the model based on the model descriptor input.
Exceptions thrown (but not limited to): XToolkitNotFound - Unable to find the required model.
|
| AddModelRetrievePreListener |
|---|
| void | AddModelRetrievePreListener | (BeforeModelRetrieveListener listen) |
|
Adds an action listener to notify you of activating file open dialog using File -> Open.
Warning: This notification blocks Creo Parametric or Direct's standard file open dialog. It is developer's responsibility to substitute it with his own dialog through this function.
|
| AddBeforeModelRetrieveListener |
|---|
| void | AddBeforeModelRetrieveListener | (BeforeModelRetrieveActionListener listen) |
|
Adds an action listener to notify you of activating file open dialog using File -> Open. This listener can pass instructions for retrieving model to Creo Parametric. Warning: This notification blocks Creo Parametric or Direct's standard file open dialog. It is developer's responsibility to substitute it with his own dialog through this function.
|
| AddModelSavePreAllListener |
|---|
| void | AddModelSavePreAllListener | (BeforeModelSaveAllListener listen) |
|
| GetUDFDataDefaultVariableParameters |
|---|
| UDFVariableParameters | GetUDFDataDefaultVariableParameters | (String Name, /*optional*/ String Instance) |
| Exceptions thrown (but not limited to): XToolkitNotValid - If the variant item type is not parameter or annotation. XToolkitNoLicense - No license is available for this function. XToolkitBadContext - Cannot access the UDF data because the name and path have not been set. XToolkitCantOpen - Cannot access the UDF .gph file at the path specified. XToolkitNotFound - This UDF does not have any variable items.
|
| ReleaseVisitor |
|---|
| Status | ReleaseVisitor | (VisitingClient visitingClient) |
|
| AutoPropagate |
|---|
| void | AutoPropagate | () |
| Automatically propagates annotation elements within the current
model to the currently selected feature based on the standard Creo Parametric
algorithm. The behavior is based on the current contents of the selection buffer. Exceptions thrown (but not limited to): XToolkitBadContext - The current selections do not allow propagation of annotation elements. XToolkitNoLicense - No license is available for this function.
|
| GetApplicationPath |
|---|
| String | GetApplicationPath | () |
|
| GetApplicationTextPath |
|---|
| String | GetApplicationTextPath | () |
|
| ExecuteMacro |
|---|
| void | ExecuteMacro | () |
|
| GetKnownDirectory |
|---|
| /*optional*/ String | GetKnownDirectory | (KnownDirectoryType dir_type) |
|
| AddBrowserMessageListener |
|---|
| void | AddBrowserMessageListener | (String key, BrowserMessageListener Listener) |
Add listener callback for browser events.
|
| DeleteBrowserMessageListener |
|---|
| void | DeleteBrowserMessageListener | (String key) |
|
| GetIncompleteSurfaceTessellationAllowed |
|---|
| boolean | GetIncompleteSurfaceTessellationAllowed | () |
|
| SetIncompleteSurfaceTessellationAllowed |
|---|
| void | SetIncompleteSurfaceTessellationAllowed | (boolean IsAllowed) |
|
| RetrieveAutomaticSimpRep |
|---|
| Assembly | RetrieveAutomaticSimpRep | (String AssemName, MdlfileType FileType, String UDSrepName) |
| Retrieve user defined simplified representation as automatic rep.
Exceptions thrown (but not limited to): XToolkitNoPermission - The function does not have permission to operate on this assembly. XToolkitNotFound - The function did not find the simplified representation in the solid.
|
| StartKinDrag |
|---|
| void | StartKinDrag | () |
This method starts a drag session it should be called before any other Kinematic drag or Snapshot function is called.
All subsequent methods will work with the Snapshots of the window assembly.
All component path should start from this assembly.
All transforms belong to this assembly.
The method can be called for design assemblies in Standard Assembly and Mechanism modes.
It cannot be used if assembly is exploded, if sketcher is active, when component
placement is active or when drag dialog is on screen.
|
| StopKinDrag |
|---|
| void | StopKinDrag | () |
This method will stop drag session. Method Window.Refresh()
should be performed to see the change of the graphic window scale according to updated outline.
|
| MoveKinDrag |
|---|
| void | MoveKinDrag | (Selection DragPoint, Point2Ds Moves) |
This method bring to drag this selected object. Displays a hook point around the point.
Performs a drag according to the environment set in WSession.SetKinDragEnvironment(KinDragType, /*optional*/ String, /*optional*/ ComponentPath, /*optional*/ Selection)
For dragging use constraints from current snapshot, if it set.
After end of the movement the hook point is removed.
|
| GetKinSnapshotTransformations |
|---|
| SnapshotTransformations | GetKinSnapshotTransformations | (String Name, /*optional*/ ComponentPath Path) |
This method brings transformation paths and transformation matrices for all
components in the snapshot versus top level assembly.
|
| SetKinDragEnvironment |
|---|
| void | SetKinDragEnvironment | (KinDragType Type, /*optional*/ String Name, /*optional*/ ComponentPath Path, /*optional*/ Selection Reference) |
This method setups the environment for subsequenmt dragging and reconnect operations.
Environment can be set / reset several times after WSession.StartKinDrag() is called.
|
| CreateSnapshot |
|---|
| void | CreateSnapshot | (String Name) |
Creates a top assembly level snapshot from the current position on screen.
Constraints will be copied from the active snapshot.
The newly created snapshot will become the active one.
|
| DeleteSnapshot |
|---|
| void | DeleteSnapshot | (String Name, /*optional*/ ComponentPath Path) |
Deletes snapshot.
|
| UpdateSnapshot |
|---|
| void | UpdateSnapshot | (String Name) |
Update snapshot.
|
| MoveKinDragForModel |
|---|
| void | MoveKinDragForModel | (Selection DragPoint, Point3Ds Moves, /*optional*/ Matrix3D Matrix) |
This function brings to drag this selected object. Performs a drag
according to the environment set in WSession.SetKinDragEnvironment(KinDragType, /*optional*/ String, /*optional*/ ComponentPath, /*optional*/ Selection)
For dragging use constraints from the current snapshot, if it is set.
|