Skip to main content
18-Opal
May 24, 2018
Solved

How can I change the Material and Units

  • May 24, 2018
  • 1 reply
  • 3216 views

Hello
How can I specify the material and unit of the model?
Using the toolkit!image 1.png

Best answer by Ketan_Lalcheta
status = ProMaterialfileRead((ProPart)mdl,matl_name);

matl_name should be name of material file...Not the path of material file...

You can traverse to material directory by changing directory using API ProDirectoryChange() .After setting material, you can reset directory as earlier working directory. 

1 reply

1-Visitor
May 24, 2018
There is direct API for material and units.. Are you looking for API itself or you have some specific concern or issue for this functionality?
CHASEONHO18-OpalAuthor
18-Opal
May 25, 2018

What APIs do they perform?
Can you find information on related examples?
It is difficult to search in the API itself and to use the API in which functions.
It is difficult to be sure that the API is the feature I'm looking for, but it does search using protkdoc's html.
thank

1-Visitor
May 25, 2018

Give a try for below :

 

1. For Material : protkdoc/samples/UgMaterial_c.html#anchor-29

2. For Unit : /protkdoc/samples/UgMaterial_c.html#anchor-29

 

HIH

-Ketan