Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
In Creo integrated with Windchill, the top level assembly only is checked-out , and bottom parts are in check-in status.
Can we put a lock to the bottom parts to prevent them from modification using ProToolkit API?
In interactive mode it is supported (PFA).
You can't prevent it. But you can check it inside your toolkit program before you change it from this side.
pfcSession_ptr session = pfcGetProESession();
pfcServer_ptr server = NULL;
server = session->GetActiveServer();
checkedout = server->IsObjectCheckedOut(server->GetActiveWorkspace(), mdl->GetFileName());
Br,
Eike
As far as I know you can only check the status.
Description | ||||||||||||||
Checks if the given object is modified in workspace/locally. | ||||||||||||||
Synopsis | ||||||||||||||
#include <ProWTUtils.h> | ||||||||||||||
ProError | ProServerObjectIsModified | ( | ||||||||||||
wchar_t* server | ||||||||||||||
/* (In) | ||||||||||||||
The server alias. | ||||||||||||||
*/ | ||||||||||||||
wchar_t* workspace | ||||||||||||||
/* (In) | ||||||||||||||
The workspace name. | ||||||||||||||
*/ | ||||||||||||||
wchar_t* object_name | ||||||||||||||
/* (In) | ||||||||||||||
The object name | ||||||||||||||
*/ | ||||||||||||||
ProBoolean* checkout_status | ||||||||||||||
/* (Out) | ||||||||||||||
PRO_B_TRUE if the object is currently checked out. | ||||||||||||||
*/ | ||||||||||||||
ProBoolean* modifiedLocally | ||||||||||||||
/* (Out) | ||||||||||||||
PRO_B_TRUE if the object is checked out and modified. | ||||||||||||||
*/ | ||||||||||||||
ProBoolean* modifiedInWS | ||||||||||||||
/* (Out) | ||||||||||||||
PRO_B_TRUE if the object got modified in Workspace. | ||||||||||||||
*/ | ||||||||||||||
) | ||||||||||||||
Returns | ||||||||||||||
|