Can I force users to add a comment every time they check in files?
Can I force check-in comments?
How to get a report of the URL address of WTparts?
Hello community!!!
I am trying to get a report that list de URL address of WTParts. I have tried some joins between Part e URL link in query build report without success.
Does anybody knows how to do it?
Thanks a lot in advance...
Apache, ProjectLink and SSL Certificates not trusted
All,
I ran openssl to generate a certificate request that I gave to our security department. They gave me a server.cer back to use as my SSL certificate. Since I never worked with installing SSL on a Linux Apache system I reached out to PTC tech support. They had me follow document CS134592. I mentioned to them I did not need a self-signed and had misgivings in running this. SSL got deployed in Apache. No matter how many keytool iterations I run, I cannot replace the self-signed cert with the one I received from our internal CA. I also found document CS158480 that details exactly what to do which I followed word by word. This also did not help.
Has anyone been through this before and have a solution? Thanks in advanced.
Mitch
Modifying the Change Request email text
One of our options we have put in the CR form is multiple entry field for which group within the company will be impacted by the change.
The first option we are thinking of is to have the email only be sent to those members of the impacted teams. There could be anywhere from 1 to 10 teams and each team may have multiple members.
The second option would be for the email notification text to just include the name(s) of the teams that have been selected. Currently the email goes to all members of the IPT groups and then some call and ask why they received an email for that task. If we had the impacted areas listed on the email form, that would tell some people they can ignore it.
I know part of the email that is sent is dynamically created because we recently added a new CR method (Trivial) and it shows up in the list of options displayed in the email for actions. If someone knows where and the name of the file that is stored that is used for the email that would help in starting on the second option. Thinking some more, is the email text generated from the information in the Workflow itself under instructions?
Windchill 10.0 m040
Windchill 10.1 and Java
Hi All,
I am wondering what the correct Java build should be used with Windchill 10.1 on client machines running Windows 7 64bit.
We are using Creo 2.0 M080 with Windchill 10.1 M040.
There are some users that are losing connection and some work is not being saved properly. This is leading to a mismatch in cache data between the Server Workspace and the Client Workspace.
We are not sure if this a Java issue but trying to check different avenues where an error may occur.
Thank you.
Brian
How to create Type, Attribute and relationship in PDMLink 9.0?
Hi,
How to create HardType, HardAttribute in Windchill 9.0? And how to map created hard-attribute to newly created hard-type?
Also how do I create relationship b/w two types in Windchill? It there any Plugin for it or I need to write JAVA class for it.
Please help..
Thanks - Vasant
How i can send Attributes values of Problem report sent through Workflow email
Hi All,
My requirement is, to send the list of attribute values related to that Problem report to users through Workflow message.
we are using OOTB problem report Workflow.
1. created variables like name, category
2. add below code to expression robot in workflow,
wt.change2.WTChangeIssue thisPR = (wt.change2.WTChangeIssue) primaryBusinessObject;
java.util.Locale locale = wt.session.SessionHelper.getLocale();
com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(thisPR,null,locale,null);
obj.load("name","number","description","Category");
Object nameValue = obj.get("name");
Object numberValue = obj.get("number");
Object descriptionValue = obj.get("description");
Object CategoryValue = obj.get("Category");
name = nameValue.toString();
number = numberValue.toString();
description = descriptionValue.toString();
category = CategoryValue.toString();
=======================
when i try to compile it, facing issue, as shown in image,
the mentioned class is not present at that location, but i think this is stranded class which comes with OOTB windchill installation.
here is my workflow, please check it let me help.
any kind of help will be grate.
Adding new Lifecycle state
We have been running Windchill/PDMLink since V8 and are now on 10.0 preparing to move to 10.2.
One of the managers has asked what would be involved to add a new state to our Promotion Requests.
We currently have: Design, Draft, Prototype, Pre-Release, Release, Canceled and Under Review.
We would like to add a Development state between Draft and Prototype.
The Development state would be used for changes that did not require a Change Request review before implementing as the parts are being developed and changed as the design is tested. Once they design was finalized, it would then be promoted to Prototype for more formalized testing with other production equipment. When those tests are completed, it would then be promoted to Released.
My questions are:
1) What files need to be modified to add a new state?
2) What impact will adding a new state have on existing files?
3) Can the new state be isolated so it only shows on new files of a certain type (.prt, .asm)?
Ben
Access is not permitted to advanced query capabilities
Hello ,
I'm writing advanced API Query to fetch the all parts latest version and iteration but I'm unable to execute the query. Here my code:
import wt.fc.QueryResult; import wt.inf.library.WTLibrary; import wt.part.WTPart; import wt.part.WTPartMaster; import wt.query.ClassAttribute; import wt.query.OrderBy; import wt.query.QueryException; import wt.query.QuerySpec; import wt.query.SQLFunction; import wt.query.SearchCondition; import wt.query.SubSelectExpression; /** * * @author mgangappa */ public class Extractor { public static void main(String[] args) { Extractor ex = new Extractor(); ex.getAllPartsLatestVersionAndIteration(); } public void getAllPartsLatestVersionAndIteration() { try { final QuerySpec qs = new QuerySpec(); qs.setAdvancedQueryEnabled(true); final int lib = qs.addClassList(WTLibrary.class, false); final int masterIndex = qs.addClassList(WTPartMaster.class, false); final int partIndex = qs.addClassList(WTPart.class, true); final QuerySpec subSelect = new QuerySpec(); final int partSubInt = subSelect.appendClassList(WTPart.class, false); final SQLFunction max = SQLFunction.newSQLFunction(SQLFunction.MAXIMUM, new ClassAttribute(WTPart.class, "iterationInfo.branchId")); subSelect.appendSelect(new ClassAttribute(WTPart.class, "masterReference.key.id"), new int[]{partSubInt}, true); subSelect.appendSelect(max, new int[]{partSubInt}, true); subSelect.setAdvancedQueryEnabled(true); subSelect.appendGroupBy(new ClassAttribute(WTPart.class, "masterReference.key.id"), new int[]{partSubInt}, true); qs.appendWhere(new SearchCondition(WTLibrary.class, WTLibrary.NAME, SearchCondition.NOT_LIKE, "%test%"), new int[]{lib}); qs.appendAnd(); qs.appendWhere(new SearchCondition(WTPartMaster.class, "containerReference.key.id", WTLibrary.class, "thePersistInfo.theObjectIdentifier.id"), new int[]{masterIndex, lib}); qs.appendAnd(); qs.appendWhere(new SearchCondition(WTPart.class, "masterReference.key.id", WTPartMaster.class, "thePersistInfo.theObjectIdentifier.id"), new int[]{partIndex, masterIndex}); qs.appendAnd(); qs.appendWhere(new SearchCondition(WTPart.class, WTPart.LATEST_ITERATION, SearchCondition.EQUAL, true), new int[]{partIndex}); qs.appendAnd(); final SubSelectExpression inList = new SubSelectExpression(subSelect); inList.setAccessControlRequired(false); qs.appendWhere(new SearchCondition(new ClassAttribute(WTPart.class, "iterationInfo.branchId"), SearchCondition.IN, inList), new int[]{partIndex}); qs.appendOrderBy(new OrderBy(new ClassAttribute(WTPartMaster.class, WTPartMaster.NUMBER), true), new int[] {masterIndex}); QueryResult qr = ExecuteQueryInServerContext.executeAdvanceQueryInServer(qs, "executeQuery"); } catch (QueryException ex) { ex.printStackTrace(); } } }
I'm executing it in the RemoteMethodServer.invoke (see below code):
import java.lang.reflect.InvocationTargetException; import java.rmi.RemoteException; import wt.fc.PersistenceHelper; import wt.fc.PersistenceServerHelper; import wt.fc.QueryResult; import wt.method.RemoteAccess; import wt.method.RemoteMethodServer; import wt.pds.StatementSpec; import wt.query.QuerySpec; import wt.util.WTException; /** * * @author mgangappa */ public class ExecuteQueryInServerContext implements RemoteAccess { public static QueryResult executeAdvanceQueryInServer(QuerySpec query, String method) { Class[] pClasses = new Class[1]; pClasses[0] = QuerySpec.class; Object[] pObjects = new Object[1]; if (query == null) { return null; } else { pObjects[0] = query; } try { return (QueryResult) RemoteMethodServer.getDefault().invoke(method, ExecuteQueryInServerContext.class.getName(), null, pClasses, pObjects); } catch (RemoteException ex) { ex.printStackTrace(); } catch (InvocationTargetException ex) { ex.printStackTrace(); } return null; } public static QueryResult executeQuery(QuerySpec qs) throws WTException { System.out.println("executeQuery => PersistenceServerHelper "); QueryResult result = PersistenceServerHelper.manager.query(qs); return result; } public static QueryResult executeQueryManager(QuerySpec qs) throws WTException { QueryResult result = PersistenceHelper.manager.find((StatementSpec) qs); return result; } }
But I'm keep getting the below error:
nServerContext, executeQuery, , 0, 0, 0.0, 0, 0.0, 0.01, 0.007444714 (wt.pds.pdsResource/23) wt.pds.AdvancedQueryAccessException: Access is not permitted to advanced query capabilities. at wt.pds.SQLDatabasePds.query(SQLDatabasePds.java:616) at wt.pom.PersistentObjectManager.query(PersistentObjectManager.java:1108) at wt.pom.PersistentObjectManager.query(PersistentObjectManager.java:1017) at wt.fc.StandardPersistenceManager._query(StandardPersistenceManager.java:1878) at wt.fc.StandardPersistenceManager.query(StandardPersistenceManager.java:1417) at wt.fc.StandardPersistenceManager.query(StandardPersistenceManager.java:1301) at com.google.extractor.ExecuteQueryInServerContext.executeQuery(ExecuteQueryInServerContext.java:50)
What I'm doing wrong? Do I need to set or change config?
Thanks,
Manjunath Reddy
Windchill Quality Solutions Conversion Wizzard shows Invalid Objectname 'RelexDatabases'
Hi,
I made an update from WQS 10.2 to WQS 11 (parallel installation). Everything went fine, now I have a WQS 11 with an initial DB. But if I want to copy the content of 10.2 to my 11 instance with Windchill Quality Solutions Conversion Wizzard, I can do the steps only to the point "Database Server Selection". Then I get the error: Invalid Objectname 'RelexDatabases' See figure below.
Any idea? Thank you very much!!!
Update: According documentation setup should now ask for DBA credentials for the host and for the location where backup should be placed. But it asks nothing, just checks the database connectivity at once... The step between is missing...
How to get list of Released objects(documents) in mail notification in promotion approval request?
Hi Gurus,
I have one customer requirement that, After approving the list of promotion objects, those object names, numbers and version should be included in a mail notification.
Kindly suggest if there is any work arounnd/customization code available for the same.
Regards,
Mahesh Kumar G
The Build Associated Part function missing parts?
Hi there,
I have a user who is reporting that the Build Associated Part function for a CAD assembly is actually missing some of the structure occasionally (i.e. using that function only puts 58 of the 61 parts into the WT part assembly, but another unofficial technique was able to fix it).
Anyone have any ideas as to what could cause this?
Please advise,
Daryl
Home Page table builder
Hello,
Can anyone please help me from where home page tables information is coming I am trying to add some new tables for that I need to check from where I can add the custom builder
How often are you applying Windchill 10.2 CPS (Critical Patch Sets) and how long is it taking?
We have multiple 10.2 Windchill environments (development, testing, staging) which are also clustered, some with multiple nodes.
We will compare the files being updated to make sure that we are good on our existing customizations and configurations.
We will also do some level of testing before executing the PSI on production.
1. Back up codebases on all 4 prod nodes
2. Run CPS PSI on cache master node
3. Fix permission on IE tasks (we have non default settings on some which get wiped out when running the PSI)
4. Back up modified cach master codebase
5. Move\rename pre-CPS codebases on MS nodes
6. Restore cache master codebase from step 4 on MS nodes
7. Update new MS node codebases with site.xconf from pre-CPS codebase and propagate properties
8. Fix Creo publishing configuratin on each MS node
9. Fix middleware credentials on each MS node
10. Restart and a quick technical checkout
Just focusing on these 10 steps for production it takes a good 4-5 hours.
Our management is interested in what others are doing in the area of Critical Patch Sets; how often (monthly, quarterly, etc.) and how long (in hours per environment).
Can you guys share how often and how long (please specify monolithic or clustered)?
Anyone have a way to find nested family tables?
Anyone have a way to find nested family tables? Ideally a query builder report with criteria = Is Generic and Is Instance. But I can't figure out how to do this.
Windchill Attributes/Global Attributes Question
So far in my 4 years as admin I have been creating a 1 to 1 relationship between attributes and global attributes. I just got a request to store, in one document, 40 serial numbers....can I get away with creating a global attribute called serial number and then keep selecting it as I create the separate attributes in the type manager? What is best practices?
Greg
Conversion of AutoCAD drawing to PDF in Windchill
Is it possible to convert AutoCAD drawing files to PDF in Windchill without manual intervention?
The article https://www.ptc.com/appserver/cs/view/solution.jsp?n=CS32402 says that a 3rd party application has to be used for this.
Does anyone know anything on how the automatic conversion of AutoCAD drawing to PDF can be done?
Effectivity date for a particular part object can be checked by using edit filter criteria and specifying the date range. Now, for structure tab in documents there is no effectivity option in edit filter. Can anyone let me know how to configure windchill
Effectivity date for a particular part object can be checked by using edit filter criteria and specifying the date range. Now, for structure tab in documents there is no effectivity option in edit filter. Can anyone let me know how to configure windchill to view effective document in bom structure.@
Editing "Description" field is locked
windchill 10.2 Change Notice add/delete participants
windchill 10.2 Change Notice add/delete participants