| Library | Module | Frames | Expand |
| Property | Session | as IpfcSession |
| DEPRECATED: since Creo 4 | ||
| SUCCESSOR(S): <reference 1 to unknown entity pfcSession::GetCurrentSession> | The handle to the session of Creo Parametric for the current active connection. | |
| Function | CCpfcAsyncConnection.Connect (Display as String [optional], UserID as String [optional], TextPath as String [optional], TimeoutSec as Long [optional]) as IpfcAsyncConnection | |
| Causes the application to connect to an existing Creo Parametric process running on a host using a specified display. It is intended for use in simple and full asynchronous modes. | ||
| Function | CCpfcAsyncConnection.ConnectById (Id as IpfcConnectionId, TextPath as String [optional], TimeoutSec as Long [optional]) as IpfcAsyncConnection | |
| Connects to a specific Creo Parametric session by passing the identification string. | ||
| Function | CCpfcAsyncConnection.ConnectWS (Display as String [optional], UserID as String [optional], WSName as String [optional], TextPath as String [optional], TimeoutSec as Long [optional]) as IpfcAsyncConnection | |
| Causes the application to connect to an existing Creo Parametric process and to an existing Pro/INTRALINK worksapce running on a host using a specified display. For use in simple and full asynchronous modes. | ||
| Sub | Disconnect (TimeoutSec as Long [optional]) | |
| Disconnects the application from the current Creo Parametric process. Creo Parametric will still be running after this call. | ||
| Sub | End () | |
| Terminates and disconnects from the current Creo Parametric process. | ||
| Sub | EventProcess () | |
| Enables your process to respond to listener calls from Creo Parametric. You must call this function within your control loop in order that your application will be able to respond to listener calls. Creo Parametric will be blocked until the application responds to a registered listener. | ||
| Function | ExecuteAsyncJavaMethod (Class as String, Method as String, InputArguments as IpfcArguments, ClassForUnlock as String) as Boolean | |
| This is the "JOTK sandbox" to execute methods with full OTK Asynchronous Java access. Can be used only in Java language binding. | ||
| Function | CCpfcAsyncConnection.GetActiveConnection () as IpfcAsyncConnection [optional] | |
| Connection established between your application and Creo Parametric. If your application is connected with Creo Parametric, call this function to get the connection object. | ||
| Function | GetConnectionId () as IpfcConnectionId | |
| Extracts the identification handle of the current Creo Parametric process. | ||
| Sub | InterruptEventProcessing () | |
| Call this function from within a Creo Parametric callback function to halt a loop currently running in IpfcAsyncConnection.WaitForEvents(). | ||
| Function | IsRunning () as Boolean | |
| Determines whether you are currently connected to an actively responding Creo Parametric session. | ||
| Function | CCpfcAsyncConnection.Start (CmdLine as String, TextPath as String [optional]) as IpfcAsyncConnection | |
| Causes the application to spawn and connect to a new Creo Parametric session. For use in simple and full asynchronous modes. | ||
| Sub | WaitForEvents () | |
| Initiates an event loop which will call event processing periodically to handle events returned from Creo Parametric. Applicable only for full asynchronous applications which are not supposed to carry out any tasks while waiting for Creo Parametric events. | ||
| Property | Session | as IpfcSession |
| DEPRECATED: since Creo 4 |
| SUCCESSOR(S): <reference 1 to unknown entity pfcSession::GetCurrentSession> |
The handle to the session of Creo Parametric for the current active connection. |
| Function | CCpfcAsyncConnection.Connect | (Display as String [optional], UserID as String [optional], TextPath as String [optional], TimeoutSec as Long [optional]) as IpfcAsyncConnection |
|
Causes the application to connect to an existing Creo Parametric process running on a host using a specified display. It is intended for use in simple and full asynchronous modes. If the method locates more than one Creo Parametric session with the appropriate characteristics, it will throw an IpfcXToolkitAmbiguous exception. If you want to connect or reconnect to a specific Creo Parametric session, use the method IpfcAsyncConnection.ConnectById() The application may only connect to one Creo Parametric session at any time.
|
| Function | CCpfcAsyncConnection.ConnectById | (Id as IpfcConnectionId, TextPath as String [optional], TimeoutSec as Long [optional]) as IpfcAsyncConnection |
|
Connects to a specific Creo Parametric session by passing the identification string. The ID string for a given session can be obtained from IpfcAsyncConnection.GetConnectionId(). The application may only connect to one Creo Parametric session at any time.
|
| Function | CCpfcAsyncConnection.ConnectWS | (Display as String [optional], UserID as String [optional], WSName as String [optional], TextPath as String [optional], TimeoutSec as Long [optional]) as IpfcAsyncConnection |
|
Causes the application to connect to an existing Creo Parametric process and to an existing Pro/INTRALINK worksapce running on a host using a specified display. For use in simple and full asynchronous modes. NOTE: This method is deprecated. Pro/INTRALINK 3.4 is not supported. Please use IpfcAsyncConnection.Connect() to connect to an existing Creo Parametric process that has a Pro/INTRALINK 10.0 server registered. If the method locates more than one Creo Parametric session with the appropriate characteristics, it will throw an IpfcXToolkitAmbiguous exception. If you want to connect or reconnect to a specific Creo Parametric session, use the method IpfcAsyncConnection.ConnectById() The application may only connect to one Creo Parametric session at any time.
|
| Sub | Disconnect | (TimeoutSec as Long [optional]) |
|
Disconnects the application from the current Creo Parametric process. Creo Parametric will still be running after this call. For J-Link only: In order to clear allocated Creo Parametric memory owned by the application, PTC recommends forcing garbage collection (using Java's System.gc()) before disconnecting from Creo Parametric. Exceptions thrown (but not limited to): IpfcXToolkitUnsupported - Connection is not Obtained <reference to unknown entity pfcExceptions::XProeWasNotConnected> - Handle not initialized
|
| Sub | End | () |
|
Terminates and disconnects from the current Creo Parametric process. |
| Sub | EventProcess | () |
|
Enables your process to respond to listener calls from Creo Parametric. You must call this function within your control loop in order that your application will be able to respond to listener calls. Creo Parametric will be blocked until the application responds to a registered listener. Exceptions thrown (but not limited to): IpfcXToolkitGeneralError - Creo Session has already terminated. |
| Function | ExecuteAsyncJavaMethod | (Class as String, Method as String, InputArguments as IpfcArguments, ClassForUnlock as String) as Boolean |
|
This is the "JOTK sandbox" to execute methods with full OTK Asynchronous Java access. Can be used only in Java language binding. Before executing the supplied Java method, the sandbox checks that the application is unlocked. It performs no execution and returns false if this check fails, which may happen because either the application is not unlocked (and overriding developer licenses are not present), or the application jar was not found (for instance, due to a wrong ClassForUnlock argument).
|
| Function | CCpfcAsyncConnection.GetActiveConnection | () as IpfcAsyncConnection [optional] |
|
Connection established between your application and Creo Parametric. If your application is connected with Creo Parametric, call this function to get the connection object.
|
| Function | GetConnectionId | () as IpfcConnectionId |
|
Extracts the identification handle of the current Creo Parametric process. Format of identification string is the following. "host:H:address_version:A:address_type:T:rpcnum:R:rpcversion:V:netaddr:N"where H - host name where Creo Parametric runs A - address version T - address type R - RPC number V - RPC version N - net address. The identification string can be used in subsequent attmepts to connect to this Creo Parametric session by this application or any other Creo Parametric TOOLKIT or PFC-based application. Exceptions thrown (but not limited to): IpfcXToolkitUnsupported - Connection is not Obtained
|
| Sub | InterruptEventProcessing | () |
|
Call this function from within a Creo Parametric callback function to halt a loop currently running in IpfcAsyncConnection.WaitForEvents(). |
| Function | IsRunning | () as Boolean |
|
Determines whether you are currently connected to an actively responding Creo Parametric session.
|
| Function | CCpfcAsyncConnection.Start | (CmdLine as String, TextPath as String [optional]) as IpfcAsyncConnection |
|
Causes the application to spawn and connect to a new Creo Parametric session. For use in simple and full asynchronous modes.
|
| Sub | WaitForEvents | () |
|
Initiates an event loop which will call event processing periodically to handle events returned from Creo Parametric. Applicable only for full asynchronous applications which are not supposed to carry out any tasks while waiting for Creo Parametric events. This function will not return until interrupted by IpfcAsyncConnection.InterruptEventProcessing() or an error. No separate application processing is possible until that time, except within Creo Parametric event callbacks. |