| • | 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 IpfcServer.ActiveWorkspace with the name of some other workspace and then call IpfcServerLocation.DeleteWorkspace(). |
| • | Unregister the server using IpfcServer.Unregister() and delete the workspace. |
| 1. | Set the appropriate authentication context using the method IpfcBaseSession.AuthenticateBrowser() with a valid username and password. |
| 2. | Look up the list of workspaces using the method IpfcServerLocation.CollectWorkspaces(). If you already know the name of the workspace on the server, then ignore this step. |
| 3. | Register the workspace using the method IpfcBaseSession.RegisterServer() with an existing workspace name on the server. |
| 4. | Activate the server using the method IpfcServer.Activate(). |
| 1. | Perform steps 1 to 4 in the preceding section to register the Windchill server with an existing workspace. |
| 2. | Use the method IpfcServerLocation.ListContexts() to choose the required context for the server. |
| 3. | Create a new workspace with the required context using the method IpfcServer.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 |

| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| • | 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 EpfcServerAutoresolveOption enumerated type, 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 Parametric checkout rules apply. Use the method CCpfcCheckoutOptions.Create() to create a new IpfcCheckoutOptions object. |
| • | Dependency—Specifies the dependency rule used while checking out dependents of the object selected for checkout. The types of dependencies
given by the EpfcServerDependency enumerated type are as follows:
|
| • | IncludeInstances—Specifies the rule for including instances from the family table during checkout. The type of instances given by the EpfcServerIncludeInstances enumerated type are as follows:
|
| • | SelectedIncludes—Specifies the sequence of URLs to the selected instances, if IncludeInstances is of type EpfcSERVER_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 IpfcServer.CheckoutObjects()
|
IpfcCheckoutOptions.Download
|
IpfcCheckoutOptions.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 |
| • | 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 EpfcWSImportExportMessageType enumerated type. 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 EpfcWSIMPEX_MSG_CONFLICT. |
| • | Succeeded—Determines whether the resolution succeeded or not. This is applicable when the message is of the type EpfcWSIMPEX_MSG_CONFLICT. |
| • | Include Secondary Content—Indicates whether or not to include secondary content while exporting the primary Creo Parametric model files. Use the property IpfcWSExportOptions.IncludeSecondaryContent 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
|
IpfcServer.CheckinObjects()
|
|
Checkout an object
|
IpfcServer.CheckoutObjects()
|
|
Undo checkout of an object
|
IpfcServer.UndoCheckout()
|
|
Upload object
|
IpfcServer.UploadObjects()
|
|
Download object
|
IpfcServer.CheckoutObjects() (with download as true)
|
|
Delete workspace
|
IpfcServerLocation.DeleteWorkspace()
|
|
Remove object
|
IpfcServer.RemoveObjects()
|
| |
| |
| |
| |
| 1. | Start a Creo Parametric session using the method CCpfcAsyncConnection.Connect(). |
| 2. | Authenticate the browser using the method IpfcBaseSession.AuthenticateBrowser(). |
| 3. | Register the server with the new workspace using the method IpfcBaseSession.RegisterServer(). |
| 4. | Activate the server using the method IpfcServer.Activate(). |
| 5. | Check out and retrieve the model from the vault URL using the method IpfcServer.CheckoutObjects() followed by IpfcBaseSession.RetrieveModel(). |
| 6. | Modify the model according to the application logic. |
| 7. | Save the model to the workspace using the method IpfcModel.Save(). |
| 8. | Check in the modified model back to the server using the method IpfcServer.CheckinObjects(). |
| 9. | After processing all models, unregister from the server using the method IpfcServer.Unregister(). |
| 10. | Delete the workspace using IpfcServerLocation.DeleteWorkspace(). |
| 11. | Stop Creo Parametric using the method IpfcAsyncConnection.End(). |