| • | 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::SetActiveWorkspace 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 session |
| • | Local disk |

| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| • | DefaultFolder—Specifies the default folder location on the server for the automatic checkin operation. |
| • | NonDefaultFolderAssignment—Specifies the folder location on the server to which the objects will be checked in. |
| • | AutoresolveOption—Specifies the option used for auto-resolving missing references. These options are defined in the pfcServerAutoresolveOption class, and are as follows:
|
| • | Baseline—Specifies the baseline information for the objects upon checkin. The baseline information for a checkin operation is as follows:
The default format for the baseline name and baseline number is Username + time (GMT) in milliseconds.
|
| • | KeepCheckedout—If the value specified is true, then the contents of the selected object are checked into the Windchill server and automatically checked out again for further modification. |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| • | 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 checkout rules apply. Use the method pfcCheckoutOptions.Create to create a new pfcCheckoutOptions object. |
| • | Dependency—Specifies the dependency rule used while checking out dependents of the object selected for checkout. The types of dependencies
given by the ServerDependency class are as follows:
|
| • | IncludeInstances—Specifies the rule for including instances from the family table during checkout. The type of instances given by the pfcServerIncludeInstances class are as follows:
|
| • | SelectedIncludes—Specifies the sequence of URLs to the selected instances, if IncludeInstances is of type SERVER_INCLUDE_SELECTED. |
| • | Version—Specifies the version of the checked out object. If this value is set to NULL, the object is checked out according to the current workspace configuration. |
| • | Download—Specifies the checkout type as download or link. The value download specifies that the object content is downloaded and checked out, while link specifies that only the metadata is downloaded and checked out. |
| • | Readonly—Specifies the checkout type as a read-only checkout. This option is applicable only if the checkout type is link. |
|
Argument checkout in pfcServer::
CheckoutObjects |
pfcCheckoutOptions
::SetDownload |
pfcCheckoutOptions::
SetReadonly |
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 |
| • | Description—Specifies the description of the problem or the message information. |
| • | FileName—Specifies the object name or the name of the object path. |
| • | MessageType—Specifies the severity of the message in the form of the pfcWSImportExportMessageType class. The severity is one of the following types:
|
| • | Resolution—Specifies the resolution applied to resolve a conflict that can be overridden. This is applicable when the message is of the type pfcWSIMPEX_MSG_CONFLICT. |
| • | Succeeded—Determines whether the resolution succeeded or not. This is applicable when the message is of the type pfcWSIMPEX_MSG_CONFLICT. |
| • | Include Secondary Content—Indicates whether or not to include secondary content while exporting the primary Creo model files. Use the method pfcWSExportOptions::SetIncludeSecondaryContent to set this option. |
| |
| |
| |
| |
| |
| |
| • | 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
|
pfcServer::UndoCheckout
|
|
Upload object
|
pfcServer::UploadObjects
|
|
Download object
|
pfcServer::CheckoutObjects (with download as true)
|
|
Delete workspace
|
pfcServerLocation::DeleteWorkspace
|
|
Remove object
|
pfcServer::RemoveObjects
|
| |
| |
| |
| |