Skip to main content
Jun 22, 2022 12:48 PM UTC
Solved

Number count of prt, asm, & drw files in Windchill 11.2.1.0

Is there a fast, easy way to get the exact number of only the latest revisions of every prt, asm, & drw files in Windchill 11.2.1.0?   This is actually Intralink 11.2.1.0 which we are planning to upgrade soon.

 

Thanks,

Joe S.  

Jun 22, 2022 2:09 PM UTC

Since you only want know the number of latest Revisions you can simply query the epmdocumentmaster table:

select count(*) Num_Prts from epmdocumentmaster where cadname like '%.prt';
select count(*) Num_Asms from epmdocumentmaster where cadname like '%.asm';
select count(*) Num_Drws from epmdocumentmaster where cadname like '%.drw';

15 replies

Jun 22, 2022 12:53 PM UTC

Easiest is write a SQL query and look at the EMPDOCUMENT table. There is a column which indicates if it is the latest iteration of a particular version. Do you have access to run queries against DB?

jschutteAuthor
Jun 22, 2022 1:25 PM UTC

I have full access to the server.  However, I have no clue how to write or run a SQL query.    I actually suspected this would be the recommendation.  I was hoping that there was a tool somewhere in Windchill I could use.  

 

Any suggestions on how to write & run this query?

 

1-Visitor
Jun 22, 2022 1:35 PM UTC

You can also use query builder to get number of objects in Windchill.

 

This is Knowledge HUB article of Query Builder Reports from support.

 

This in an example to fetch number of Objects in each Product (taken from above article)

https://www.ptc.com/en/support/article/CS149816

 

 

 

jschutteAuthor
Jun 22, 2022 5:50 PM UTC

Thanks everyone who replied.   Problem solved.   This reminded me of our old user group!

 

-joe