Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
I just created a report to list all part instances (using wt.part.WTProductInstance2). The report works fine as the admin, but when I run as a user I get the following error. ERROR: Access is restricted for this user. Nested exception is: wt.query.template.invalidQML.exception. Access is restricted for this user. I have a report admin group generated to give permissions (https://www.ptc.com/en/support/article/CS292726) but users still cannot run this report. Any ideas?
Using WC 12.0.2.7, I am trying to auto-create and link change objects at various levels (PR to CR, CR to CN, etc.). I have searched the community for examples and found one called "Create Change Request from Problem Report and Default to same Container" that seemed to have some useful code, but the linking between the CR and CN in the example used the older model of linking. wt.change2.FormalizedBy fb = new wt.change2.FormalizedBy();fb.setChangeIssue(ci);fb.setChangeRequest2(CRNew2);wt.fc.PersistenceServerHelper.manager.insert(fb); I cannot find examples of the newer objects used for linking (ChangeProcessLink?). Does anyone have an example? Related question: Does anyone have the most recent JavaDocs available from PTC (or can anyone tell me where to get them)? My copy appears to have many gaps (such as the "insert" above call which does not appear in my docs on the "PersistenceManagerSvr" interface used in "PersistenceServerHelper.manager").
I wanted to override the code which is getting invoked after clicking on ok button of the revise action
Does anybody have any good information or documentation about Partslink Classification and reuse. I want to suggest my company use this to help classify parts, but I need good documentation to sell them on the idea.
How to set a default value for the "Target Promotion State" attribute of the New Promotion Request WizardIs it possible to set a Default Life Cycle State for Target Promotion State attribute while creating a new Promotion RequestIs it possible to set a Default/pre-defined value as Released for the Target Promotion State as it appears blank/empty with a dropdown while creating a new Promotion Reques
My Requirement is to read a (CR)text box value, when Clicked to fetch the values, I have to show a Dropdown list of (CN's) associated to it. I'm just trying to read the values first. <html> <head> <script> var request; function sendInfo() { var v = document.vinform.t1.value; var url = "http://Server/Windchill/servlet/odata/v1/ProjFolder/EndpointName?%24count=false"; if (window.XMLHttpRequest) { request = new XMLHttpRequest(); } else if (window.ActiveXObject) { request = new ActiveXObject("Microsoft.XMLHTTP"); } try { request.onreadystatechange = getInfo; request.open("GET", url, true); request.send(); } catch (e) { alert("Unable to connect to server"); } } function getInfo() { if (request.readyState == 4) { var val = request.responseText; document.getElementById('amit').innerHTML = val; } } </script> </head> <body> <marquee> <h1>This is an example of ajax</h1&g
I was creating a WTChangeRequest2 with the below code mentioned WTChangeRequest2 ecr = createChangeRequest();WTSet links = new WTHashSet();int count1 =0;createdDocs.stream().forEach(e->{Changeable2 co = e;RelevantRequestData2 relevantRequestData;try {relevantRequestData = RelevantRequestData2.newRelevantRequestData2(co, ecr);relevantRequestData.setDescription("some description:"+count1);links.add(relevantRequestData);} catch (WTException | WTPropertyVetoException e1) {e1.printStackTrace();}});ChangeHelper2.service.storeAssociations(ecr, links); @HelesicPetr
Hello, I have a below requirement, request you to shed some light on how the same can be achieved. i) There are two IBAs loaded at WTPart level, let's say IBA1 and IBA2.ii) If a specific value is selected for IBA1, IBA2 must be populated with an auto generated number similar to what we do for WTPart number generation. I want to know the feasibility to achieve the above requirement by modifying the OIR of the part, since it would require less customization as compared to developing a data utility. Thanks,Hari
My requirement is to export part structure with some details.It should be dynamic as per custom view - columns selected by userI wanted to read part structure as is line by line with same order how it works in ootb export actionIf anyone aware of this API to read table data. Please reply hereThanks
Hi there, the default behavior of windchill is, that if somethings goes wrong during checkin process, the checkin comment is lost.So I tweaked <Windchill-installation>\codebase\templates\uwgm\cadx\checkin\checkintables.js a little to make a copy of the comment to a new window like: var comment_window = window.open(); comment_window.document.writeln(comment);(I intentionally left all code out, which "prettifies" the new window) works great! Now I want to copy the comment directly to the clipboard.But when I try this// copy comment to clipboard navigator.clipboard.writeText(comment) .then(() => { alert("successfully copied: " + comment); }) .catch(() => { alert("something went wrong"); }); I get the error under Creo 8.0.6.0, "checkintables.js Uncaught TypeError: Cannot read properties of undefined (reading 'then')" What am I doing wrong?
I would like to add some inputs to my promotion request approve task. There are comment inputs and vote inputs.... but I wanted to add a could of boolean attributes (radio buttons would be nice) for common reasons for rework. Then, I can collect report data about why Promotion requests are being sent back for rework.Missing DimsNotesGD&TDesign IssueStuff like that. I thought I saw an article that says it's not possible but want to ask the community if they think otherwise or have an alternative solution. The referenced buzz kill...https://www.ptc.com/en/support/article/CS310508
how the Windchill BOM will work, If we choose different part numbers. What will be compared in the result ?
Is it possible to have a view in the workspace that displays the objects as a structure?Basically with the same options I have in the sava interface with name, rename or change state.(see attach) Matteo.
can we have two Data Utility functions for the same attribute(datautility for making attribute multivalued and Picker datautiliy)?
I dont know if i am right, but i wanted to get new chooseable Lifecycle Statuses. So i created new OIR, but it doesnt work.
HiWe have a number of customization api's running in Windchill that take effect when promotion occurs. As this is generating a fair amount of logging I decided to put this in a separated log file.I use next configuration for this (log4jMethodServer.properties):This creates also a log file for both method server processes (javaMS.exe) and one for the background method server (avaBGM.exe). The loggers with id 21024 & 14912 are method server logs that I do not want. The are empty too.What am I doing wrong to get these extra logfiles for the method servers? I am only interested in deriving the output from original the BM method server to the CustomLogger.
Is it possible in Windchill to prevent the download of additional files pdf, dxf, dwg (see image 2.png) of a representation?I found in the support an article https://www.ptc.com/en/support/article/cs49421 which reports to the policy on the derived image object.If I apply it and deny the download, the representation is no longer displayed and I cannot open it with creo view.(see image 1.png) What other ways are there?Ty,Matteo.
How can we use InVokeIETask present in PTC IE Domain to call custom task present in windchill for large structures or for multiple entries?By using the below payload I am running this task for one transaction, but since one structure can contain more than one transaction so how we can execute that by using this task?URl ;- https://plmint2.wc-sbx.aws.gpdm.fresenius.com:443/Windchill/servlet/odata/v1/IE/InvokeIETask?%24count=false Payload :-{"Task": "ext/fmc/integrations/outbound/FMCPostResult.xml","Params": [{"Name": "ObjectID","Value": "OR:wt.part.WTPart:1267727:996621537-1568871449895-1742235652-89-7-31-172@plmint2.wc-sbx.aws.gpdm.fresenius.com"},{"Name": "ObjectDescription","Value": ""}, {"Name": "Class","Value": "com.ptc.windchill.esi.Part"},{"Name": "Action","Value": ""}, {"Name": "TargetID","Value": "SAP16"},{"Name": "TransactionID","Value": "233"}, {"Name": "Successful","Value": "true"},{"Name": "Subtransaction","Value": "false"},{"Name": "Message","Value": ""},{"Name":
I have a requirement where, when a form from JSP is submitted from the JSP page in windchill, all the values from the form has to be retrieved and populated in the FormProcessor. @HelesicPetr
Is it possible to disable the publish to a Distribution target if the Part is in a particular lifecycle state?e.g- Part A.1(Version) Approved(Lifecycle State) --> Should publish to DT1Same part when flows to Released lifecycle state should publish to only DT2 and not DT1e.g- Part A.1(Version) Released(Lifecycle State) --> Should publish to DT2 only and not to DT1 Does anyone have an idea how this can be implemented? Because Windchill does not allow to remove the DT1 through API in Released state as there is no change in part Version and the part is successfully published to DT1 in Approved state.
Unable to Edit or Modify existing Notebook entry WIndhcill 10.2 There is no options under the Actions button, only copy and collapse. When I right mouse click on the a General Link or Hotlink Only see the view information icon. I thought I should be able to delete or add local file etc.... Any ideas - I am looking at PTC Article CS129909 which seems to suggest no fix in this version of Windchill. Is that correct or I am missing somethgin regarding the Access Control Policys.
Is it somehow possible to add certain libraries to a project on creation, so it you don't have to do it afterwards manually. Here I am thinking of formats, templates etc. When I am creating a part in a project it wont read the template in my library it only works if i am in a product. I get this meassage example when i try doing it in a project:wtpub://PLM/Libraries/System/Formats/a3_rd8.frm|v=A.1' cannot be retrieved.'a3_rd8' does not exist in the database.
Does anyone know how to disable the windows that pop up when doing some actions like saving and uploading? These notifications pop up at the bottom right corner of the cad tool.
Curious if anyone has done this. It would be nice in PartsLink as users search for parts to know if there already exists a CAD model for that Part. This can be a simple Boolean but I am not sure alias or calculated attributes can work here. Has anyone does something like this or have a similar approach? I am sure a listener can be used to calculate this value as the Part is checked in. Since CAD associations need to be modified with Part modification, it would be straight forward to add in this value setting on the way in. Listeners can get complicated when the Part object changes midstream causing stale object errors.
Hi,I need to export Creo assembly multilevel BOM from Windchill programmatically. I checked IE task Query-Tree and REST Call PTC.CADDocumentMgmt.GetStructure. Both produce correct multilevel BOM, but the same Creo components in BOM are not merged (per level), so the same Creo components are listed multiple times and all quantities are equal to 1. On the other hand, running Query-Tree on WTPart does produce correct quantities in multilevel BOM.In both cases I run an equally structured IE task, the only difference was Type. Do I miss some parameter in IE task to produce quantity for EPM Document or is not possible at all?Any idea is very welcome.Thanks.
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.