cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Material parameter in the drawing format

TomášHlavinka
1-Newbie

Material parameter in the drawing format

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.

 

V%C3%BDst%C5%99i%C5%BEek.PNG

 

Thnx in advance


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

2 REPLIES 2

If you have materials assigned to the part, you should be able to pull in the material parameter from the part.

Part

part_matl.png

Drawing

dwg_param.png

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.

Top Tags