CheckIn
After you have finished working on objects in your workspace, you can share the design changes with other users. The checkin operation copies the information and files associated with all changed objects from the workspace to the Windchill database.
Methods Introduced:
The method pfcServer.Server.CheckinObjects checks in an object into the database. The object to be checked in must be present in the current Creo session. Changes made to the object are not included unless you save the object to the workspace using the method pfcModel.Model.Save before you check it in.
If you pass NULL as the value of the options parameter, the checkin operation is similar to the Check-In option in Creo application. For more details on Check-In, refer to the Creo online help.
Use the method pfcServer.pfcServer.CheckinOptions_Create to create a new CheckinOptions object.
By using an appropriately constructed options argument, you can control the checkin operation. Use the APIs listed above to access and modify the checkin options. The checkin options are as follows:
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 ServerAutoresolveOption , and are as follows:
SERVER_DONT_AUTORESOLVE—Model references missing from the workspace are not automatically resolved. This may result in a conflict upon checkin. This option is used by default.
SERVER_AUTORESOLVE_IGNORE—Missing references are automatically resolved by ignoring them.
SERVER_AUTORESOLVE_UPDATE_IGNORE—Missing references are automatically resolved by updating them in the database and ignoring them if not found.
Baseline—Specifies the baseline information for the objects upon checkin. The baseline information for a checkin operation is as follows:
BaselineName—Specifies the name of the baseline.
BaselineNumber—Specifies the number of the baseline.
The default format for the baseline name and baseline number is Username + time (GMT) in milliseconds.
BaselineLocation—Specifies the location of the baseline.
BaselineLifecycle—Specifies the name of the lifecycle.
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.
Was this helpful?