Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
So my team wrote a little utility to update some attributes on objects. Worked great but we are seeing out error and need to make a fix for drawings and assemblies. This is how we were checking out the objects: //Checkout document checkedOutDoc = (EPMDocument)WorkInProgressHelper.service.checkout(document, WorkInProgressHelper.service.getCheckoutFolder(), "").getWorkingCopy(); Everything as fine, object was iterated and the attribute were updated. Fast forward a few weeks and a user reported seeing the following. This was odd since I remember kicking off a scheduled publishing job on these items myself and I am sure I selected to use the as-stored baseline. I attempted to republish this item again but in reading the WVS logs, I can see that it reports there is no as-stored baseline so uses latest as the alternative. Rut Roh Shaggy. So cautionary tale. If anyone has the right sequence to update an object WITH the as-stored baseline and then check it in properly (bonus to trigger
How to get all the objects(Part) added in a table thru NmCommand bean in form processor? What API to use?
I have created a custom table using table builder but now I want to add a view picker beside the table header but I can't find any action model or component.
Version: Windchill 13.0 Use Case: I wrote/compiled some code to collect and send to a messaging queue a part BOM. Part of this code has two custom classes (BOM, BOMLines). The return of my method is a List but the workflow expression says it "cannot find symbol" for my BOM class. Description: In the workflow expression I have: java.util.List<ext.comp.BOM> myBOM = ext.comp.getBOMSfromECN(cn); ext.comp.Messages.sendToERP("BOM from ECN: " + myBom.toString()); Check syntax in the workflow doesn't like the ext.comp.BOM... WfExpression_88956210.java:72: error: cannot find symbol java.util.List<ext.ursa.BOM> myBOM = ext.ursa.getBOMSfromECN(cn); ^ On the server I have a BOM.java and BOM.class. Originally I had both of my custom classes in my main code but a compilation error said these would have to exist as standalone .java, so they do. How can I use my custom class in a workflow expression? package ext.comp;
Version: Windchill 13.0 Use Case: Copy the values of attributes of a Subtype of a Part into another SubtypeDescription: Is there any API or a short way to copy the values attributes from an existing part which is a subtype (eg- Hardware Part) into a new part which is of another subtype while using an action to create that new part.
Goal: We want an custom interface showing data from a separate tool within a custom Tab for given record. For Example: Windchill user navigates and open a Change Request 00006#. the View interface shows "Details:,"Process" and "History" tab by default. We want another custom Tab in-place which will appear for all Change Request records and opening the Tab will show data from third party tool linked to the parent record 00006# Questions? 1. How can one add custom tab using(Java/ JS) in Windchill for a given Artifacts like :"Change Request"? 2. how should on embed a custom Iframe with an external Url?
Version: Windchill 12.0 Use Case: I have a case where I need to be able to control the Subject Line that is displayed in the email notifications triggered by a Subscription. Running a WC 12.0.2.X system.Description: When creating a Subscription, on page 3 (Define Subject and Expiration), the user can input any text they want as the Subject of the Subscription.Therefore, when an email is sent, the Subject Line of the email is the characters inputted in the Subject.I need to be able to still allow users to input whatever subject line they want in the Subject field so that it is still visible in Windchill.But, I want to change the Subject Line that is displayed in the Emails. For workflows, this was fairly simple.I added the following script to the General.html file between the <html> and <head> tags:<SCRIPT language=Windchill> <!-- beginSubject --> </SCRIPT><SCRIPT language=Windchill> <!-- getInitSubject --> </SCRIPT><SCRIPT la
Version: Windchill 12.1 Use Case: As per the article : CS162357, I have created a new Attribute for the User Object. However, while testing, it is not letting me give the value for the attribute in both Create and Edit Layout. How to configure/customize it in such a way that the value can be given through the Windchill UI.Description: As per the article : CS162357, I have created a new Attribute for the User Object. However, while testing, it is not letting me give the value for the attribute in both Create and Edit Layout. How to configure/customize it in such a way that the value can be given through the Windchill UI.
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.2.14Unable to compile the InfoEngine(customized) and OOTB files after installing cps14 with JDK 11.0.26/u01/schneider/nextgen/Windchill/tasks/codebase/com/infoengine/compiledTasks/file/u01/schneider/nextgen/Windchill/tasksunder com/ptc -->windchill folder is missing
Version: Windchill 12.0 Use Case: I want to retrieve all attributes having "Require" constraint or even if I can get all constraints of attribute I can filter it out for "Require" constraint.Description: I tried number of methods but they return "null" always :for example :try 1 :AttributeTypeSummary ats = obj.getAttributeDescriptor(iba);try 2 :TypeDefinitionReadView clfNodeView = TypeDefinitionServiceHelper.service.getTypeDefView(attribute);try 3 : Collection<ConstraintDefinitionReadView> allConstraints = attribute.getAllConstraints(); Please help me to get releveant api to get All attributes of Part/Doc having Required constraint
Version: Windchill 13.0 Use Case: Previously working REST API GET example in Windchill 12 now throws a "The requested resource [/Windchill/oauth/servlet/odata/v5/ProdMgmt/Parts] is not available" error. Description: I had a set of examples in Postman working when we were on our Windchill12 installation. Upgraded to Windchill 13 in December and I went to dust of the examples. Same GET calls now throw this error. For the sharp-eyed, yes this calls the v5 of the API that is deprecated. The same result, though, happens on the latest v7 version. I confirmed that the Azure to securityContext.properties and wt.properties file settings are correct but Windchill 13 does have some additional lines in the securityContext file. If I try the same from the Windchill interface, everything works fine for the same URL (sans the oauth piece needed for SSO).
Version: Windchill 12.0 Use Case: On the home screen of Windchill (using it in a browser), the My Notebook folders are always expanded by default when I launch windchill. I would like them to be collapsed by default.Description: When the folders are expanded, it forces unnecessary scrolling to get down to important information. I have tried changing the "left pane folder explorer" preference to "no," but that did not resolve the issue. I am unable to find any other preference that would make those folders remain collapsed by default. Does anyone know how to make that happen?
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.2.2I cannot update the classification of a Part using Windchill REST Services in Windchill PartsLinkThe PartsLink binding attribute internal name is: CLASSIt is defined in a subclass of WTPart called StandandPartPOST http://fihel1-sp113wnd.mcint.local/Windchill/servlet/odata/v5/ProdMgmt/Parts('OR:wt.part.WTPart.8024517512')/PTC.ProdMgmt.StandardPartJSON:{"CLASS": {"ClfNodeInternalName": "class0443"}}No matter what I do, I get an error: 'CLASS' can not be mapped as a property or an annotation.Here are the errors that I faced'CLASS' can not be mapped as a property or an annotation.
Version: Windchill 12.1 Use Case: Using a DAO class that extends com.infoengine.connector.DataAccessObject to link 2 parts: public com.ptc.windchill.ws.GenericBusinessObject [] Link ( java.lang.String parentUfid, com.ptc.windchill.ws.GenericBusinessObject [] associations, java.lang.String [] propertyNames ) throws Exception { String [] ie$dao$names = { "parentUfid", "associations", "propertyNames", }; Object [] ie$dao$vals = { parentUfid, associations, propertyNames, }; Object ie$dao$ret = execute ( "Link", ie$dao$names, ie$dao$vals ); return (com.ptc.windchill.ws.GenericBusinessObject [])ie$dao$ret; }Description: Exception thrown when trying to create WTPartUsage between 2 parts. Same call works in other WC installations (11, 12, 13, etc...) but failed in 12.1.2. The settings are the same for all the WC servers tested. 2025-01-27 19:15:35,902 ERROR [ajp-nio-127.0.0.1-8010-exec-3] wt.adapter.exception aphung - WTAdapterImpl com.ptc.core.command.common.CommandExcep
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.0.1配置虚拟角色“所有者(owner)”的权限,配置完成后无法生效。(具体配置的权限是对象所有者可删除自己创建的对象权限)
Version: Windchill 13.0 Use Case: When running a custom service the service must be able to dynamically load classes that are described with their fully qualified names in a configuration file (or other form of storage depending on if the system is Windchill+ or not)Description: If I have understood things correctly I will not be able to use reflection in custom code that I want to install in a Windchill+ environment. Will I be able to use the standard ServiceLoader provided by Java? As mentioned in the Use Case I am looking for a way to dynamically load classes based on some type of configuration. In an on-prem environment I can easily use Class.forName to get my class but if I understand things correctly this will be possible in Windchill+. Will I be able to use the ServiceLoader to have the same (more or less) functionality? If not, does anyone know of some other way to accomplish the same result? Thank youDaniel Martinsson
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.0.1When using a custom TreeBuilder to populate a tree table component with data from a JSON file, the OOTB Export_file action only exports the header values and not the data. The same data is correctly displayed on the UI but not populated in the exported Excel sheet. The custom TreeBuilder is mapping JSON attributes to a bean file, and the tree table is displaying the values as expected. However, the exported Excel sheet shows only headers without any data rows.Steps to Reproduce:Populate a tree table using a custom TreeBuilder with data from a JSON file.Verify that the data is displayed on the tree table UI.Use the OOTB Export_file action to export the tree table to Excel.Observe that the Excel sheet shows only the headers without data.Here are the errors that I facedIssue with "Export List" Action on Custom Tree Table – No Data Exported
Query-Links webject thrown NullPointerExceptionThis exception thrown when 2 or more id send to object_refException thrown for following inputs to Query-Links:TYPE|DIRECTION|output_type|auto_navigate|attributewt.part.MasterIteration|master|FULL|false|iteration,number,masterReferencewt.part.WTPartDescribeLink|describesDoc|FULL|true|describes,name,number,masterReferencewt.part.WTPartReferenceLink|referencesDoc|FULL|true|referencedBy,name,number,masterReference Windchill: 12, 13 Exception:Nested exception is: java.lang.NullPointerExceptionat com.ptc.core.adapter.server.impl.AbstractWebject.addTypeInstance(AbstractWebject.java:925)at com.ptc.core.adapter.server.impl.AbstractWebject.addTypeInstance(AbstractWebject.java:901)at com.ptc.core.adapter.server.impl.QueryLinksWebjectDelegate.invoke(QueryLinksWebjectDelegate.java:497)at com.ptc.core.adapter.server.impl.WebjectDelegateFactory.invokeDelegate(WebjectDelegateFactory.java:434)at jdk.internal.reflect.GeneratedMethodAccessor1027.i
In my project there is a requirement to download secondary/primary content and attachments. I looked for endpoint to do this in WRS page and I cannot find anything. I searched in this platform and found some suggested java scripts to do this. I however currently have no idea how to implement it in windchill. I will be thankful for the guidance for this customization if someone already did it or have any idea. Thank you in advance for your time and consideration.Kind regards,
Coming out of the PTC/User conference, a high ranking request has been getting a decent export out of Windchill for a TDP in an efficient manner. I know I have seen a number of solution offerings for this and many of you have already tackled this. The package framework is a great start but I have yet to find someone who likes the default output it provides. Has anyone identified the code that controls how this zip file gets generated? Or have you taken the approach to modify it post creation? I can see this as being on of the hurdles to more adoption of this feature. It should be a customization point so we can tailor how the output is generated and even put company themes on the resulting html file.
Version: Windchill 12.1 Use Case: We are trying to create a new attribute "Models Affected" which is a Text box under resulting objects of change task. This should appear as a column under Resulting Objects. Users in this box can give the models affected after this change.Description: I am unable to follow the article - Create a Data Utility Could you please help me in creating a new attribute which can store the text by sharing any procedures or tips & tricks?
Hello All,I am looking for a way to provide the sequence to the Change Task through customization from the CN workflow. Is there any supported API which can be used to accomplish this?Regards,Karan
Is there any api to assign a workflow activity to a user through java code.
Version: Windchill 13.0 Use Case: We're planning to use NATS for the messaging queue between Windchill and other systems. When going to test the connection via java code, Windchill throws the following: SEVERE: exceptionOccurred, Connection: 37, Exception: java.util.concurrent.ExecutionException: java.io.IOException: SSL required by server. Description: We're connecting Windchill to upstream and downstream systems by way of NATS as the messaging queue. I have the NATS .jar and dependencies in Windchill, code written and compiled successfully. I run a simple example to connect and post a sample message straight out of this NATS functional example. Windchill throws this: Feb 07, 2025 5:29:05 PM io.nats.client.impl.ErrorListenerLoggerImpl exceptionOccurred SEVERE: exceptionOccurred, Connection: 37, Exception: java.util.concurrent.ExecutionException: java.io.IOException: SSL required by server. Is this a certificate issue (i.e. need to add a cer
Version: Windchill 12.1 Use Case: i am trying to add a row in the end as a accumulated result of iba attributeDescription: i am trying to add a row in the end as a accumulated result of iba attribute
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.