• | 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 WindchillPDMLink server. |
• | ProjectLink—Denotes WindchillProjectLink 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 ProServerWorkspaceSet() with the name of some other workspace and then call ProServerWorkspaceDelete(). |
• | Unregister the server using ProServerUnregister() and delete the workspace using the codebase URL instead of the alias. |
1. | Set the appropriate authentication context using the function ProBrowserAuthenticate() with a valid username and password. |
2. | Look up the list of workspaces using the function ProServerWorkspacesCollect(). If you already know the name of the workspace on the server, then ignore this step. |
3. | Register the workspace using the function ProServerRegister() with an existing workspace name on the server. |
4. | Activate the server using the function ProServerActivate(). |
1. | Perform steps 1 to 4 in the preceding section to register the Windchill server with an existing workspace. |
2. | Use the function ProServerContextsCollect() to choose the required context for the server. |
3. | Create a new workspace with the required context using the function ProServerWorkspaceCreate(). This function automatically makes the created workspace active. |
• | Object in workspace has a prefix wtws wtws://<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.igs
where
<server_alias> is my_server
<workspace_name> is my_workspace
|
• | Object in commonspace has a prefix wtpub wtpub://<server_alias>/<folder_location>/<object_server_name>
For example, wtpub://my_server/path/to/cs_folder/abcd.prt
where
<server_alias> = my_server
<folder_location> = path/to/cs_folder
Note
|
• | Commonspace (Shared folders) |
• | Workspace (Server-side workspace) |
• | Workspace local cache (Client-side workspace) |
• | Creo Parametric session |
• | Local disk |
|
|
|
|
|
|
|
|
|
|
• | Default location—Specifies the default folder_location on the server for the automatic checkin operation. Use the function ProServercheckinoptsDeflocationSet() to set this location. |
• | Server location—Specifies the folder_location on the server in which an object will be checked in or uploaded. Use the function ProServercheckinoptsLocationAdd() to set this location. |
• | Baseline—Specifies the baseline information for the objects upon checkin. This information does not apply to upload operations. Use
the function ProServercheckinoptsBaselineSet() to create a new baseline. 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.
|
• | keep_checked_out—If this option is set to PRO_B_TRUE, then the contents of the selected object are checked in to the Windchill server and automatically checked out again for further modification. The default value is PRO_B_FALSE. This option does not apply to upload operations. Use the function ProServercheckinoptsKeepcheckedoutSet() to set the keep_checked_out flag. |
• | autoresolve—Specifies the option used to automatically resolve objects that have not been completely checked in or uploaded to the database.
The autoresolve options specified by the enumerated type ProServerAutoresolveOption are as follows:
Use the function ProServercheckinoptsCommentSet() to set the history comment for checkin operations. These checkin comments are visible in the Windchill History tab.
Use the function ProServercheckinoptsAutoresolveSet() to assign the appropriate autoresolve option.
|
• | upload_only—Specifies the option to fully check in the target object or only upload the object to the server. Set this option to PRO_B_TRUE to only upload and not check in the target objects and to PRO_B_FALSE to upload and check in the objects. By default, this option is PRO_B_FALSE, if not explicitly set, to cause a checkin. Use the function ProServercheckinoptsUploadonlySet() to set the upload_only flag. |
|
|
|
|
|
|
|
|
|
• | ProMdl handle—Specifies the object to be checked out. This is applicable if the model has already been retrieved without checking out. |
• | Aliased URL—Specifies the commonspace path of the object. |
• | dependency—Specifies the dependency rule used while checking out dependents of the object selected for checkout. The function ProServercheckoutoptsDependencySet() sets the dependency rule for checkout. The types of dependencies specified by the enumerated type ProServerDependency are as follows:
|
• | include_option—Specifies the rule for including instances from the family table during checkout. The function ProServercheckoutoptsIncludeinstancesSet() sets the flag to include instances during checkout. The type of instances specified by the enumerated type ProServerInclude are as follows:
|
• | version—Specifies the version of the object that is checked out or downloaded to the workspace. If version is not set, the object is checked out according to the current workspace configuration. The function ProServercheckoutoptsVersionSet() sets the version of the object. |
• | 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. Use the function ProServercheckoutoptsDownloadSet() to set this option. |
• | readonly—Downloads the file without checking out the file. To use this option you must set the checkout argument of the function ProServerObjectsCheckout() as PRO_B_FALSE. Use the function ProServercheckoutoptsReadonlySet() to set the readonly flag to PRO_B_TRUE. |
Argument checkout in ProServerObjects
Checkout() |
ProServer
checkoutopts DownloadSet() |
ProServer
checkoutopts ReadonlySet() |
Result
|
---|---|---|---|
PRO_B_TRUE
|
PRO_B_TRUE
|
NA
|
Object is checked out and its content is downloaded.
|
PRO_B_TRUE
|
PRO_B_FALSE
|
NA
|
Object is checked out but content is not downloaded.
|
PRO_B_FALSE
|
NA
|
PRO_B_TRUE
|
Object is downloaded without checkout and as read-only.
|
PRO_B_FALSE
|
NA
|
PRO_B_FALSE
|
This combination is invalid and is not supported.
|
Argument readonly in ProServercheckoutoptsReadonlySet()
|
Argument checkout in ProServerObjectsCheckout()
|
State of Object Content
|
Options Available in the Creo Parametric User Interface
|
Actions that can be Performed Using Creo TOOLKIT Applications
|
---|---|---|---|---|
PRO_B_TRUE
|
PRO_B_FALSE
|
Downloaded but not checked out
|
The Conflicts dialog box allows you to perform one of the following operations on the object: check out, revise and check out, continue
with modifications, or make the object read only.
Refer to the Creo Parametric Help for more information on resolving conflicts.
|
Check out the object and modify it
|
PRO_B_FALSE
|
PRO_B_FALSE
|
Checked out
|
The object can be modified.
|
The object can be modified.
|
PRO_B_TRUE
|
PRO_B_TRUE
|
Checked out
|
The object can be modified.
|
The object can be modified.
|
No option set
|
PRO_B_FALSE
|
Downloaded but not checked out
|
The Conflicts dialog box allows you to perform one of the following operations on the object: check out, revise and check out, continue
with modifications, or make the object read only.
|
Check out the object and modify it
|
|
|
|
|
|
|
• | All external dependencies |
• | Only required dependencies |
• | No external dependencies |
• | type—Specifies the severity of the message in the form of the enumerated type ProWSImpexMessageType. The severity is one of the following types:
|
• | object—Specifies the object name or the name of the object path described in the message. |
• | description—Specifies the description of the problem or the message information. |
• | resolution—Specifies the resolution applied to resolve a conflict that can be overridden. This is applicable when the message is of the type PRO_WSIMPEX_MSG_CONFLICT. |
• | succeeded—Determines whether the resolution succeeded or not. This is applicable when the message is of the type PRO_WSIMPEX_MSG_CONFLICT. |
|
|
|
|
|
• | source_file—Specifies the path to the primary or secondary file. The path must be specified as wtws://<path to the file>. Use the functions such as, ProFileMdlnameOpen() and ProFileMdlfiletypeOpen(), to get the path to the files.
|
• | document_name—Specifies the name of the primary file, which is associated with the secondary file specified in the argument source_file. Use the function ProFileselectionDocNameGet() to get the name of the primary file for a secondary file. In the argument source_file, if a primary file is specified, then pass the argument document_name as NULL.
|
• | target_directory—Specifies a path on the local disk where the file must be copied. |
• | checkout_status—Specifies whether the object is checked out for modification. The value PRO_B_TRUE indicates that the specified object is checked out to the active workspace. The value PRO_B_FALSE indicates one of the following statuses:
|
• | modifiedInWS—Specifies whether the object has been modified in the workspace since checkout. The value of this argument is PRO_B_FALSE if the newly created object has not been uploaded. |
• | modifiedLocally—Specifies whether the object has been modified in the local workspace cache. The value of this argument is PRO_B_TRUE if the object has been saved in the local workspace cache. The argument returns PRO_B_FALSE if the object has not been saved after modifying it in the local workspace cache. |
Operation
|
API
|
Error Object
|
---|---|---|
Checkin an object or workspace
|
ProServerObjectsCheckin
() |
ProServerCheckinConflicts
|
Checkout an object
|
ProServerObjects
Checkout() |
ProServerCheckoutConflicts
|
Undo checkout of an object
|
ProServerObjects
Undocheckout() |
ProServerUndoCheckoutConflicts
|
Upload object
|
ProServerObjectsUpload()
|
ProServerUploadConflicts
|
Download object
|
ProServerObjects
Checkout() (with download as PRO_B_TRUE) |
ProServerCheckoutConflicts
|
Delete workspace
|
ProServerWorkspaceDelete()
|
ProServerDeleteConflicts
|
Remove object
|
ProServerObjectsRemove()
|
ProServerRemoveConflicts
|
1. | Start a Creo Parametric session using the function ProEngineerConnectionStart(). |
2. | Authenticate the browser using the function ProBrowserAuthenticate(). |
3. | Register the server with the new workspace using the function ProServerRegister(). |
4. | Activate the server using the function ProServerActivate(). |
5. | Check out and retrieve the model from the vault URL using the function ProServerObjectsCheckout() followed by ProMdlnameRetrieve(). |
6. | Modify the model according to the application logic. |
7. | Save the model to the workspace using the function ProMdlSave(). |
8. | Check in the modified model back to the server using the function ProServerObjectsCheckin(). |
9. | After processing all models, unregister from the server using the function ProServerUnregister(). |
10. | Delete the workspace using ProServerWorkspaceDelete(). |
11. | Stop Creo Parametric using the function ProEngineerEnd(). |