Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Is it possible to configure ModelCHECK to test for sketches that are not fully defined?
thx
Richard....not sure but here's a thought. If there's a regen message in the trail file then possibly you could use the mc_regen.mcr file to check the regen text in the trail file to provide the warning/error.
Here's an excerpt from the Creo Help Center:
REGEN_ERRS
Reports any errors when a model is fully regenerated. These are typically problems that are reported in the Creo Parametric message window when a model is regenerated.
The mc_regen.mcr configuration file is used to specify the messages to search for and to determine whether a message is an error or a warning message.
KR, Jim
Hello Jim,
In my testing it seems that the rmc_regen.mcr config file needs to have the full string of the warning or error line. I can't seem to make it take wildcards. Is this your experience as well?
- Jim
We use a checking mapkey that go through different facets of the model, including modelcheck, before it can be released. We use PROGRAM to view the model in text format and search for the word WEAK. All weak dimensions will say WEAK.
Hello Joseph,
What do you mean when you say you view the model in text format? Can you share a screen capture or two to expand your description?
- Jim
Open a model. In the Search Command type "PROGRAM". Press any of the "Programs". Select "Edit Design". Select "From Model" (if prompted). Overwrite Pro/Program file (if prompted). A text editor will come up with all features written out in text format. Search for the word "Weak". Exit the text editor. Select "NO" to incorporate changes to the model. Done/Return.
Mapkey:
mapkey fw @MAPKEY_LABELFind Weak Dimensions {FW};\
mapkey(continued) @MAPKEY_NAMEFinds Weak Dimensions by opening up ProPROGRAM;\
mapkey(continued) ~ Command `ProCmdMmProgram`;#EDIT DESIGN; NO!;\
mapkey(continued) #FROM MODEL; YES!; NO! ;#DONE/RETURN;