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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

designation of parameter by mododel check

ng-2
10-Marble

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..


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
12 REPLIES 12
MikeLockwood
22-Sapphire I
(To:ng-2)

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.

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...

MikeLockwood
22-Sapphire I
(To:ng-2)

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.

TomU
23-Emerald IV
(To:MikeLockwood)

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.)

davehaigh
12-Amethyst
(To:ng-2)

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

;

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

James62
12-Amethyst
(To:ng-2)

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


gkoch
12-Amethyst
(To:ng-2)

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

manjunathrv
17-Peridot
(To:ng-2)

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

ng-2
10-Marble
(To:ng-2)

Thanks all of you

                              But my concern is to designate a parameter created through relation... is it possible.

regards

Nimish

James62
12-Amethyst
(To:ng-2)

Nimesh,

Nope, that's not possible with the out of the box functionalities of Creo. I thought you asked about ModelCHECK at the original post.

Do you know how to add relations with ModelCHECK?

In my ModelCHECK setup I first add the missing params, designate them if needed and then add relations.

~J

Mahesh_Sharma
22-Sapphire I
(To:ng-2)

Nimesh,

You can try this:

1. Set MU_ENABLED as Y in config_init.mc. (for ModelUpdate)

2. Set RELATION_MISS to E in check file.

3. Add PRT_RELATION <Relation> in start file

4. Add PRT_PARAMETER <PARAM created by relation> STR EQ PDM in start file

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags