Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
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上。
Version: Windchill 11.1 Use Case: Is It remove/hide the attribute based on the value of other attribute while Creating WTPart and Editing WTPart?Description: Is It remove/hide the attribute based on the value of other attribute while Creating WTPart and Editing WTPart?
Version: Windchill 11.2 Use Case: Restricting auto numbering for part creation in windchill rest api.Description: Im trying to create a WT part file using rest api.I'm able to create that without providing number property in the request .The part file is created with number generated from windchill. But when I try to provide a value for the property number in the request ,it throws validation error.Can you help me with creating a part file with any number provided in the request.Error message for reference:{ "error": { "code": null, "message": "The value for Number cannot be changed." }}
Hi Folks,I'm a mechanical engineer, and wanted to learn the Windchill Data migration and Customisation process.Please let me know if PTC has some courses, or as mechanical engineer, what new things I need to learn to fullfill the requirements for Windchill data migration or Customisation Engineer. Thank you in advance 😊
Version: Windchill 11.1 Use Case: Uploading large files using windchill rest api Description: Hi , I'm trying to upload a large files in windchill using rest api. I'm not able to upload large files using rest api . Is there any ways to upload large sized files .But when I try the same request using postman, the content gets uploaded. Is there any ways ,other than file path in the upload section, can we provide chunks of files that combine all those chunks into single file.
Hello, I would like to use Apache Maven as a development platform for my Java projects (Windchill customizations). It seems that the structure of Windchill Java libraries and codebase is quite specific. I am looking for some tips on how to represent Windchill codebase as Maven artifacts. Has anyone tried to develop custom Windchill applications in Java using Apache Maven? Would you share your experience? Thank you in advance Michal Palicka
Version: Windchill 12.1 Use Case: We need to create attribute in which we need to store value if Source have update to date image or not . For storing value , we need trigger point . We need event which listens when HDIC conversion takes place from CATIA to creo. Description: We need to create attribute in which we need to store value if Source have update to date image or not .For storing value , we need trigger point . We need event which listens when HDIC conversion takes place from CATIA to creo.
I'm looking to create a custom REST service that performs the same function as my current SOAP service in Windchill 12, which retrieves the Windchill version. Can anyone provide guidance on how to achieve this. Here are some details : This link below shows the steps to create a custom REST service in Windchill.https://support.ptc.com/help/windchill_rest_services/r2.5/en/#page/windchill_rest_services/WCCG_RESTAPIsCustomizingExamplesCreateDomain.html# My code is a JSP-based SOAP service that retrieves the version of Windchill installed. It imports necessary Java classes, creates an output group, and attempts to fetch the Windchill version using WindchillVersion.getInstalledAssemblyReleaseIdFor("wnc"). If successful, it adds the version string to an element and then to the output group. The final part uses an InfoEngine webject to return this group as the SOAP response. This service ensures that the Windchill version is retrieved and returned in a structured format.I attemp
I have custoom wizard in which I implemented MVC table. This table is having objects which are belonging to a custom POJO class. I want to retrieve values for each column (each column is aa POJO attribute). Once I get those all column values, I want to create an object of WTDocument type.I tried with objHandle but not succeeded. Can anyone help me with process of this implementation ?
{ "access_token":"RsT5OjbzRn430zqMLgV3Ia", "expires_in":3600 } @HelesicPetr
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.