cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

Is there any API to fetch the internal names of all the soft attributes available on a type say "wt.part.WTPart"?

IsmailShaik
4-Participant

Is there any API to fetch the internal names of all the soft attributes available on a type say "wt.part.WTPart"?

I need to fetch the internal names of all the IBAs available on a type (ex: wt.part.WTPart). Is there any API already available? If not, can some one help with the approach/code to get this?

I am using 10.2 M010.

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions

I have used the following code to get the IBA internal names.

------------------------------------------------------------

ArrayList<String> result = new ArrayList<String>();

TypeIdentifier identifier = TypedUtility.getTypeIdentifier(typeDef);

TypeDefinitionReadView typeDefView = TypeDefinitionServiceHelper.service.getTypeDefView(identifier);

for (AttributeDefinitionReadView attDef : typeDefView.getAllAttributes()) {

AttributeDefDefaultView ibaRefView = attDef.getIBARefView();

if (ibaRefView != null) {

result.add(ibaRefView.getLogicalIdentifier());

}

View solution in original post

2 REPLIES 2
LoriSood
22-Sapphire II
(To:IsmailShaik)

There is no supported API to do this, but you may be able to use the Query-Objects webject to get this information.

I have used the following code to get the IBA internal names.

------------------------------------------------------------

ArrayList<String> result = new ArrayList<String>();

TypeIdentifier identifier = TypedUtility.getTypeIdentifier(typeDef);

TypeDefinitionReadView typeDefView = TypeDefinitionServiceHelper.service.getTypeDefView(identifier);

for (AttributeDefinitionReadView attDef : typeDefView.getAllAttributes()) {

AttributeDefDefaultView ibaRefView = attDef.getIBARefView();

if (ibaRefView != null) {

result.add(ibaRefView.getLogicalIdentifier());

}

Top Tags