Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
I'm using Creo 5 with Windchill 11 and when I open Creo, type in my Windchill username/password, I always have to navigate to "Server Management", right-click on the server and un-check the "work offline" box. Does anyone know how to have Windchill automatically start online when it opens? I've talked with other folks in the office and theirs automatically starts online and they never need to go to server management and un-check that "work offline" box. We are all using/connecting to the same server. I understand it's not a long process to go to Server Management and just un-check that box but was curious as to why I need to and theirs is online by default. Thanks in advance!
Hi all, we recently implemented the Afterloader as per CS216668 following option 2, its working as expected and copying our additional pdf files to the secondary content of the Drawing. We left the files types as "pdf stp igs dwg" So midway through the day I start getting calls from people telling me that their step files manually attached as secondary content to an EPMDocument were being deleted after checkin. We have a process whereby we create step files in Creo and save it directly to the EPMDocument, we save them with the naming convention <partnumber>_<version> (we dont publish step files as we often need to select different co-ordinate systems to export) So it looks like the AfterLoader code is deleting any secondary content which contains the same string of characters in the name as the EPMDocument, for example I have a CAD Part called 1234567.prt and it has secondary content, manually attached, called 1234567_V1.stp, after check in that step file attachment is gone
Hi all, i am desperately trying to get the items contained in a promotion request via REST api. What I have as input is the ID of the promotion request, for example OR:wt.maturity.PromotionNotice:124606188 It seems one should use /Windchill/servlet/odata/NavCriteria/NavigationCriterias , but I am struggling about how to get this with EPMDocPromotionNoticeConfigSpec and WTPartPromotionNoticeConfigSpec and wondering how to get documents / all items contained in a promotion request... Are there any examples / hints about how to construct the url to get closer to the items comprised in a promotion request? Best Regards
Does anyone have any insight or ideas on having a Windchill Part BOM Markup for Revisions? I am aware of doing a compare Part structure but this is only after the work is complete. Ideally this could be available on the change task. Any ideas that could be done for this with Windchill Rest Services potentially? Looking for anyone's current processes that are server/ data driven, not a excel file as that is what we are trying to get away from. Currently we are using Windchill 11. M020
For viewing ODATA Swagger UI in 11.0 M030 CPS18 you can use the Customiztion Odata Rest API link which navigates to URL https://<server>/Windchill/netmarkets/html/wrs/doc.html However the link below shows: Any suggestions on what is missing in the configuration to correctly open it?
We will host a live Expert Session: "Tailoring Windchill Rest Services to Build Navigate applications" on July 29th, 12h00 EST . Please find below the description of the expert session and the registration link. Expert Session: Tailoring Windchill Rest Services to Build Navigate applications Date and Time: July 29th, 12h00 EST Duration: 1 hour Host: Hemant Shadra - Principal Solution Architect Registration Here: https://www.ptc.com/en/resources/manufacturing/webcast/windchill-rest-services-build-navigate-applications Description: Most of the organizations have either already build custom app for ThingWorx Navigate for their business or the plan is at the top of their business strategies. Understanding the challenges and making strategic solutions to overcome those are very important. Many times, out-of-the-box OData services present in Windchill need to be tailored based on the specific requirements. This expert session will cover the customization ar
Hi All, I have written a checkin listener that should set a particular revision number (the iteration is not important) given a certain parameter passed by Creo (it is only done under special and particular circumstances). It only happens with parts and assemblies that are not already present in Windchill. This is the code I am using, QueryResult qr = VersionControlHelper.service.allVersionsOf((Versioned) epmDocument); long branchIdentifier = VersionControlHelper.getBranchIdentifier(epmDocument); String revisionRetrieved = "D"; while (qr.hasMoreElements()) { Iterated iterated = (Versioned) qr.nextElement(); if (iterated.getBranchIdentifier() == branchIdentifier) { MultilevelSeries mls = MultilevelSeries.newMultilevelSeries(epmDocumentMaster.getSeries()); mls.setValueWithoutValidating(revisionRetrieved.trim()); VersionIdentifier vid = VersionIdentifier.newVersionIdentifier(mls); //System.out.println("Inside vid: " + vid.getValue()); VersionControlHelper.setVersion
Has anyone done or heard of a way where WindChill can generate a Creo view mcad compare annotation automatically and attach it to a cad document or WTPart? We are trying to streamline our processes for change documentation. Thanks!
Hi, I'm working on finding and modifying the Hanging/Resulting changes from a resulting object of a change task. I've used an API call to find the resulting objects in a change task. However, I would like to accept/approve the pending/resulting changes on those objects after the change task is complete. There is a couple methods that sets the value of a changeable has a pending change or resulting change to true/false. However, I need to change it's Incorp status. Any ideas on how to programatically do this?
Hello community, hope you are safe. I have a big folder structure and a lot of custom roles. The idea is that 1 folder is only visible for 3 roles, and these roles change in every folder, so is a lot of work. So I created 3 Access Control Rules for every role that must have visibility where I used the option "All except selected participant" and select the option Deny Full Control (All) hoping that this will do the work for all the roles, but it seems that this doesn't work because the 3 ACR don't get along well. For what I see It seems is only possible to have 1 Deny Full Control (All) using the option "All except selected participant" because they cancel or mess the access to the visibility between the 3 roles. I came with the idea to create a set of ACR for every folder and there create 1 ACR for every role removing visibility (a lot of roles and folders), except for the 3 roles that must have access, but I could bet my salary there is a better and faster way to do it. &
Is it possible to get the relations of cascading attributes by API or DB ? according to this article not https://www.ptc.com/en/support/article/CS305741 and I can only find Not supported APIs in Grok
Hi, looking at returning resulting objects from a change task using PersistenceHelper.manager.navigate(Persistable arg0, String arg1, Class arg2 ). I'm not sure what should I use for the String arg1 argument. Hopefully it's possible to retrieve it with that api. I would imagine it would look like PersistenceHelper.manager.navigate(<theChangeActivity>, ?, ChangeRecord2.class) Just not sure what's the correct input there.
Hi all, I am using Windchill 11.0 M030-CPS15 I want to get latest revision of a WTPart using Rest API. I tried to use filter, $filter : latestiteration eq true ;but not getting using this also. eg. A.1 and B.1 and B.2 I only want to fetch the latest i.e B.2 Is there any way to get the latest version of a part through Rest API?
Hi, I am working on some code that would remove the pending change icon from resulting objects when a change task is complete. I am not sure how to get to the pending change of the resulting objects via java/sql query. OOTB, the pending change icon is removed when the Change Notice is complete. However, we would like it to be removed when the change task is complete. In the Change Notice workflow, there's an action to approve the hanging changes (think this is the pending changes) after the entire CN is done. Comes from the api call com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper.approveHangingChanges(CN). Basically want this to be done on the task and not the entire notice. Have some pseudo code below but not sure how to figure out what resulting object has a pending change. public void tasksFinder(changeNotice) { Query to find tasks in CN //Looking for this still //Once task completes, run approvedHangingChanges for each ta
Dear Windchill Community! Given the following structure: >main part >sub part 1 >sub part 1 1 >sub part 2 I would like to publish multiple BOM depending on View version. I set the preference View To Distribution Target Mappings like so: Design:001,Manufacturing:002,Manufacturing X:003,Manufacturing Y:004 When every part is in Design view and I send it to Distribution Target, All the parts are successfully sent to target 001. When I create a Manufacturing View Version from main part (others remain in Design view) and I send it to Distribution Target, I expect that main part to be sent to target 002 and the other parts which are in design view to be sent to target 001. On the preview screen looks like they are separated, but if I actually send it, I get the following error: ESI pre release : ESI ( 801 ) : One or more of the distribution targets associated to "6AAB0
What recommendations for Windchill development code repositories are there?
Hi all, i've tried to call this servlet POST /Windchill/servlet/odata/IE/InvokeIETask with this body { "Task": "com/ptc/windchill/enterprise/report/ExecuteReportTemplate.xml", "Params": [ { "Name": "object_ref", "Value": "wt.query.template.ReportTemplate:6852467828" }} ] } now I need to change the report criteria directly from the API. I tried to add a parameter but it doesn't seem to work. For example (but it doesn't works) { "Task": "com/ptc/windchill/enterprise/report/ExecuteReportTemplate.xml", "Params": [ { "Name": "object_ref", "Value": "wt.query.template.ReportTemplate:6852467828" }, { "Name":"where", "Value":"((Associated Part.Latest Iteration equals 1) AND (Part Master.Number in 1234))" } ] } Where can I find documentation? what is the correct parameter?
Hi, When I trying to add alias attributes subtypes not working but the same work on when created in OOTB types. How to resolve this? Any Ideas Please?
I am writing a rest service to get users based on a filter. Along with filter I need to fetch the users based on some conditions, and hence need to write a custom hook. Following is my JSON: ContextCreations.json { "name": "ContextCreation", "collectionName": "ContextCreations", "type": "wcType", "wcType": "wt.org.WTUser", "description": "get Users", "operations": "READ", "attributes": [ { "name": "Name", "internalName": "name", "type": "String" }, { "name": "FullName", "internalName": "fullName", "type":"String" }, { "name":"Email", "internalName":"eMail", "type":"String" } ], "actions": [], "navigations": [] } Following is the .js file (ContextCreations.js) function readEntityData(processorData){ var customAPI= Java.type('ext.api.CustomAPI'); customAPI.test(); } We have configured custom domain and its working fine as other POST APIs are working fine. I am calling the above code with http GET a
Hello, Is it possible to prioritize the view of the BOM when generating ESI response xml. For example, if I have two views of the part, one Design View and one Manufacturing view, and both views' object is added to the change notice resulting objects, publish only Manufacturing view BOM and do not include Design view BOM in the response xml ? Thanks in advance. Regards, Sha
Hi, Im trying to make a very simple workflow to manage a sort of data submission queue for 3D printing. I need to send an email to the creator of the Document when the queue manager changes the state of the document to "complete", I have the email trigger set up to send to "creator" but that only send to the person changing the state, I cant see an obvious way to send it to the priarybusinessobject "created by" user, how can I get this info and hook it into the workflow notification?
Hi Team, Can we make sure that role name gets displayed in the process status column instead of ASSIGNEE If yes what should be done ? This has to be applied if we assign the task to an individual user or a group This is happening on both task and as well as process status table
So I have the following code which is a query that should return me a result of WTDocuments with an identical iba value to an iba value in part. But I’m not getting any results thought the sql query that the statementspec calls returns a result. Can you help me understand what I am doing wrong and also what is a columnaccesscontrolitembuilder and how do I remove it. SQL Query from StatementSpec : (yellow I think is the culprit but not sure what that is) SELECT A0.*,wt.pds.ColumnAccessControlItemBuilder@7e17cd6 FROM wt.doc.WTDocument A0,wt.iba.value.StringValue A1,wt.iba.definition.StringDefinition A2,com.ptc.core.lwc.server.LWCIBAAttDefinition A3 WHERE (A3.idA3A7 = A2.idA2A2) AND (A1.idA3A6 = A2.idA2A2) AND (A1.idA3A4 = A0.idA2A2) AND (A3.name = 'ICS_NUMBER') AND (A1.value IN '1234567') AND (A0.branchIditerationInfo IN (SELECT MAX(A0.branchIditerationInfo) FROM WTDocument A0 WHERE ((A0.idA2A2 = A0.idA2A2)))) SQL query : SELECT A0.* FRO
Hello! I am implementing Windchill Options and Variants capabilities, As a result of a Configure action I want my new variant WTPart to have the same name attribute as my generic WTPart. How can I implement that in the OIR? Thanks!
Hello, Why is DeletedParts options are available in ESI Response file? Does it get enabled in any way or is it just a place holder ? <DeletedParts NAME="DeletedParts" TYPE="Unknown" STATUS="0"></DeletedParts> Thanks, Sha
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.