Skip to main content
13-Aquamarine
June 16, 2023
Solved

Get Material

  • June 16, 2023
  • 1 reply
  • 1573 views

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?.

 

Best answer by msteffke

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. 

1 reply

msteffke15-MoonstoneAnswer
15-Moonstone
June 16, 2023

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. 

Aravind9813-AquamarineAuthor
13-Aquamarine
June 16, 2023

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