Skip to main content
10-Marble
February 14, 2024
Solved

Which API I can use to identify WTPartMaster object type

  • February 14, 2024
  • 1 reply
  • 1920 views

Working on customization task, need to call Part Master object type so for that i need WTPartMaster API.

see attached screenshot for the reference.

Best answer by HelesicPetr

Hi @Vaibhav_Thakare 

It is very simple

if (object instanceof WTPartMaster)// for your case ignore this object. 
{
 WTPartMaster wtpm = (WTPartMaster) object;
}

You don't need any WTPartMaster API  

 

PetrH

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
February 14, 2024

Hi @Vaibhav_Thakare 

What do you need?

Just use if instance of WTPartMaster and retype the object to the WTPartMaster object.

Thenn you can work with Master as you need. getNumber and so on

 

Usually if you see master in the structure, it means that the object does not meet filter criteria or the user does not have a access to that object.

 

Structure filter has a option (check box) to do not show master objects where the filter is not met. 

 

PetrH

10-Marble
February 14, 2024

Need WTPartMaster API which will help to identify WTPartMaster component/items in BOM, so i can exclude those items from our customized BOM report.

HelesicPetr
22-Sapphire II
22-Sapphire II
February 14, 2024

Hi @Vaibhav_Thakare 

It is very simple

if (object instanceof WTPartMaster)// for your case ignore this object. 
{
 WTPartMaster wtpm = (WTPartMaster) object;
}

You don't need any WTPartMaster API  

 

PetrH