Skip to main content
18-Opal
May 24, 2018 6:59 AM UTC
Solved

How can I change the Material and Units

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

2-Explorer
May 26, 2018 3:28 AM UTC
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. 

7 replies

2-Explorer
May 24, 2018 5:58 PM UTC
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?
Translate
CHASEONHO18-OpalAuthor
18-Opal
May 25, 2018 12:08 AM UTC

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

Translate
2-Explorer
May 25, 2018 5:01 AM UTC

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

Translate