cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

ProMdlReadonlyIgnore implementation

BK_8649137
4-Participant

ProMdlReadonlyIgnore implementation

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.

ACCEPTED SOLUTION

Accepted Solutions
syalagudri
14-Alexandrite
(To:BK_8649137)

Its a hidden API and available in ProMdl.h. i think you should be using 10.0.2.0 and above build for this 

syalagudri_0-1728543813631.png

 

View solution in original post

7 REPLIES 7
syalagudri
14-Alexandrite
(To:BK_8649137)

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);
BK_8649137
4-Participant
(To:syalagudri)

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.

syalagudri
14-Alexandrite
(To:BK_8649137)

Its a hidden API and available in ProMdl.h. i think you should be using 10.0.2.0 and above build for this 

syalagudri_0-1728543813631.png

 

syalagudri
14-Alexandrite
(To:syalagudri)

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

*/

 

BK_8649137
4-Participant
(To:syalagudri)

I check in ProMdl.h, its unavailable..I am using 10.0.5..Is it possible to have missed it?

syalagudri
14-Alexandrite
(To:BK_8649137)

Add this and try. This is how you should use hidden API.

RPN
17-Peridot
17-Peridot
(To:BK_8649137)

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!

 

Announcements


Top Tags