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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Material Description Syntax

NB_10836157
3-Visitor

Material Description Syntax

We have created custom material as per our company standard, we tried to call this material description in drawing note. We have the syntax note &ptc_material_name to call the name. Is there any syntax to call description?

I also tried &PTC_ASSIGNED_MATERIAL:att_body but it gives result as PTC_MASTER_MATERIAL

Kindly go through the attached image and let me know how to find the syntax code for this highlighted cell.

If I could able to find the syntax note for particular cell or column, it would be helpful for not only in materials but also in working on dimensions

Thanks in advance.

 

 

 

ACCEPTED SOLUTION

Accepted Solutions
cko
11-Garnet
11-Garnet
(To:NB_10836157)

1. Enter in the DESCPRITION field of the material file.

cko_0-1705033121252.png

2.  Create custom parameters (ex : MATERIA_NAME)
3. Definition of relation
MATERIA_NAME  =material_param("PTC_MATERIAL_DESCRIPTION")

4. config.pro  
mass_property_calculate      automatic

5. Automatically changes the material name when you select a material file
- You must click the Regenerate button
- It is effective to use the MBD function in startup files.

cko_1-1705033421058.png

^_^





View solution in original post

2 REPLIES 2
RPN
17-Peridot
17-Peridot
(To:NB_10836157)

Each parameter can be accessed via material param and specify the name in quotes

foo = material_param(„<Name_In_the_Matfile>“

 

like

material_param("NORM")

 

cko
11-Garnet
11-Garnet
(To:NB_10836157)

1. Enter in the DESCPRITION field of the material file.

cko_0-1705033121252.png

2.  Create custom parameters (ex : MATERIA_NAME)
3. Definition of relation
MATERIA_NAME  =material_param("PTC_MATERIAL_DESCRIPTION")

4. config.pro  
mass_property_calculate      automatic

5. Automatically changes the material name when you select a material file
- You must click the Regenerate button
- It is effective to use the MBD function in startup files.

cko_1-1705033421058.png

^_^





Announcements


Top Tags