Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Hi, If there is a Custom API Developed in Windchill, where does it show in the WRS? Thanks,
Requirement is in Report I want same structured Description as I have on CN : --> I have Description on CN like :This is New CN to make Changes in Part ,• Do the Proper Marking on Parts• Update the associated parts as well --> Output I am getting after using that API is :<p>This is New CN to make Changes in Part ,<br clear="none" />• Do the Proper Marking on Parts<br clear="none" />• Update the associated parts as well</p><p> </p> --> For that I am using below API but it is not working as expected : HTMLTextFilter.filterHTMLText(cn.getLongDescription().getRichText().toString(),"com/ptc/core/richtext/jasperrichtextfilter.xsl", true, false);
I have project object with me and how can get plan from the project object in windchill. is there any api to this ?
Created a custom action however its currently being hidden.
Version: Windchill 12.0 Use Case: Need help completing my bash script to compile java files. Currently having issues with windchill class not found exceptions, I believe I need to include the .JAR files into the classpath, but am not sure how to do so.Description: Here is what I have written so far, the javac $file command is leading to class not found exceptions since I haven't included the JAR files: I saw this article that briefly talked about how to do https://www.ptc.com/en/support/article/CS324171 But I am using more than one jar file, probably about 50 in total. Need help figuring out what to do with them.
There are various API variations, such as POST, PATCH, and GET, for attachments in WTDocument within the REST APIs in WRS to perform operations on the document. My question is: Can we access the attachments in the drawing located in CADDocument through WTDocument? If so, can we replace the document there, such as a PDF file, with another file? If we can do this, how do we establish this connection?
Version: Windchill 12.1 Use Case: Uploading CAD documents generates a sequence (00001234) number instead of name.Description: Our windchill system has always been setup such that any files that dont auto associate to existing parts are assigned a 10 digit sequential number. How do I change it so that files checked in are are given a number the same as the model - ASM001.asm associates to a part with the number ASM001 instead of 00001234?
How can I download primary content throug API? We are building an internal tool and are trying to extract EPM Document primary content and metadata from Windchilll PDMLink 13.We've tried with REST API, but could only extract metadata, without primary content.Can anyone point me to the right API that can be used for this purpose?We are also planning to create CAD Documents/Upload Primary content to them, so that is also something that we need to work on. Any kind of advice will help.
Version: Windchill 12.0 Use Case: Requirement : Need to set Release Target Programmatically for Resulting Objects.Description: setTargetTrasition() is there but not getting a way to set Release Target.Currently I have CN , CA and when I try to get change Record that time getting class cast exception for any object.
Version: Windchill 12.0 Use Case: Need to add logic to set the subtype of the wtpart based on an attribute value selected by the user on the save-as page.Description: Is it possible to get the attribute values selected by the user on the save-as page in the CopyWTPartDelegate? I have successfully extended the default CopyWTPartDelegate with some custom code, but I can't figure out how to get a string value that the user enters/selects on the save-as page for an attribute and use that value in my CustomCopyWTPartDelegate.Article https://www.ptc.com/en/support/article/CS28799 states that custom attributes can be set on the save-as page since 12.0, and I have confirmed it. I have also seen that a listener approach may not work for this purpose: https://www.ptc.com/en/support/article/CS408331. I haven't tried it yet.
Hello,can anybody have a hint of what am I doing wrong? I am trying to create subfolder in the Windchill, using Postman application but all I got is the message "The syntax of the JSON document is not valid.".The query is POST:https://<myserver>/Windchill/servlet/odata/v5/DataAdmin/Containers('OR:wt.pdmlink.PDMLinkProduct:169546')/Folders('OR:wt.folder.Cabinet:169590')/Folders('OR:wt.folder.SubFolder:248107')/Folders and the body is: (the example is from WIndchill REST Guide 2.4 page 466.{ "Name": "NewFolder", "Description" : "Desc",} the headers are: Also, Authorization is done using wcadmin account.I tried different data in json body but without luck.Does anyone have a clue what is the problem? Best regards!
is there any api to get only parts which are present in part structure tab or any other way if api is not present. for reference see the pic attached below.
Version: Windchill 12.1 Use Case: I need to gather user inputs in a Wizard. Description: Thanks to @avillanueva and @BjoernRueegg and this post https://community.ptc.com/t5/Windchill-Customization/Likely-very-simple-question-about-input-on-wizards/m-p/865207#M1969%3Fsource=search I am in the process of creating my own AttributePanelConfig. My problem is that I can't find the right combination of ComponentType so the label and the input are aligned horizontally. So far all I can get is aligned vertically. Screenshot of what I am getting: and screen shot of the ootb New Part wizard attributes, note the Label and the input are aligned horizontally, which is how I want mine to look like: The following is what I am using for buildComponentConfig() and buildComponentData() @Override public ComponentConfig buildComponentConfig(ComponentParams params) throws WTException { ComponentConfigFactory factory = getCo
Is there a way to update a PDF in a CAD document with a PDF in a drawing using a REST API in Windchill? If so, which API should I use? Could you provide me with information on this?As an example, how can I update the PDF indicated in the image?
is there any helper classes for BaseLinedPlan and BaselinedPlanActivity in windchill
Hi avillanueva, Hi took Affected Objects from getChangeablesBefore(); but now I am facing an issue to get On Order, Disposition comment Work in progress and Finished. To take get these values I am using AffectedActivityData affectedActivityData = (AffectedActivityData) Object; but its not working. Please help .
Version: Windchill 12.1 Use Case: Fetch all the Family Table data corresponding to a given Generic/Instance CAD part.Description: We want an Windchill API to fetch the cell values of a FamilyTable/FamilyTree corresponding to instance/generic CAD document.
Use case: I have a Part Structure. I want to add all the Parts and associated EPMDocuments available in the structure, Add the structure into the workspace and then do check out all the EPMDocuments from the workspace. What i did :private void checkoutDocument(EPMDocument document) throws WTException, WTPropertyVetoException {try {System.out.println("Checking out document: " + document.getNumber());if (!WorkInProgressHelper.isCheckedOut(document)) {// Get the current user's checkout folderFolder checkoutFolder = WorkInProgressHelper.service.getCheckoutFolder();// CheckoutLink chilink = WorkInProgressHelper.service.checkout(document, checkoutFolder, "Check out comment");CheckoutLink chilink = WorkInProgressHelper.service.checkout(document, checkoutFolder, WorkspaceName)wt.epm.EPMDocument wrk = (wt.epm.EPMDocument)chilink.getWorkingCopy();System.out.println("Document checked out successfully: " + wrk.getIdentity());} else {System.out.println("Document is already checked out.");}} ca
Hi All, I'm tyring to catch event when windchill user login into system so I have used below API its not trriggered in WC-12.1 versionSessionUserAuditEvent.LOGINany new API's available? Thanks,VR
Good evening,I'm having trouble understanding the process of updating an IBA of an EPMDocument.I'm trying as it follows:attributes.put(attributeName, attributeValue);PersistableAdapter epmObj = new PersistableAdapter(epmDoc, null, null, new UpdateOperationIdentifier());epmObj.load(attributeName);epmObj.set(attributeName, attributeValue);EPMDocument obj = (EPMDocument) epmObj.apply();PersistenceHelper.manager.modify(obj); However I didn't get any changes on the attribute itself. I'm guessing that in this case I need to checkout the EPM and do the changes on a working copy of it to persist the changes.However reading the documentation and other topics I haven't found a clear flow to check-out--> set the attribute and then check-in the object. Can someone give me a hand on this if possible? Thank you kindly for your support
I'm working on enhancing our PDM web services in Windchill to allow updating the "Exemple" attribute of Customer Items.Specifically, we need to create a new web service method that can update this attribute for Customer Items in the "Created" state. The service should support both full and partial updates of the "Exemple" attribute.Does anyone have a solution for this,Thanks
I need to customize the column length for Wt part .I have followed the steps from this link -Customize column length . At the last step it has been mentioned that , we need to execute all those relevant queries in DB. My question is that do we need to manually execute those queries in database or Is there any ways that automate that execution.
Hi , Do we have api to get associated Change notice from WTPart ?
Hello,I would like to know what does the following options are doing:"WFDisplayProEAttributes=false" and"WFDisableNonProEIBAs=true"saved in cadxcommon.properties. ThanksKristof
Version: Windchill 12.1 Hello, I want to automatically create a Promotion Request for the documents reviewed within the Change Review. I have achieved this with the code shared below. However, since I have not defined any workflow process in the Promotion Notice, no workflow starts. For this, I reached the method shared below. However, I cannot figure out how to obtain the WfProcessTemplate. I have the name and ID of this template, but I couldn't retrieve the template using them.Code for creating the Promotion Request: wt.pom.Transaction trx = new wt.pom.Transaction(); wt.change2.WTChangeReview changeReview = (wt.change2.WTChangeReview) primaryBusinessObject; // Retrieve the container from the ChangeReview object wt.inf.container.WTContainer container = changeReview.getContainer(); wt.inf.container.WTContainerRef containerRef = wt.inf.container.WTContainerRef.newWTContainerRef(container); // Retrieve the affect
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.