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

designation of parameter by mododel check

Level 8

designation of parameter by mododel check

hello every one

                              Can anyone please tell me that how to designate parameters created by relation through model check in creo 3.0

suppose i created a parameter by relation mass=rel_pro_mp_mass,  then how can i designate this relation through modelcheck..

12 REPLIES

Re: designation of parameter by mododel check

You designate the parameter, not the relation.  Designate is a checkbox in the parameter UI.

But - Designate on the Creo side is just one half; also have to create the attribute in Windchill and set up Windchill to "receive" this parameter value as the value of the attribute.  Then, in Windchill decide where and how to display the attribute.

Re: designation of parameter by mododel check

hello mike

                    I dont want to designate relation but i want to designate parameter which is created by relation, let relation written as MASS=PRO_MP_MASS, now a parameter is created as  MASS in PARAMETER UI, Now i want to designate this parameter please help...

Re: designation of parameter by mododel check

If the parameter is always there in the model, but just needs the value populated by the relation, then it seems that the parameter could be designated like normal and Windchill will always show the value - which would be blank until the relation is evaluated.

If instead the parameter is created as the result of the relation being evaluated (something that I didn't know was possible), then this is something I don't know how to comment on.

Re: designation of parameter by mododel check

Yes, parameters can be created by the execution of a relation.  So then there are three questions that probably need answering:.

1.)  Can model check create (add) relations to a model?

2.)  If so, once the relations have been verified, or the model is regenerated, a new parameter will be created.  Can model check then also designate this new parameter?  (I'm guessing yes.)

3.)  Can both #1 and #2 happen at the same time, or will model check need to be run twice?  (So the parameter exists before attempting to designate it.)

Re: designation of parameter by mododel check

I don't know if model check can designate a parameter.

We do this via mapkeys. Like this:

!=========================================================

!== Load Parameter/Relations UI config files

!=========================================================

mapkey ou @MAPKEY_NAMELoad Old Parameter/Relation UI;@MAPKEY_LABELOld UI;\

~ Command `ProCmdRibbonOptionsDlg` ;\

~ Select `ribbon_options_dialog` `PageSwitcherPageList` 1 `ConfigLayout`;\

~ Activate `ribbon_options_dialog` `ConfigLayout.Open`;\

~ Update `file_open` `Inputname`\

`L:\\lib_common\\mapkey_configs\\new_ui_no.pro`;\

~ Command `ProFileSelPushOpen@context_dlg_open_cmd` ;\

~ Activate `ribbon_options_dialog` `OkPshBtn`;\

~ FocusIn `UITools Msg Dialog Future` `no`;\

~ Activate `UITools Msg Dialog Future` `no`;

mapkey nu @MAPKEY_NAMELoad New Parameter/Relation UI;@MAPKEY_LABELNew UI;\

~ Command `ProCmdRibbonOptionsDlg` ;\

~ Select `ribbon_options_dialog` `PageSwitcherPageList` 1 `ConfigLayout`;\

~ Activate `ribbon_options_dialog` `ConfigLayout.Open`;\

~ Update `file_open` `Inputname`\

`L:\\lib_common\\mapkey_configs\\new_ui_yes.pro`;\

~ Command `ProFileSelPushOpen@context_dlg_open_cmd` ;\

~ Activate `ribbon_options_dialog` `OkPshBtn`;\

~ FocusIn `UITools Msg Dialog Future` `no`;\

~ Activate `UITools Msg Dialog Future` `no`;

mapkey .anp @MAPKEY_NAMEAdd NWC Parameters;@MAPKEY_LABELAdd NWC Parameters;\

%ou;~ Activate `main_dlg_cur` `page_Tools_control_btn` 1;\

~ Command `ProCmdMmParams` ;\

#CREATE;#CONFIRM;#STRING;DESIGNED;-;\

#CREATE;#CONFIRM;#STRING;MATERIAL;-;\

#CREATE;#CONFIRM;#STRING;PART_NO;-;\

#CREATE;#CONFIRM;#STRING;CONTROL_NO;-;\

#CREATE;#CONFIRM;#YES NO;TABULATION;NO;\

#CREATE;#CONFIRM;#STRING;CHECKED;-;\

etc....

mapkey .dsgnt @MAPKEY_NAMEDesignate Parameters;\

@MAPKEY_LABELDesignate Parameters;%ou;\

~ Activate `main_dlg_cur` `page_Tools_control_btn` 1;\

~ Command `ProCmdMmParams` ;\

#DESIGNATE;#PARAMETERS;\

#DESIGNED;\

#MATERIAL;\

#PART_NO;\

#CONTROL_NO;\

#TABULATION;\

#CHECKED;\

etc....

#FILE_TITLE;\

#DONE SEL;#DONE/RETURN;#DONE/RETURN;%nu;

URN;#DONE/RETURN;%nu

;

Re: designation of parameter by mododel check

You can use the ModelUPDATE mode of ModelCHECK to create and designate parameters and to create relations.

Re: designation of parameter by mododel check

In the start file (*.mcs)

To create the parameter without overwritting it's current value in case it already exists add the following line

PRT_PARAMETER     PARAM_NAME     STR

To designate the parameter add this line

PRT_PARAMETER     PARAM_NAME     NONE     EQ PDM


Highlighted

Re: designation of parameter by mododel check

Hello Nimesh,

have you tried the suggestion from James62?

If it works for you, please take the time to mark his post as Correct Answer, to mark the thread as answered.

Thanks,

Gunter

Re: designation of parameter by mododel check

Nimesh,

You also need to add the following to your Config_init.mc:

MU_ENABLED set to Y

ADD_MU_STAMP - Set to Y

DESIGNATE_MU_STAMP - Set to Y