Drawing repeat region if-statement does nothing
Hi,
is it possible to perform a calculation based on an if-statement in a drawing repeat region relation?
Prerequisite:
Model units: mm Kg s
I would like to multiply mdl_pro_mp_mass by 1000 if model parameter mass_unit is set to g instead of kg.
Something like this:
mass_display = mdl_pro_mp_mass
if mass_unit == "g"
mass_display = mdl_pro_mp_mass * 1000
endif
It's only the IF that doesn't work; the calculation works fine if tested separately.
It works in a Post Regeneration relation in the model (using pro_mp_mass instead of mdl_pro_mp_mass), but I would like to not add the relation in the model.
Tested on both Creo 9.0.3.0 and 11.0.6.0
Any suggestions?
Thanks in advance! 🖖

