| • | Codebase URL—This is the root portion of the URL that is used to connect to a Windchill server. For example http://wcserver.company.com/Windchill. |
| • | Server Alias—A server alias is used to refer to the server after it has been registered. The alias is also used to construct paths to files in the server workspaces and commonspaces. The server alias is chosen by the user or application and it need not have any direct relationship to the codebase URL. An alias can be any normal name, such as my_alias. |
| |
| |
| |
| |
| |
| |
| |
| • | Windchill—Denotes a Windchill PDMLink server. |
| • | ProjectLink—Denotes Windchill ProjectLink type of servers. |
| |
| |
| |
| |
| |
| |
| |
| • | The workspace is not the active workspace. |
| • | The workspace does not contain any checked out objects. |
| • | Make the required workspace inactive using pfcServer.ActiveWorkspace() with the name of some other workspace and then call pfcServerLocation.DeleteWorkspace(). |
| • | Unregister the server using pfcServer.Unregister() and delete the workspace. |
| 1. | Set the appropriate authentication context using the method pfcBaseSession.AuthenticateBrowser() with a valid username and password. |
| 2. | Look up the list of workspaces using the method pfcServerLocation.CollectWorkspaces(). If you already know the name of the workspace on the server, then ignore this step. |
| 3. | Register the workspace using the method pfcBaseSession.RegisterServer() with an existing workspace name on the server. |
| 4. | Activate the server using the method pfcServer.Activate(). |
| 1. | Perform steps 1 to 4 in the preceding section to register the Windchill server with an existing workspace. |
| 2. | Use the method pfcServerLocation.ListContexts() to choose the required context for the server. |
| 3. | Create a new workspace with the required context using the method pfcServer.CreateWorkspace(). This method automatically makes the created workspace active. Note
You can create a workspace only after the server is registered.
|
| • | Object in workspace has a prefix wtwswtws://<server_alias>/<workspace_name>/<object_server_name>where <object_server_name> includes <object_name>.<object_extension>
For example, wtws://my_server/my_workspace/abcd.prt,
wtws://my_server/my_workspace/intf_file.igswhere
<server_alias> is my_server
<workspace_name> is my_workspace
|
| • | Object in commonspace has a prefix wtpubwtpub://<server_alias>/<folder_location>/<object_server_name>For example, wtpub://my_server/path/to/cs_folder/abcd.prtwhere
<server_alias> is my_server
<folder_location> is path/to/cs_folder
Note
|
| • | Commonspace (Shared folders) |
| • | Workspace (Server-side workspace) |
| • | Workspace local cache (Client-side workspace) |
| • | Creo Parametric session |
| • | Local disk |

| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| • | AutoresolveOption—Specifies the option used for auto-resolving missing references. These options are defined in the pfcServerAutoresolveOption
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| • | Mdl—Specifies the object to be checked out. This is applicable if the model has already been retrieved without checking it out. |
| • | File—Specifies the top-level object to be checked out. |
| • | Checkout—The checkout flag. If you specify the value of this argument as true, the selected object is checked out. Otherwise, the object is downloaded without being checked out. The download action enables you to bring read-only copies of objects into your workspace. This allows you to examine the object without locking it. |
| • | Options—Specifies the checkout options object. If you pass NULL as the value of this argument, then the default Creo Parametric checkout rules apply. Use the method pfcCheckoutOptions.Create() to create a new pfcCheckoutOptions object. |
| • | SERVER_DEPENDENCY_ALL—All the objects that are dependent on the selected object are downloaded, that is, they are added to the workspace. |
| • | SERVER_DEPENDENCY_REQUIRED—All the objects that are required to successfully retrieve the selected object in the CAD application are downloaded, that is, they are added to workspace. |
| • | SERVER_DEPENDENCY_NONE—None of the dependent objects from the selected object are downloaded, that is, they are not added to workspace. |
| • | SERVER_INCLUDE_ALL—All the instances of the selected object are checked out. |
| • | SERVER_INCLUDE_SELECTED—The application can select the family table instance members to be included during checkout. |
| • | SERVER_INCLUDE_NONE—No additional instances from the family table are added to the object list. |
|
Argument checkout in pfcServer.CheckoutObjects
|
pfcCheckoutOptions.Download
|
pfcCheckoutOptions.Readonly
|
Result
|
|---|---|---|---|
|
true
|
true
|
NA
|
Object is checked out and its content is downloaded.
|
|
true
|
false
|
NA
|
Object is checked out but content is not downloaded.
|
|
false
|
NA
|
true
|
Object is downloaded without checkout and as read-only.
|
|
false
|
NA
|
false
|
Not supported
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| • | All external dependencies |
| • | Only required dependencies |
| • | No external dependencies |
| • | WSIMPEX_MSG_INFO—Specifies an informational type of message. |
| • | WSIMPEX_MSG_WARNING—Specifies a low severity problem that can be resolved according to the configured rules. |
| • | WSIMPEX_MSG_CONFLICT—Specifies a conflict that can be overridden. |
| • | WSIMPEX_MSG_ERROR—Specifies a conflict that cannot be overridden or a serious problem that prevents processing of an object. |
| • | The specified object is not checked out |
| • | The specified object is only uploaded to the workspace, but was never checked in |
| • | The specified object is only saved to the local workspace cache, but was never uploaded |
|
Operation
|
API
|
|---|---|
|
Checkin an object or workspace
|
pfcServer.CheckinObjects()
|
|
Checkout an object
|
pfcServer.CheckoutObjects()
|
|
Undo checkout of an object
|
fcServer.UndoCheckout()
|
|
Upload object
|
pfcServer.UploadObjects()
|
|
Download object
|
pfcServer.CheckoutObjects() (with download as true)
|
|
Delete workspace
|
pfcServerLocation.DeleteWorkspace()
|
|
Remove object
|
pfcServer.RemoveObjects()
|
| |
| |
| |
| |