Modify/erase post regeneration relations with ModelCHECK
1. Describe the Problem
It's only possible to erase or modify the initial relations but it's not possible to modify/erase the post regeneration relations
2. Are you using a workaround?
We create a Real Number parameter DATE_POST_REL_PRT_ACTUAL with the value 20240203.000000 (which is the date of the actual configuration) by ModelCHECK, if it is not available. In the .mcs file there are to lists which have the possible values inside ###LISTS STD_USER_LIST_FILE text/error_post_rel_prt.txt STD_USER_LIST_FILE text/error_post_rel_asm.txt These two text files are located in the text folder of the ModleCHECK configuration files. Inside the error_post_rel_prt.txt file there is only one line LIST_ERROR_POST_REL_PRT Use Mapkey uspr to update post relations The same at the error_post_rel_asm.txt LIST_ERROR_POST_REL_ASM Use Mapkey usar to update post relations In the .mcs file I have this for parts #Additional parameters for post relations check PRT_PARAMETER DATE_POST_REL_PRT_ACTUAL REAL EQ 20240203 PRT_PARAMETER ERROR_POST_REL_PRT STR NEQ LIST_ERROR_POST_REL_PRT and this in the assembly section #Additional parameters for post relations check ASM_PARAMETER DATE_POST_REL_ASM_ACTUAL REAL EQ 20240203 ASM_PARAMETER ERROR_POST_REL_ASM STR NEQ LIST_ERROR_POST_REL_ASM Additional I have a mapkey (uspr) which erases the post regeneration relations in the part and loads afterwards the actual post regeneration relations from a text file which is located in the text folder of the ModleCHECK configuration files. The same I have for assemblies (Mapkey named usar) with assembly post regeneration relations also located in the text folder of the ModleCHECK configuration files. Does the parameter DATE_POST_REL_PRT_ACTUAL not fit at parts, it will show the hint "Use Mapkey uspr to update post relations" in the ModelCHECK report until you used the mapkey uspr (I created a button for the mapkey ad stored it in the creo_parametric_customization.ui) The same I have at assemblies Does the parameter DATE_POST_REL_ASM_ACTUAL not fit at parts, it will show the hint "Use Mapkey usar to update post relations" in the ModelCHECK report until you used the mapkey usar (I created a button for the mapkey ad stored it in the creo_parametric_customization.ui) Here my mapkey for assemblies mapkey usar @MAPKEY_NAMEupdates the asm post regen relations to newest version;\ mapkey(continued) @MAPKEY_LABELupdate post regen asm rel;\ mapkey(continued) ~ Activate `main_dlg_cur` `page_Tools_control_btn` 1;\ mapkey(continued) ~ Command `ProCmdMmRels` ;~ Open `relation_dlg` `PrePostOM`;\ mapkey(continued) ~ Close `relation_dlg` `PrePostOM`;\ mapkey(continued) ~ Select `relation_dlg` `PrePostOM` 1 `PostRegen`;\ mapkey(continued) ~ Select `relation_dlg` `MenuBar1` 1 `Edit`;\ mapkey(continued) ~ Close `relation_dlg` `MenuBar1`;~ Activate `relation_dlg` `PBSelectAll`;\ mapkey(continued) ~ Select `relation_dlg` `MenuBar1` 1 `Edit`;\ mapkey(continued) ~ Close `relation_dlg` `MenuBar1`;~ Activate `relation_dlg` `PBDelete`;\ mapkey(continued) ~ Update `relation_dlg` `RelText` 0;\ mapkey(continued) ~ Select `relation_dlg` `MenuBar1` 1 `File`;\ mapkey(continued) ~ Close `relation_dlg` `MenuBar1`;~ Activate `relation_dlg` `PBRead`;\ mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\ mapkey(continued) ~ Activate `file_open` `Pro|Library_shortcut`;\ mapkey(continued) ~ Activate `file_open` `Pro|Library_shortcut`;\ mapkey(continued) ~ Select `file_open` `Ph_list.Filelist` 1 `Modelcheck`;\ mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist` 1 `Modelcheck`;\ mapkey(continued) ~ Select `file_open` `Ph_list.Filelist` 1 `config`;\ mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist` 1 `config`;\ mapkey(continued) ~ Select `file_open` `Ph_list.Filelist` 1 `text`;\ mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist` 1 `text`;\ mapkey(continued) ~ Select `file_open` `Ph_list.Filelist` 1 `post_regeneration_asm.txt`;\ mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist` 1 `post_regeneration_asm.txt`;\ mapkey(continued) ~ Activate `relation_dlg` `PB_OK`;\ mapkey(continued) ~ Command `ProCmdRegenAuto`;\ mapkey(continued) ~ Activate `main_dlg_cur` `user_custom_page_304141424_control_btn` 1; And here my mapkey for assemblies mapkey uspr @MAPKEY_NAMEupdates the post regen relations to newest version;\ mapkey(continued) @MAPKEY_LABELupdate post regen prt rel;\ mapkey(continued) ~ Activate `main_dlg_cur` `page_Tools_control_btn` 1;\ mapkey(continued) ~ Command `ProCmdMmRels` ;~ Open `relation_dlg` `PrePostOM`;\ mapkey(continued) ~ Close `relation_dlg` `PrePostOM`;\ mapkey(continued) ~ Select `relation_dlg` `PrePostOM` 1 `PostRegen`;\ mapkey(continued) ~ Select `relation_dlg` `MenuBar1` 1 `Edit`;\ mapkey(continued) ~ Close `relation_dlg` `MenuBar1`;~ Activate `relation_dlg` `PBSelectAll`;\ mapkey(continued) ~ Select `relation_dlg` `MenuBar1` 1 `Edit`;\ mapkey(continued) ~ Close `relation_dlg` `MenuBar1`;~ Activate `relation_dlg` `PBDelete`;\ mapkey(continued) ~ Update `relation_dlg` `RelText` 0;\ mapkey(continued) ~ Select `relation_dlg` `MenuBar1` 1 `File`;\ mapkey(continued) ~ Close `relation_dlg` `MenuBar1`;~ Activate `relation_dlg` `PBRead`;\ mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\ mapkey(continued) ~ Activate `file_open` `Pro|Library_shortcut`;\ mapkey(continued) ~ Activate `file_open` `Pro|Library_shortcut`;\ mapkey(continued) ~ Select `file_open` `Ph_list.Filelist` 1 `Modelcheck`;\ mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist` 1 `Modelcheck`;\ mapkey(continued) ~ Select `file_open` `Ph_list.Filelist` 1 `config`;\ mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist` 1 `config`;\ mapkey(continued) ~ Select `file_open` `Ph_list.Filelist` 1 `text`;\ mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist` 1 `text`;\ mapkey(continued) ~ Select `file_open` `Ph_list.Filelist` 1 `post_regeneration_prt.txt`;\ mapkey(continued) ~ Activate `file_open` `Ph_list.Filelist` 1 `post_regeneration_prt.txt`;\ mapkey(continued) ~ Activate `relation_dlg` `PB_OK`;\ mapkey(continued) ~ Command `ProCmdRegenPart`;\ mapkey(continued) ~ Activate `main_dlg_cur` `user_custom_page_304141424_control_btn` 1; Important! I have my modelcheck configuration in a folder called Modelcheck which is located in the creo Library! In the config.pro there is the line modelcheck_dir $LIBPATH\Modelcheck\ In this folder there is the config folder with all subfolders which contains the ModelCHECK configuration files (complete config folder copied from path C:\Program Files\PTC\Creo 8.0.9.0\Common Files\modchk\text\german to Library\Modelcheck and modified to the company rules) This works perfect as workaround
3. What is the use case for your organization?
Important relations for mass/volume calculations are located in the post regeneration relations and should not be modified by the user
4. What impact does this problem currently have on your organization?
No big impact because we use the workaround but this is complicated to set up
