Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hello,
just need your advice how to create a link between a drawing format (.frm) and a material (.mtl) file to get the material type on the drawing automatically.
Thnx in advance
Solved! Go to Solution.
Hello Tomas,
As you have probably found out, PTC_MATERIAL_NAME is more of a File name format, not allowing spaces. What you probably want to show in the format is to use the PTC_MATERIAL_DESCRIPTION. This is the Description that is defined in the mtl file. In order to to that, you need to create a Parameter in the model (Let's say MATERIAL) Then in order to grab the Description for the currently active material, you need to define a relation.
The relation should be:
MATERIAL=material_param("PTC_MATERIAL_DESCRIPTION")
This will set your Parameter &MATERIAL that you can use in your format, to be equal to the current Material Description.
Hope that helps.
If you have materials assigned to the part, you should be able to pull in the material parameter from the part.
Part
Drawing
Or call out a custom parameter that is maybe more descriptive.
Hello Tomas,
As you have probably found out, PTC_MATERIAL_NAME is more of a File name format, not allowing spaces. What you probably want to show in the format is to use the PTC_MATERIAL_DESCRIPTION. This is the Description that is defined in the mtl file. In order to to that, you need to create a Parameter in the model (Let's say MATERIAL) Then in order to grab the Description for the currently active material, you need to define a relation.
The relation should be:
MATERIAL=material_param("PTC_MATERIAL_DESCRIPTION")
This will set your Parameter &MATERIAL that you can use in your format, to be equal to the current Material Description.
Hope that helps.