Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
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
I pass the value to the Delete-object query in InfoEngine in a loop. If an object is successfully deleted, the loop moves to the next value. However, if a value fails to delete, the loop exits. I need a solution to ignore any failed deletions and continue to the next value, ensuring all values are processed through the loop
Version: Windchill 12.1 Use Case: I want to create a Document with Windchil REST Services 2.5. I used the PTC Document Management Domain with POST /Documents.Description: By using the Body of the example from Creating a Document (ptc.com) { "Name": "TestDoc1", "Description": "TestDoc1_Description", "Title": "TestDoc1_Title", "Context@odata.bind": "Containers('OR:wt.pdmlink.PDMLinkProduct:48788507')" } i recieveError: 403{ "error": { "code": null, "message": "Windchill type is not instantiable" } }Any ideas that can help?
Version: Windchill 12.1 Use Case: How to check WTPart if which is don't have parent using Info-engineDescription: How to check WTPart if which is don't have parent using Info-engine
Version: Windchill 12.0 Use Case: I want to perform Custom code deployment from source Windchill system to a new windchill environment, where I have the custom java files stored in WTHome\src directory. Also the custom configurations like loadFiles and workflows and templates to be deployed to target. I'd need help with steps to prepare Build.xml and create a .jar file and how to deploy it to target system Description: Required help with the steps to perform the ant script and build deployment on WIndchill 12.0
Version: Windchill 12.0 Use Case:I have custom MVC table with some pre-defined columns. I want to add one more column which is uploadContent i.e, it swould be similar to add attachment so that user should able to browse particular file and add it to this table columnDescription: Hello Community, I have custom MVC table with some pre-defined columns. I want to add one more column which is uploadContent i.e, it swould be similar to add attachment so that user should able to browse particular file and add it to this table column
What stack does Winchill run on?I've always assumed Struts and Spring but not really sure.
Hi Guys,One WT Part with CAD is assciated each other if i change the attributes in WT Part not updated in CAD. How we can over come this issue. [First time which i enter that value and attributes came in CAD, but only thing edit in WT part is not updated in CAD] Regards,AJ
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.1.0Windchill12: API for create Reusable Attributes and Global Enumerations then link with Type and Parts Link.Windchill12 如何使用API的方式创建可重用属性、全局枚举,并且应用于类型WTPart上和PartsLink上。
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.