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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Find material ID

SS4598
14-Alexandrite

Find material ID

Where do I find Material ID for the materials present in material library. 

I want to use relations to assign values to material parameters like density,etc. 

For which I need material ID.

 

Method

PTC_MASS_DENSITY:MTRL_ID.

 

Please suggest me way to find material ID.

 

Thank you in advance!

3 REPLIES 3
aputman
12-Amethyst
(To:SS4598)

Out of curiosity, what is the purpose of this?  A material library provides a list of materials for you to select from that define the properties of the part being designed, not the other way around.  This is backward thinking, in my opinion, but maybe I don't understand the application here. 

SS4598
14-Alexandrite
(To:aputman)

I am looking to drive some dimensions based on material parameters. For this I need material ID. The following link will provide you idea how I want to derive values from material parameter

 

https://support.ptc.com/help/creo/creo_pma/r10.0/usascii/index.html#page/model-based_definition/example_specifying_material_param.html

 

BenLoosli
23-Emerald II
(To:SS4598)

If you have the items defined in the material file, they are easy to pull out with relations.

 

Here is a sample of our Aluminum 7075-T6 material file:

ND_RelParSet_K01 = {

Name = A97075-T6

PARAMETERS =
{
Name = PTC_MATERIAL_DESCRIPTION
Type = String
Default = 'ALUMINUM, UNS A97075'
Access = Full
},
{
Name = PDM_NUMBER
Type = String
Default = 'UNS A97075'
Access = Full
},
{
Name = PDM_NAME
Type = String
Default = 'ALUMINUM, 7075-T6'
Access = Full
},
{
Name = DESCRIPTION1_U
Type = String
Default = 'ALUMINUM'
Access = Full
},
{
Name = DESCRIPTION2_U
Type = String
Default = '7075-T6'
Access = Full
},
{
Name = DESCRIPTION3_U
Type = String
Default = 'UNS A97075'
Access = Full
},
{
Name = PTC_MASS_DENSITY
Type = Real
Default = 1.0150000e-01 lbm/in^3
Access = Full
},
{
Name = PTC_MATERIAL_TYPE
Type = Integer
Default = 9
Access = Full
},
{
Name = PTC_MATERIAL_SUB_TYPE
Type = String
Default = 'LINEAR'
Access = Locked
},
{
Name = PTC_INITIAL_BEND_Y_FACTOR
Type = Real
Default = 5.000000e-01
Access = Full
},
{
Name = PTC_BEND_TABLE
Type = String
Default = ''
Access = Full
},
{
Name = PTC_FAILURE_CRITERION_TYPE
Type = String
Default = 'NONE'
Access = Full
},
{
Name = PTC_FATIGUE_TYPE
Type = String
Default = 'NONE'
Access = Full
},
{
Name = TEMPERATURE
Type = Real
Default = 0.000000e+00 F
Access = Full
},
{
Name = DATA_SOURCE
Type = String
Default = 'MatWeb'
Access = Full
},
{
Name = VERSION
Type = String
Default = '0.1'
Access = Full
},
{
Name = CATEGORY
Type = String
Default = 'UNS Material Codes'
Access = Full
},
{
Name = COMMENT1
Type = String
Default = ''
Access = Full
},
{
Name = COMMENT2
Type = String
Default = ''
Access = Full
}
}

 

In our start parts we have this in the relations:

IF PTC_MATERIAL_NAME=="UNASSIGNED"
MATERIAL="UNASSIGNED"
MATERIAL_DESC1="NO MATERIAL ASSIGNED"
MATERIAL_DESC2=""
MATERIAL_DESC3=""
ELSE
MATERIAL=material_param("PDM_NAME")
MATERIAL_DESC1=material_param("DESCRIPTION1_U")
MATERIAL_DESC2=material_param("DESCRIPTION2_U")
MATERIAL_DESC3=material_param("DESCRIPTION3_U")
ENDIF

 

This will fill in the proper relations for what we need. You can extract any material property using the same method.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags