Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Hi, I am using the Decode Datebase Function to return a datetime when a task has a status of "Completed". It looks like this: However, when I use the above approach the return type is string and not a timestamp.The reason I want a timestamp for this value is so the user can set the criteria/param before generating the report easily by selecting a date from the calendar picker (like in the image below) instead of entering free text.
Hello, i implemented OTB attibutes during the creation folders in Windchill (layout create new folder).Is possibile catch thes new attributes in the rest api?We are using "DataAdmin rest to get Folders from container ID"
Question 1 : Is there any API for Import from spreadsheet.Question 2 : Anyone know about BOM extract report code so that we can use similar to create a BOM.
Hello all, I'm currently writing a custom JSP to summarise changes resulting from a Change Notice, I've managed to pull all the required data into the report except for Assigned Usage Expression (e.g. 'COLOUR= "GREEN"), which I'm struggling to get, does anyone know of an API method to retrieve this? I've tried:WTPartUsageLink.getExpressionData() - Returns null, seems to just return the ExpressionData field from the WTPartUsageLink table, which is completely empty, guess it's a redundant field ExpressionHelper.getDisplayExpression(Expressionable, WTContainerRef) - Returns "{Display : "" , invalid: false}", not sure why it's taking a WTContainerRef argument as this shouldn't make a difference to the returned expression, so maybe it's not doing what the method name implies.CS384380 states that there's no supported API to achieve this, however that's not to say there isn't one available. Worst case, I could always build the expression through QuerySpec
We need an API to get Affected End Items added in Variance at Variance's Affected End Items table. Please provide a sample code to get the Affected End Items.
Hello experts,Is there any API to generate CAD object step files via customization instead of generating via publish rules?
I created a user-defined dictionary with userdict command from the command prompt. The dictionary file is located at the default location lib/proximity/userdict, I was under the assumption that the words in the dictionary file would not display the red wavy underline when spelling check is used on an opened document in Arbortext. However, the words on the document which were also on the dictionary file are still display with red wavy underline. If someone can provide the reasons why and the solutions to make the user-defined dictionary to work as intended, your inputs are greatly appreciated.
Looking for the right way to call this. I have the user object passed in and want to search for change notices created by that user that are still active. Do I have the right call? I saw a message that "CREATOR" was ambiguous when compiling. QuerySpec spec = new QuerySpec(); int changeNotice = spec.addClassList(WTChangeOrder2.class, true); SearchCondition sc = new SearchCondition(WTChangeOrder2.class,WTChangeOrder2.CREATOR, SearchCondition.EQUAL, user.getDisplayIdentifier()); spec.appendWhere(sc, new int[] {changeNotice}); spec.appendAnd(); sc = new SearchCondition(WTChangeOrder2.class, WTChangeOrder2.RESOLUTION_DATE, SearchCondition.IS_NULL); spec.appendWhere(sc, new int[] {changeNotice}); spec.appendAnd(); sc = new SearchCondition(WTChangeOrder2.class, WTChangeOrder2.NEED_DATE, SearchCondition.LESS_THAN, timestamp); spec.appendWhere(sc, new int[] {changeNotice}); QueryResult lateCN = PersistenceHelper.manager.find((StatementSpec)spec);
How can I get the "SOFPART" attribute value of the document type object in the promotion?SOFPART contains multiple string values I wrote a code to deal with this situation, but the attribute value is empty. Where am I making a mistake?CODE: try { wt.maturity.PromotionNotice pn = (wt.maturity.PromotionNotice) primaryBusinessObject; wt.fc.QueryResult qr = wt.maturity.MaturityHelper.service.getBaselineItems(pn); while (qr.hasMoreElements()) { java.lang.Object obj=(java.lang.Object)qr.nextElement(); if (obj instanceof wt.doc.WTDocument) { wt.doc.WTDocument wtdoc = (wt.doc.WTDocument) obj; wt.content.ContentHolder contentHolder = wt.content.ContentHelper.service.getContents(wtdoc); wt.content.ContentItem item = wt.content.ContentHelper.getPrimary((wt.content.FormatContentHolder) contentHolder); com.ptc.core.lwc.server.PersistableAdapter persistableAdapter = new com.ptc.core.lwc.server.PersistableAdapter(wtdoc, null, java.util.Locale.getDefault(), new com.ptc.core.meta.
Hello, is there any OOTB possibility to keep attributes synced on WTPart and EPMDoc, when associated by Owner Link and the Attribute names do NOT match? Thanks & Kind Regards
I have a scenario,consider I am creating the following objects using Windchill Custom API loader.EPMDocument -xyz.prt, versions A.1,B.1,C.1WTPart - abc, versions A.1,B.1,C.1I use the below static methods to initialize the objects.EPMDocument.newEPMDocument(docNumber, docName, authoringApp, docType, cadName) for epmdocumentWTPart.newWTPart(number,name) for wtpart My question:First, when A.1 instance is created, i believe the API also creates its master object in the background. What happens when i move to B.1 creation, with same API code? will it attempt re-creation of master object (or)override existing master object during B.1 and C.1?
I am trying to retrieve the part configurations but I have not found an endpoint for this yet. How can I get the part configurations? I want to access the location in below photo.
Hello all, Need your help, I created one Action button which will create a new document in windchill. But once the document is created we get success feedback message in OOTB with an hyper like to the info page of newly created document. but I tried all the API which are available but unable to create that hyper link. can any one help me. How to get that hyperlink?
I have created a customized menu using custom action. onclick of this action i want to perform some UI validation so for that i have created a validation service and implementing post select validation in java class. i have made an entry to register action into service.properties and service.properties.xconf as below in service.propties i have addedwt.services/svc/default/com.ptc.core.ui.validation.UIComponentValidator/twx_custom_mashup/null/0=ext.example.rest.validator.MyValidator/duplicate service.properties.xconf change: <Service context="default" name="com.ptc.core.ui.validation.UIComponentValidator"><Option serviceClass="ext.example.rest.validator.MyValidator"selector="twx_custom_mashup"requestor="null"cardinality="duplicate" /></Service> suggest me if i am doing anything wrong. if its ok its not making a call to validation service. appreciate any help on it in advance.Thanks
Hi, I have a list of Serial Numbers that I need to "translate" into Base Part Numbers. Is there a WRS endpoint that takes a serial number or list of serial numbers that returns the base part number? TIA
I am setting up a GIT repository and creating a pipeline for Windchill . Customer is managing Customizations with SafeArea and Windchill has ThingWorx Navigate , Workers , Replica and all other Integrations. We are on github and using git hub action .Requirement is to manage a pipeline for building and managing the code deployment from Dev -> Test -> Preprod -> Prod environment . Can you please help me with how to manage and create a pipeline? What should be my branching Stratergy ?When CPS or next Upgrade happens, this master repository should server as main .
Hi Everyone, I've created a data utility and have called in the Type and Attribute Manager to overwrite the UI for one of the out of the box variables on a custom document type. This works when the variable is referenced in one of the document layout pages, however, the attribute I want to modify also appears in the item identification information section of the document and in various other tables throughout Windchill. From my understanding, the item identification isn't defined in the type and attribute manager, but rather through the display identification service. Is it possible to create another data utility/service to automatically overwrite this ootb attribute (only in this document type) globally, rather than having to register the data utility to the attribute in the Layout window and creating other services which implement different interfaces, such as the DisplayIdentification interface? Does anyone have any insights or experience creating a global overw
I am trying to get the part configurations, then I will get the structuring of that part using the id of the part configurations, but I have not found an endpoint for this yet. How can I get the part configurations?
I have a requirement to create EPMDocument's in Windchill using Windchill API's..The native CAD files are stored in a folder drive, for which we have a need to create bulk create EPMDocument objects using API.No as-stored, No family table data.I want to create plain EPMDocument's with minimal System OOTB attributes & few custom IBA's.I want to understand how this objects behave in the system when compared with EPMDocument objects that were created using CAD authoring application.Please note I have only one option to create these objects using API.
Hello, I have been working as a Windchill Developer for more than 2 years. I struggled a lot in the beginning stage to find solution to some of my queries since many of the answers required some pre-requisite knowledge which I did not possess at the time. I am planning to write some articles on the customization topics with basic details so that people like me at their beginning stage could get all the required details in a single place. Some of the topics I will be addressing are as follows: i) Listeners ii) Adding custom actions and Filters iii) Sending/Receiving data between interfaces. iv) Dashboard designing using model view controller. v) Custom utility to do data correction. I will update the list on the go and let me know if any topics can be added to the list by you. It would be a great help for all the developers like us. Thanks. Regards, HS
I am using Windchill PDMLink Release 11.0 and Datecode with CPS M030-CPS14We're attempting to update Alternate usernames in our dev environment by using an infoengine task detailed in CS233456. It appears that case is not updating bulk users but a specific user. I was looking for a way to update multiple users. I created an infoengine group of WTUsers (small subset of all users) and tried using the foreach tag to parse through those users to update their alt username but that hasn't worked. I may be missing something and was wondering if there's anyone that could help with.
I am building a very simple edit wizard with an attributes table. Above this table, I want to have a dropdown list of possible role values. I have a data utility that can populate the values. Because this value is an input for the attributes table and its generation, when the data utility changes, the attributes table should refresh to pull the data related to this role. One thing I am unclear on is how to trigger the table to regenerate when the drop down value is changed. A non-simple example I can think of is the document create wizard when you change the soft-type, the lower section is refreshed.
In this example, customer wants to output ”Iteration“:1,like the ”Revision“ But seems attribute "Iteration" is not in Parts.json, is it possible to output "Iteration"? Thanks,Eva
I need to use the attribute "Default Unit" - Internal Name (defaultunit), however, the legal value list is "ea|as_needed|kg|m|l|sq_m|cu_m" and for value "ea" . I want have a value in fraction which is currently not possible .is there any way have fraction value for value "ea" Or how can I add additional value as "special each" for which I will add the fraction unit values ?
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.