Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
There is a command line utlity to delete representations. https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS62748
The direct approach is to delete everything but that has major performance issues and is like driving a finishing nail with a sledge hammer. The command also accepts list files so you can define SQL or Query Builderqueries that return a list of the derived images to delete, parse the list into manageable chunks (e.g. 5000 at a time or maybe a context at a time), and iterate through your system until all latest have been republished.
Here is a SQL query that will work in Oracle or SQL Server to get you started. Replace the two occurrences of <product name="> with the name of a product and it will return a list of all the derived images in the product. It returns DerivedImages of WTParts and CAD Documents.
where part.idA2A2=derived.idA3theRepresentableReferencand part.idA3containerReference=prod.idA2A2
select derived.idA2A2 from DerivedImage derived, EPMDocument epmdoc, PDMLinkProduct prod
and prod.namecontainerInfo='<product name=">';
t just finds all representations per the current context. I
Mike,
does Creo view compare compensate for:
View scale changes
View relocations or orientation changes
Views moved to alternate sheets
Drawing transitioning from paper to electronic?
While it sounds like your customer has their heart set on HPGL, I've had good performance using Photoshop (Elements is good enough) to created comparison overlays. WIth it, all the above can be handled (copy/paste and/or drag and/or rescale), including skewed paper images from fax machines with coffee stains on them (still need to scan to PDF) for those changes recommended from the factory. Not only can one determine by color the same/new/changed status, one can also (even if color blind) select and visually amplify any difference, picking up a lower case i from a lower case l or the change in a single dash length if one so cares.
A truly semantic checker would be best, but there's limited semantics after a pass into HPGL or PDF. That leaves visual differences or coordinate comparisons, and those fail for the above conditions.
Following all the great advice in this conversation I was able to get this to work for products, however I can't seem to get the syntax right to query in a library. Any advice?
windchill com.ptc.wvs.server.util.DeleteRepUtil -CONT_PATH "wt.inf.container.OrgContainer=HighTech" -containerOID "wt.inf.library.WTLibrary:31012" -repname "default"
Did you try the above? You can get the container id from the URL.
Thank you,
Binesh Kumar
Barry Wehmiller
Hi Binesh,
Yes I can do that, but I was wanting to use the SQL query to find all the representations in a library.
-marc
Hi Marc,
You can use below for library.
Thanks
Binesh Kumar
Barry Wehmiller
Select
derived.idA2A2
from
DerivedImage derived, EPMDocument epmdoc, WTLIBRARY lib
where
epmdoc.idA2A2=derived.idA3theRepresentableReferenc and
epmdoc.idA3containerReference=lib.idA2A2;