Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Version: Windchill 11.0 Use Case: I hope that in the customized function, after entering advanced expressions, the code can filter out the objects that meet the conditions of this expression, and the attributes for filtering are on a certain IBA attribute of these objects.Description: Is there any JavaDoc for Expression in Windchill? Are there any related APIs for filtering and screening? For example, for an existing Expression (AA00 = AA01 / AA00 = AA02), if AA01 is input as True and AA03 is input as False.
Version: Windchill 12.0 Use Case: Need to create a drawing file list in Windchill active workspaceDescription: I am working on a vb.net app. Part of its function is to export all drawings under active workspace to PDF format with a custom stamp. However, I cannot get the creating file list work as it is very confusing how to extract the file list from workspace. Can anyone provide a piece of sample VB code or this purpose? Thanks
How to create WtPartUsageLink in windchill 11. 1 through API. I am looking for one Sample.
Version: Windchill 11.0 Use Case: I m querying the objects based on input list. input list contains all epmdocument numbers as input.. all objects are queried and retrieved using QuerSpec/QueryResult API as part of a custom java class method. However, there are some numbers in epmdocs list that contain european characters, so QuerSpec/QueryResult API unable to fetch these objects. can some one help with this issue. below is my API method, public List<EPMDocument> getAllEPMDocuments(String number, String revision) {List<EPMDocument> documentList = new ArrayList<>();try {// Create a QuerySpec object to build the queryQuerySpec qs = new QuerySpec(); // Add EPMDocument as the class to queryint idx0 = qs.appendClassList(EPMDocument.class, true); // Add condition for the EPM document numberqs.appendWhere(new SearchCondition(EPMDocument.class, "master>number", SearchCondition.EQUAL, number),new int[] { idx0 }); // Add conditions for both lat
Version: Windchill 12.1 Use Case: When a user creates a Promotion Request in the system and selects themselves as the "Reviewer," the application should trigger a confirmation popup to ensure the action is intentional. This confirmation mechanism is necessary to prevent potential conflicts of interest or unintentional self-selection. The popup will serve as a checkpoint, prompting the user with a message such as, "You have selected yourself as the Reviewer. Are you sure you want to proceed?" This will provide the user an opportunity to reconsider their choice or confirm it before finalizing the request.Description: I am customizing the Promotion Request functionality in Windchill and need help implementing a confirmation popup. Specifically, the popup should appear when a user selects themselves as the "Reviewer" during the promotion request creation process.I referred to this documentation, but it doesn't provide sufficient details for implementing this scenario.Could someone gui
Version: Windchill 12.0 Use Case: All cases when I want to define quantity rule for components under assembly. This include using occurence or parameter/constraint.Description: Hello community, According to About Publishing Associated Assigned Expressions, my understanding is that all expression should be exportable. However, while testing, I am only able to find and validate REST services for extracting item/usage expression into XML file. Function to call out occurence expression information seems to be missing.Additionally, I cannot find any information to extract parameter&constraint information neither. I am very thankful if a pro can help confirm it or correct me with additional information. I am trying to include all material selection logics in XML and exchange with ERP, quantity logics will be missing with above restrictions. Thank you very much.
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.1.0need help in creating the custom email template and also hook it to email robot in workflow.
is there way to add search criteria to picker as you can see in below screen shot there is no search criteria. How bring name and number etc in this page to search. I am doing picker through data utility
Version: Windchill 13.0 Use Case: I want to bring Part Structure Browser and 3D Visualization Tab in windchill custom jsp. How to render it. We know there is gwt framework involved in it. Is there any way we can bring these two component in separate tab of object.Description: I tried multiple ways to bring the visualization and part structure browser in my custom jsp. 1. I copied psb-iframe.jsp content (location: C:\ptc\Windchill_13.0\Windchill\codebase\netmarkets\jsp\psb\psb-iframe.jsp)2. Also there is viz.jsp (Location : C:\ptc\Windchill_13.0\Windchill\codebase\netmarkets\jsp\cat\viz.jsp)
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
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.