Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Has anyone created a folder subtype so that it can have different attributes in a specific context (presumably also it's own OIRs?)? There's plenty of discussion on CAD Document subtypes and WTDocument subtypes... I don't see anything on Folders in any documentation. For context: A particular product context has some custom type attributes that we agreed would be best served at the Folder level. I can add the appropriate attributes and make them searchable but that impacts ALL of the folders. So at creation of a new folder all of the users would then see the custom type attributes that are intended just for one product. So my thought was that I'll just make a folder subtype and have that be the default for the particular context. But, alas, there aren't OIRs for a folder so... how do I make it default for one context and not for the whole site?
Writing code has always been something that David Graham has enjoyed. Coming from a Mechanical Engineering background, this developer consultant has always had an interest in figuring out what a customer wants and how to get there, thus specializing as a Windchill Expert to make it happen. “All this code writing is just solving a puzzle,” said David. “There’s a lot of interesting problems to be solved.” David Graham is currently retired but worked for PTC from 1994 to 2001. As an active member of the PTC Windchill Community, David takes the time to network with other developers and will post solutions to roadblocks others may have. You may have read some of his posts on Windchill workflows. Beyond the PTC Community, David consults on Windchill with clients. When writing code, he might take an out of the box workflow in Windchill and assist a company looking to automate by customizing it to fit their needs. When it’s done, it likely does not resemble the
Hello all, hope you are well. This is the scenario: I have a Product template with a folder structure created. Also I have a workflow where in some task the user has to save a document in a predetermined folder. Right now what I did is to put the location in the Instructions task: something like this: You have to create a document in the folder Product name>Folder1> Folder 1.1 > Folder 1.1.1 .... But I would be nice that the user just have to click that location and another tap open in the right folder. Someone knows if is possible inserting a variable? Thanks in advance for reading this post or writing any idea. Luis
Hi all,I have a requirement of driver and dependent attributes which is based on selection of one value from combobox other attribute values should get populated. I'm referring to this solution https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS64401.So I have created a data utilities class which is mapped to my driver attribute. And from that I can able to call my javascript function which I have added in jsp page.And that onchange validation also working fine. But my javascript function is not changing the value of other attribute.Here is my javascript function.<script type="text/javascript"> function customChangefunction(){ var target = window.document.getElementsByName("resultCombo"); var src = window.document.getElementById("sampleCombo"); var strUser = src.options[src.selectedIndex].value; alert(strUser); var colours = new Array('Black', 'White', 'Blue'); var shapes = new Array('Square', 'Circle', 'Triangle'); var names = new Array('John', 'David', 'Sarah'); switch
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?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.