Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

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

$
0
0

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());

}

 


Viewing all articles
Browse latest Browse all 8876

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>