Quantcast
Channel: PTC Community : Discussion List - Windchill
Viewing all articles
Browse latest Browse all 5797

How to find ContentHolder from accelertor file?

$
0
0

Hello!

 

Since there is a issue with Creo2 and accelertor files we need to locate those in our Windchill 10.0 M030 system.

I know it is possible to get hold of accelerator files from EPMDocuments using below syntax:

 

EPMDocument doc

ContentHolder holder = getContentService().getContents(doc);

Vector list = ContentHelper.getApplicationData(holder);

 

Alas, to search the whole database for EPMDocuments using this approach take ages so I came up with an alternative approach.

Below sql will retrieve all identities of accelertor files in Windchill:

select ad.ida2a2 from applicationdata ad where ad.category='INSTANCE_ACCELERATOR_FILE'

 

Then I just use ReferenceFactory to get the actual istance of ApplicationData.

This search just takes a few minutes.

Now I just need to figure out how to get from the actual accelertor file (ApplicationData) to the EPMDocument that is holding it.

Any suggestions?

 

Best regards,

Peter


Viewing all articles
Browse latest Browse all 5797

Trending Articles



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