Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
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 ?
Dear SMEs, Can anyone please help me where I can download reloadclipse jar to reload java files in eclipse?I am unable to search it on google.
Hello,We've been using AEM to generate the cover page of WTDocuments for Windchill 12.0_2_7, as per typical usage.While trying to keep the customization at a minimum, we're trying to modify the configuration files (xconf, java, and tpl) to create the Primary Content for a newly created WTDocument custom subtype. I have two questions on the subject:1. I see in the template.properties.xconf that it is possible to define that generators and templates are used based on the document type (for example com.ptc.coversheet.DOCX.template), but is it possible to define a "hook" based on the document type?2. Will the cover page algorithm even trigger if the new WTDocument has no content when created? Let me know if there's anything I can clarify!
I am doing the save as for the EPMDocument while doing save it is giving some error. iam able to get the owner application but iam not able to set the owner application for newly saveas [error is"The value of "Owner Application" cannot be set to null, since it is a "required" attribute."] private EPMDocument saveAsCADAssembly(EPMDocument emptyCADAssembly, String name) throws WTException {try {System.out.println("While Save as partName: " + name); // Get the owner application from the original CAD assemblyEPMApplicationType ownerAppl = emptyCADAssembly.getOwnerApplication();System.out.println("Owner Application: " + ownerAppl.toString()); RevisionControlled[] originals = new RevisionControlled[1];CopyObjectInfo[] copyInfoArray = null; originals[0] = emptyCADAssembly; copyInfoArray = EnterpriseHelper.service.newMultiObjectCopy(originals);EPMDocument copy = (EPMDocument) copyInfoArray[0].getCopy(); // Set the owner application for the newly saved copycop
Here i am trying to fetch the latest cad drawing from the part, i am getting cad but not the latest . while (drawingQR.hasMoreElements()) {System.out.println("Entering into the Drawing Loop");EPMBuildRule link = (EPMBuildRule) drawingQR.nextElement();Persistable epmP = link.getRoleAObject();System.out.println("epmP: " + epmP);if (epmP instanceof EPMDocument) {epmDoc = (EPMDocument) epmP;wt.epm.EPMDocConfigSpec epmConfigSpec = wt.epm.EPMDocConfigSpec.newEPMDocConfigSpec();epmConfigSpec.setLatestActive();epmConfigSpec.setWorkingIncluded(false);System.out.println("epmDoc: " + epmDoc.getName() + " ---" + epmDoc.getNumber()); // Navigate to find references to this latest drawingQueryResult referenceQR = PersistenceHelper.manager.navigate(latestDrawing.getMaster(), "referencedBy", EPMReferenceLink.class, false);if (referenceQR.hasMoreElements()) {EPMReferenceLink referenceLink = (EPMReferenceLink) referenceQR.nextElement();drawing = (EPMDocument) referenceLink.getReferencedBy
--> Change the symbol for the "out of date" clocksHello, I have 2 questions about the clocks that are responsible for the various "out of date" notices.1.) Is it possible to assign a different symbol to the clock (triangle, dot, square)?2.) Is it possible to use a different symbol for all 3 possible clocks (Out of date, Out of date with Workspaceconfiguration & General Status)? Or do these attributes all use the same symbol template? ThanksHeiko
Grayed out below OOTB four action buttons when WTPart type object NOT having "Resulting Change Exists" indicator.OOTB Action buttons to be grayed out :1)Check Out2)Check Out and Edit3)Edit4)Edit Common Attributes. Which is best way to Grayed out OOTB action buttons:1)Filters2)Validators
Hi, I have been asked to return a name value instead of an email address when in a report that collects who completed a task.Currently I use "Work Item.Completed By" but this returns who completed the task with the user's email address instead of their full name. Is there another attribute I can use that returns the full name instead of the email address?Or should I use a convert approach and if so how can that be done?TIA!
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.