Example: condition.mcc File
! Conditional file for ModelCHECK.
# SET CONFIG FILE
IF (USERNAME EQ finn) config=(check/check_default.mch) (start/start_finn.mcs) (constant/constant_def.mcn) (status/status_1.mcq)
IF (USERNAME EQ gavin) AND (MODEL_UNIT EQ INCH) config=(check/check_default.mch) (start/start_standard.mcs) (start/start_gavin.mcs) (constant/constant_inch.mcn) (status/status_2.mcq)
IF (USERNAME EQ gavin) AND (MODEL_UNIT EQ MM) config=(check/check_default.mch) (start/start_default.mcs) (start/start_gavin.mcs) (constant/constant_mm.mcn) (status/status_generic.mcq)
IF (GROUPNAME EQ CHECKER) config=(check/checks_checker.mch) (start/start_checker.mcs) (constant/constant_def.mcn) (status/status_default.mcq)
IF (MODELNAME EQ ec*) config=(check/check_ec.mcs) (start/start_ec.mcs) (constant/constant_def.mcn) (status/status_generic.mcq)
IF (MODEL_TYPE EQ PRT_SHEETMETAL) config=(check/check_shtmel.mch) (start/start_shtmtl.mch) (constant/constant_inch.mcn) (status/status_2.mcq)
IF (FT_GENERIC_PRT) AND (MODEL_UNIT EQ MM) config=(check/check_generic.mch) (start/start_default.mch) (constant/constant_mm.mcn) (status/status_1.mcq)
IF (FT_INSTANCE_PRT) AND (MODEL_UNIT EQ INCH) config=(status/status_2.mcq) (check/check_instance.mch) (start/start_default.mch) (constant/constant_inch.mcn)
IF (MODEL_TYPE EQ PRT_PIPE) config=(check/check_pipe.mch) (start/start_pipe.mcs) (constant/constant_def.mcn) (status/status_generic.mcq)
IF (MODEL_TYPE EQ ASM_DESIGN) config=(check/simple_checks.mch) (start/sample_start.mcs) (constant/inch.mcn) (status/sample_status.mcq)
IF (DATE_CREATED GTE 19970418) config=(check/check_default.mch) (start/sample_start.mcs) (constant/constant_mm.mcn) (status/status_default.mcq)
IF (PRO_VERSION GTE 199842) config=(check/check_default.mch) (start/sample_start.mcs) (constant/constant_mm.mcn) (status/status_generic.mcq)
IF (NOSTART) config=(check/simple_checks.mch) (start/nostart.mcs) (constant/constant_inch.mcn) (status/status_2.mcq)
IF (MODEL_UNIT EQ INCH) config=(check/check_default.mch) (start/default_start.mcs) (constant/constant_inch.mcn) (status/status_1.mcq)
IF (MODEL_UNIT EQ MM) config=(check/check_default.mch) (start/default_start.mcs) (constant/constant_mm.mcn) (status/status_2.mcq)
ELSE config=(check/check_default.mch) (start/start_default.mcs) (constant/constant_def.mcn) (status/status_default.mcq)
# OVERRIDE CHECKS
IF (NOCHECK) NOCHECK
IF (MODEL_SIZE EQ large) SHARP_EDGES = No
IF (MODEL_SIZE EQ large) SRF_EDGES = No
IF (MODEL_SIZE EQ large) SLA_INFO = No
IF (DRAWN_BY EQ John Wallace) MODEL_NAME = Error
Was this helpful?