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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

pameter of Note type using toolkit

Ketan_Lalcheta
19-Tanzanite

pameter of Note type using toolkit

Hello

 

If we check parameter create document, type is there for note like 

PRO_PARAM_NOTE_ID

Can I create a parameter using toolkit which refers to note. If yes, how because below code is not working:

ProError status = PRO_TK_GENERAL_ERROR;

//Current model
ProMdl objMdlDrw;
status = ProMdlCurrentGet(&objMdlDrw);

//convert to mdl item
ProModelitem objMdlItem;
status = ProMdlToModelitem(objMdlDrw,&objMdlItem);

// ProModelitem p_model_item;
ProName w_param_name;
ProParameter p_param;
ProParamvalue parameter_value;
ProParamvalueValue param_value;

 

param_value.i_val = 162; // note is present and ID of same is 162
status = ProParamvalueSet( &parameter_value, &param_value.i_val, PRO_PARAM_NOTE_ID );

status = ProParameterCreate( &objMdlItem, L"DPDSTEST", &parameter_value, &p_param );

 

If we cannot create param refering to note using toolkit, what is the meaning of that value written in document.

 

I am using Creo 3.0 M120.

Feel free to ask for any query.

 

Thanks and Regards

Ketan

 

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions

I got it worked now.. cannot delete this question post as I am not aware how to delete the same...There was minor error and same I edited in main post as well

View solution in original post

1 REPLY 1

I got it worked now.. cannot delete this question post as I am not aware how to delete the same...There was minor error and same I edited in main post as well
Announcements


Top Tags