Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
I have scoured the creo help for information regarding material ID, and yet I'm still missing something..
for example if I would like to drive geometry of any given part from an assigned material parameter....
WIDTH=FLANGE_WIDTH:MTRL_99
The "99" I understand to be the material ID.
When used in an IF statement..
IF PTC_MATERIAL_NAME=="C15X50"
WIDTH=FLANGE_WIDTH:MTRL_99
ENDIF
now after assigning it a different material, then reverting back to the original material, "C15X50".
I get this......
IF PTC_MATERIAL_NAME=="C15X50"
DEPTH=C_DEPTH:MTRL_99
error Invalid symbol 'C_DEPTH:MTRL_99' found.
ENDIF
So why would the ID have changed?
Solved! Go to Solution.
Joe,
The ID has changed because you have changed the assigned material. So that if the new material had different parameters it would know the difference. It has been noted that if you use this context, you can refer to the current active material.
Your relation for Material Description would be:
MATERIAL=material_param("PTC_MATERIAL_DESCRIPTION")
So in your Flange Width Example it would equivalently be:
WIDTH=material_param("FLANGE_WIDTH") to get the width for whatever material is currently assigned.
Joe,
The ID has changed because you have changed the assigned material. So that if the new material had different parameters it would know the difference. It has been noted that if you use this context, you can refer to the current active material.
Your relation for Material Description would be:
MATERIAL=material_param("PTC_MATERIAL_DESCRIPTION")
So in your Flange Width Example it would equivalently be:
WIDTH=material_param("FLANGE_WIDTH") to get the width for whatever material is currently assigned.