| Library | Package | Frames | Expand | Java Toolkit |
| Method Summary | |
|---|---|
| AppInfo | GetAppInfo
()
Returns the application information from the applicatoin session. |
| SelectionBuffer | GetCurrentSelectionBuffer
()
Get method for attribute "CurrentSelectionBuffer" The current selection buffer object. |
| boolean | ModelDescrContainsOrigin
(ModelDescriptor Descr)
|
| void | NavigatorPaneBrowserAdd
(String PaneName,
/*optional*/
String IconFileName, String URL)
Adds a new Navigator Pane. |
| void | NavigatorPaneBrowserIconSet
(String PaneName, String IconFileName)
Set the icon for a Navigator Pane. |
| void | NavigatorPaneBrowserURLSet
(String PaneName, String URL)
Set the url for a Navigator Pane. |
| void | RibbonDefinitionfileLoad
(String FileName)
Loads ribbon definition file from a default path. |
| void | SetAppInfo
(AppInfo Info)
Sends the application information for the application session. |
| void | UIAddButton
(UICommand Command, String MenuName,
/*optional*/
String NeighborButton, String ButtonName, String Message, String MsgFile)
Adds a new button to an existing menu. |
| void | UIAddMenu
(String MenuName, String NeighborItem, String FileName,
/*optional*/
String ParentMenu)
Creates a new menu. |
| void | UIClearMessage
()
Scrolls the text in the message area up one line after a call to Session.UIDisplayMessage(String, String, /*optional*/ stringseq) . This command produces only one carriage return; if called multiple times, the command is ignored. |
| UICommand | UICreateCommand
(String Name, UICommandActionListener Action)
Creates a command with the specified name. |
| UICommand | UICreateMaxPriorityCommand
(String Name, UICommandActionListener Action)
Creates a command with the specified name. This command differs from a command created by Session.UICreateCommand(String, UICommandActionListener) in that it uses the maximum command priority available. Maximum command priority should be used only in commands which open and activate a new model in a window. All other commands should be created using Session.UICreateCommand(String, UICommandActionListener) because commands created with maximum priority may dismiss context of the current model in certain situations. |
| void | UIDisplayFeatureParams
(Selection Selection, ParamType Type)
Displays parameters of a selected feature. |
| void | UIDisplayLocalizedMessage
(String MsgFile, String Format,
/*optional*/
stringseq Messages)
Prints a text message to the message area in Creo Parametric. |
| void | UIDisplayMessage
(String MsgFile, String Format,
/*optional*/
stringseq Messages)
Prints a text message to the message area in Creo Parametric. |
| /*optional*/ UICommand | UIGetCommand
(String Name)
Finds the identifier of the specified action or option. |
| MouseStatus | UIGetCurrentMouseStatus
(boolean SnapToGrid)
Returns the status of mouse at this particular moment. This method returns whenever the mouse is moved or a button is pressed. |
| MouseStatus | UIGetNextMousePick
(
/*optional*/
MouseButton ExpectedButton)
Returns the mouse status at the time that the user makes a mouse pick. |
| String | UIOpenFile
(FileOpenOptions Options)
Prompts the standard file browser interface of Creo Parametric. |
| Outline3D | UIPickMouseBox
(
/*optional*/
Point3D FirstCorner)
Prompt the user to select a rectangle using the mouse. |
| /*optional*/ Integer | UIReadIntMessage
(int LowerLimit, int UpperLimit)
Reads an integer from the keyboard. |
| /*optional*/ Double | UIReadRealMessage
(double LowerLimit, double UpperLimit)
Reads a double-precision float from the keyboard. |
| /*optional*/ String | UIReadStringMessage
(
/*optional*/
Boolean HideInput)
Reads a line of keyboard input and returns the contents as a wide string. |
| String | UISaveFile
(FileSaveOptions Options)
Prompts the standard file browser interface of Creo Parametric, set up for the purpose of allowing the user to save a file. |
| String | UISelectDirectory
(DirectorySelectionOptions Options)
Prompts the standard file browser interface of Creo Parametric, set up for the purpose of allowing the user to select a directory. |
| MessageButton | UIShowMessageDialog
(String Message,
/*optional*/
MessageDialogOptions Options)
Displays the UI Message Dialog. |
| Methods Inherited from Interface com.ptc.pfc.pfcBase.ActionSource |
|---|
| AddActionListener, RemoveActionListener, AddActionListenerWithType |
| Methods Inherited from Interface com.ptc.pfc.pfcObject.Parent |
|---|
| GetChild |
| Method Detail |
|---|
| UIAddMenu |
|---|
| void | UIAddMenu | (String MenuName, String NeighborItem, String FileName, /*optional*/ String ParentMenu) |
| Creates a new menu. This method is deprecated. Use Customize UI dialog to create menus in Creo Parametric Ribbon UI Exceptions thrown (but not limited to): XToolkitMsgNotFound - The specified message was not found in the message file. XToolkitFound - a menubar entity with this name already exists.
|
| UICreateCommand |
|---|
| UICommand | UICreateCommand | (String Name, UICommandActionListener Action) |
| Creates a command with the specified name.
Exceptions thrown (but not limited to): XToolkitFound - An action already exists under action_name.
|
| UICreateMaxPriorityCommand |
|---|
| UICommand | UICreateMaxPriorityCommand | (String Name, UICommandActionListener Action) |
| Creates a command with the specified name. This command
differs from a command created by
Session.UICreateCommand(String, UICommandActionListener) in that it
uses the maximum command priority available. Maximum command priority
should be used only in commands which open and activate a new model in
a window. All other commands should be created using
Session.UICreateCommand(String, UICommandActionListener) because
commands created with maximum priority may dismiss context of the
current model in certain situations. Exceptions thrown (but not limited to): XToolkitFound - An action already exists under action_name.
|
| UIAddButton |
|---|
| void | UIAddButton | (UICommand Command, String MenuName, /*optional*/ String NeighborButton, String ButtonName, String Message, String MsgFile) |
| Adds a new button to an existing menu. This method is deprecated. Use Customize UI dialog to create menus in Creo Parametric Ribbon UI Exceptions thrown (but not limited to): XToolkitMsgNotFound - The specified message was not found in the message file. XToolkitFound - a menubar entity with this name already exists.
|
| UIDisplayMessage |
|---|
| void | UIDisplayMessage | (String MsgFile, String Format, /*optional*/ stringseq Messages) |
| Prints a text message to the message area in Creo Parametric.
This method supports only ASCII character strings as messages. Remember that Web.Link applications, as unregistered web pages, do not currently support setting of the PTC Creo Parametric text directory. All the resource files for messages must be located at $PRO_DIRECTORY/text folder. Exceptions thrown (but not limited to): XToolkitNotFound - The specified message file was not found. XToolkitCantOpen - The system could not read the message file. XToolkitMsgNotFound - The specified message was not found in the message file. XToolkitMsgNoTrans - The message text (in the current language of the user interface) was not found. XToolkitMsgFmtError - There was a format error in the message text. XToolkitMsgTooLong - The message was longer than 80 characters and has been truncated to fit. XToolkitFound - The message file had been read in before this call and the message was not in it.
|
| UIDisplayLocalizedMessage |
|---|
| void | UIDisplayLocalizedMessage | (String MsgFile, String Format, /*optional*/ stringseq Messages) |
| Prints a text message to the message area in Creo Parametric.
This method supports non-ASCII character strings as messages. Remember that Web.Link applications, as unregistered web pages, do not currently support setting of the PTC Creo Parametric text directory. All the resource files for messages must be located at $PRO_DIRECTORY/text folder. Exceptions thrown (but not limited to): XToolkitNotFound - The specified message file was not found. XToolkitCantOpen - The system could not read the message file. XToolkitMsgNotFound - The specified message was not found in the message file. XToolkitMsgNoTrans - The message text (in the current language of the user interface) was not found. XToolkitMsgFmtError - There was a format error in the message text. XToolkitMsgTooLong - The message was longer than 259 characters and has been truncated to fit. XToolkitFound - The message file had been read in before this call and the message was not in it.
|
| UIClearMessage |
|---|
| void | UIClearMessage | () |
| Scrolls the text in the message area up one line after a call to Session.UIDisplayMessage(String, String, /*optional*/ stringseq) . This command produces only one carriage return; if called multiple times, the command is ignored.
You could use this function to remove a message once the user has responded to it, so it is clear that the system received the response.
|
| UIReadIntMessage |
|---|
| /*optional*/ Integer | UIReadIntMessage | (int LowerLimit, int UpperLimit) |
| Reads an integer from the keyboard.
If the user types a value outside the specified range of values, the functions prompts the user to enter the value again. Exceptions thrown (but not limited to): XToolkitMsgUserQuit - The user canceled input by typing ESC.
|
| UIReadRealMessage |
|---|
| /*optional*/ Double | UIReadRealMessage | (double LowerLimit, double UpperLimit) |
| Reads a double-precision float from the keyboard.
If the user types a value outside the specified range of values, the function prompts the user to enter the value again. Exceptions thrown (but not limited to): XToolkitMsgUserQuit - The user canceled input by typing ESC.
|
| UIReadStringMessage |
|---|
| /*optional*/ String | UIReadStringMessage | ( /*optional*/ Boolean HideInput) |
| Reads a line of keyboard input and returns the contents as a wide
string.
Leading and trailing blanks are stripped from the string. Default values are displayed in the text box as input. Note that this value will not be returned if the user hits a carriage return; instead, the function will return constant string "use_default_string" and the application must interpret that the user intends to use the default. Exceptions thrown (but not limited to): XToolkitMsgUserQuit - The user canceled input by typing <ESC>.
|
| UIDisplayFeatureParams |
|---|
| void | UIDisplayFeatureParams | (Selection Selection, ParamType Type) |
| Displays parameters of a selected feature.
Exceptions thrown (but not limited to): XToolkitNotFound - The model is not the top-level model in the window.
|
| UIPickMouseBox |
|---|
| Outline3D | UIPickMouseBox | ( /*optional*/ Point3D FirstCorner) |
Prompt the user to select a rectangle using the mouse.
|
| UIGetCurrentMouseStatus |
|---|
| MouseStatus | UIGetCurrentMouseStatus | (boolean SnapToGrid) |
| Returns the status of mouse at this particular moment. This method returns whenever the mouse is
moved or a button is pressed.
Exceptions thrown (but not limited to): XToolkitAbort - The user aborted input.
|
| UIGetNextMousePick |
|---|
| MouseStatus | UIGetNextMousePick | ( /*optional*/ MouseButton ExpectedButton) |
Returns the mouse status at the time that the user makes a mouse pick.
|
| UIShowMessageDialog |
|---|
| MessageButton | UIShowMessageDialog | (String Message, /*optional*/ MessageDialogOptions Options) |
Displays the UI Message Dialog.
|
| UIOpenFile |
|---|
| String | UIOpenFile | (FileOpenOptions Options) |
| Prompts the standard file browser interface of Creo Parametric.
This method cannot be used for NX models in the current release. Exceptions thrown (but not limited to): XToolkitUserAbort - The user aborted from the user interface.
|
| UISelectDirectory |
|---|
| String | UISelectDirectory | (DirectorySelectionOptions Options) |
| Prompts the standard file browser interface of Creo Parametric, set up for the purpose of allowing the user to select a directory.
Exceptions thrown (but not limited to): XToolkitUserAbort - The user aborted from the user interface.
|
| UISaveFile |
|---|
| String | UISaveFile | (FileSaveOptions Options) |
| Prompts the standard file browser interface of Creo Parametric, set up for the purpose of allowing the user to save a file.
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.
|
| UIGetCommand |
|---|
| /*optional*/ UICommand | UIGetCommand | (String Name) |
Finds the identifier of the specified action or option.
|
| GetCurrentSelectionBuffer |
|---|
| SelectionBuffer | GetCurrentSelectionBuffer | () |
| The current selection buffer object. It is necessary to have a model active in the session before calling the Get method for the above attribute.
|
| NavigatorPaneBrowserAdd |
|---|
| void | NavigatorPaneBrowserAdd | (String PaneName, /*optional*/ String IconFileName, String URL) |
Adds a new Navigator Pane.
|
| NavigatorPaneBrowserIconSet |
|---|
| void | NavigatorPaneBrowserIconSet | (String PaneName, String IconFileName) |
Set the icon for a Navigator Pane.
|
| NavigatorPaneBrowserURLSet |
|---|
| void | NavigatorPaneBrowserURLSet | (String PaneName, String URL) |
Set the url for a Navigator Pane.
|
| RibbonDefinitionfileLoad |
|---|
| void | RibbonDefinitionfileLoad | (String FileName) |
| Loads ribbon definition file from a default path.
Exceptions thrown (but not limited to): XToolkitNotFound - The ribbon definition file was not found. XToolkitInvalidFile - The file specified was not a ribbon definition file.
|
| ModelDescrContainsOrigin |
|---|
| boolean | ModelDescrContainsOrigin | (ModelDescriptor Descr) |
|
| SetAppInfo |
|---|
| void | SetAppInfo | (AppInfo Info) |
Sends the application information for the application session.
|
| GetAppInfo |
|---|
| AppInfo | GetAppInfo | () |
Returns the application information from the applicatoin session.
|