Category Creo Parametric fundamentals, Object ProMdl

Function ProMdlIsModifiable


Description
Check if given model is modifiable, indicating that the model could be saved (without checking for any subordinate models). For a generic model, if show_ui is PRO_B_TRUE, all its instances are also checked.
Replacement in Object TOOLKIT: pfcModel::CheckIsModifiable
Synopsis
#include <ProMdl.h>
ProErrorProMdlIsModifiable(
ProMdl p_model
/* (In)
model to check access to.
*/
ProBoolean show_ui
/* (In)
Indicates whether the Conflicts dialog should be shown to user to resolve conflicts (if they are detected); when set to PRO_B_FALSE no UI is enabled and the model is considered as modifiable if there are no conflicts that could not be overridden or resolved by default resolution actions.
*/
ProBoolean* can_modify
/* (Out)
The access status. If it is PRO_B_TRUE, the model is modifiable.
*/
)
Returns
PRO_TK_NO_ERRORThe function successfully retrieved the information.
PRO_TK_BAD_INPUTSOne or more arguments are invalid.
PRO_TK_GENERAL_ERRORThe function could not check access to the model.

Manual References:

  1. Core: Models and Model Items: Models in Session
  2. Core: Models and Model Items: Models in Session

Sample Code References:

  1. pt_wc_server ( PTWCServerAddInstance.c )