Skip to main content
13-Aquamarine
Jun 16, 2023 7:39 AM UTC
Solved

Get Material

how to get materials from the part(all component part)  here i use 'ProMaterialCurrentGet' (Part is input). for finding the Materials Which API call i should Add?.

 

msteffkeAnswer
15-Moonstone
Jun 16, 2023 2:15 PM UTC

You will need to get the current model using   ProMdlCurrentGet  and pass that handle.   You question is quite vague, you dont specify what you want to do with material. 

2 replies

msteffke15-MoonstoneAnswer
15-Moonstone
Jun 16, 2023 2:15 PM UTC

You will need to get the current model using   ProMdlCurrentGet  and pass that handle.   You question is quite vague, you dont specify what you want to do with material. 

Translate
Aravind9813-AquamarineAuthor
13-Aquamarine
Jun 16, 2023 5:28 PM UTC

Hi Sir Thanks For Your Reply.

 

I need Part material details.

1st i get current model.(ProMdlCurrentGet  )

2nd i visit model components so i use (ProSolidDispCompVisit).

3rd i get asm component path (ProAsmcomppathMdlGet).

4th i get model name.

 

So now I need Material details, in the main model I Assigned Material for Each Component parts. Now i want to read what material i have Assigned. 

 

PFA

                                                                      

Translate