Hi,
I am trying to implement ProMdlReadonlyIgnore with reference to article CS398373, as I am unable to upload parameters while it is in Checkin state. Untill Creo 7.0.11 I was able to do it, but same action in Creo 10.0.5 is demanding me a checkout. By referring article CS398373 I figured we have to use ProMdlReadonlyIgnore(I suppose not as a custom API) but PTC provided. I do not see any document in Creo Parametric TOOLKIT API Wizard .Can I get some help here.
Solved! Go to Solution.
Its a hidden API and available in ProMdl.h. i think you should be using 10.0.2.0 and above build for this
We faced the similar issue. After using API ProMdlReadonlyIgnore its allowed to update the parameter. May be you can set to true at the start of toolkit execution and set to false once toolkit execution completes. Need to set false on any exception also.
ProMdlReadonlyIgnore(PRO_B_TRUE);
I tried it, but I am not able to find which header file to include to get this function/files/toolkit/includes to work?Also to be specific, when I use
ProMdlReadonlyIgnore(PRO_B_TRUE);
I am getting - identifier "ProMdlReadonlyIgnore" is undentified error.
Its a hidden API and available in ProMdl.h. i think you should be using 10.0.2.0 and above build for this
If you don't find it then add this at the end of header file
extern ProError ProMdlReadonlyIgnore (ProBoolean set_value);
/*
Purpose: To allow ignoring the readonly state of the model for affected API operations.
Input Arguments:
set_value - PRO_B_TRUE ignore readonly state, PRO_B_FALSE to not ignore readonly state.
Output Arguments:
none
Return Values:
PRO_TK_NO_ERROR - The function succeeded
PRO_TK_GENERAL_ERROR - The function failed
*/
I check in ProMdl.h, its unavailable..I am using 10.0.5..Is it possible to have missed it?
Add this and try. This is how you should use hidden API.
CS44835
Set config
dm_auto_conflict_resolution yes
dm_checkout_on_the_fly continue
I would read and save with toolkit, on quit the app restore the saved value!
CS398373: Note this is a hidden API, you may need to add this to one header file and include this!