Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Hello Everyone,I am trying to extract the BOM of an assembly in windchill through REST APIs. However, since I am unfamiliar with what attributes to pass in the body of this post request, im running into error 400s.Here's what I have done so far:I have the following assembly item: { "CreatedOn": "2024-06-13T02:09:02+05:00", "ID": "OR:wt.part.WTPart:112282", "LastModified": "2024-06-13T02:09:02+05:00", "AlternateNumber": null, "AssemblyMode": { "Value": "separable", "Display": "Separable" }, "BOMType": null, "CabinetName": "Default", "ChangeStatus": null, "CheckOutStatus": "", "CheckoutState": "Checked in", "Comments": null, "ConfigurableModule": { "Value": "standard", "Display": "No" }, "CreatedBy": "ahsan", "DefaultTraceCode": { "Value": "0", "Display": "Untraced" }, "DefaultUnit": { "Value": "ea", "Display": "each" }, "EndItem": false, "FolderLocation": "/GOLF_CART/Design", "FolderName": "Design", "GatheringPart": false, "GeneralStatus": null, "Identity": "Part - GC00000
I created the attribute called customer name inside the WTDocument. the value of the attribute should be updated once the activity get completed. i wanted to add the dropdown list inside the workflow activity task page, It contains some customer names like A, B C, D based on the selection of the user from the dropdown list it should be persist into the customer name attribute.please help me to solve this. if some have any code snippet please share.
Version: Windchill 13.0 Use Case: I've created a first version of a project that uses the Windchill API to export a .pdf file from a .drw using this URI: /Windchill/servlet/odata/v3/CADDocumentMgmt/CADDocuments('OR:wt.epm.EPMDocument:201731655')/Representations EPMDocument:201731655 was known previously.Description: Is there a way to retrieve a list of all EPMDocument (only .drw ones) versus Drawing Numbers? I am asking it because I need to generate .pdfs from .dwgs in batches.
Version: Windchill Below 11.0 Use Case: Create Problem Report > Add affected objects(add more objects) > add comment to each affected object > Click on Finish to create the PR. Issue is not with 1 or 2 affected objects. When we have more number of object in affected object tab, then the issue reproduces with comment missing for few object in list.Description: Navigate to Product, select more objects(selected 35 objects), add comment for all and create Problem Report. Once the PR is created, go to related objects tab, and check the list. For some affected objects, the comment is missing in the table. Refer screenshot. Got the PTC article, https://www.ptc.com/en/support/article/CS346216 As mentioned in PTC article, checked the custom-action.xml file, for create PR action.<action name="create" uicomponent="CREATE_PROBLEMREPORT" ajax="page" afterJS="PTC.wizard.saveTableData.writeAllTableRows"><command class="ext.thales.palma.change.nc.forms.CreatePalma
Version: Windchill 12.1 Use Case: (1) Manually update option set-related information based on BOM information defined in other systems. However, this is not a realistic answer considering the frequency and accuracy of data updates. (2) Implement by customization by Info*Engine. However, it is necessary to use unsupported option set related classes. Since classes related to option sets are not supported, there is a possibility that the functionality will be removed when Windchill is updated. TMC(Toyota Morter Corp.) is in the process of implementing Windchill BOM (EBOM/MBOM/BOP) for production use in April 2025. Currently, TMC designers are using "TMC's own system" to perform tasks equivalent to "defining BOM information. The TMC designers are currently using "TMC's own system" to perform tasks equivalent to "defining BOM information. In the future, TMC plans to use Windchill to define BOM information. However, due to the business process changes involved, this is not expected to
Hi,The use case is customer wants to hide all the previous versions/revisions of WTPart for user allocated to a particular role. i.e. Just latest revision should be visible to user in specific role.Is there a way we can try to achieve this.Any reference would be appriciated. Regards,Durga.
Version: Windchill 12.1 Use Case: I want to created a custom JSP page for workflow task. please share any details how to achiveDescription: I want to created a custom JSP page for workflow task.please share any details how to achive
I am using Windchill PDMLink Release 10.1 and Datecode with CPS M010 Due to business needs, we customized a button to rename documents. In the code logic called by this button, we temporarily set the session user as an administrator through SessionHelper.manager.setAdministrator, and then execute the renaming API - WTDocumentHelper.service.changeWTDocumentMasterIdentity, but the code execution reports a permission error.According to our understanding, the administrator should have the authority to rename the document. So we are very confused, can you help us solve this problem? Thank youHere are the errors that I faced 2024-06-24 10:23:13,314 INFO [ajp-bio-8010-exec-1] wt.system.out user2 - CommonUtil.java.3163: 重命名失败!Message: Resource bundle/Message key = wt.vc.vcResource/55 2024-06-24 10:23:13,325 INFO [ajp-bio-8010-exec-1] wt.system.err user2 - (wt.vc.vcResource/55) wt.vc.VersionControlException: H-ZJ-188, JSZJ_00087886 可能不允许更改其标识。只有当此项未被检出并且您具有所有版本的 修改 权限时,才可以
Hello Everyone, I'm working with Windchill 13.0 and need to add a simple action button to the Windchill interface that can call my custom API functions. Here’s what I want to achieve:1) Add a button to the Windchill UI.2) When the button is clicked, it should trigger a JavaScript function that calls a Windchill OData API.Here’s an example of the API function I want to call(will be using a java version of this function): async function getParts() {const apiUrl = "http://windchill.gosaas.io:80/Windchill/servlet/odata/v6/ProdMgmt/Parts?$count=false";const username = "ahsan";const password = "Tartan123";const basicAuth = 'Basic ' + btoa(username + ':' + password);try {const response = await fetch(apiUrl, {method: 'GET',headers: {'Authorization': basicAuth,'Content-Type': 'application/json','Accept': 'application/json'}});if (!response.ok) {throw new Error(`HTTP error! status: ${response.status}`);}const data = await response.json();return data;} catch (error) {console.error(
Version: Windchill 13.0 Use Case: A checked-in CAD document in Windchill not retrieved using the ODATA REST API.Description: Hi,I'm new to the REST API and I'm trying to get a checked-in CAD file using the ODATA REST API.I'm using the swagger interface: The Get Documents method in the CAD Documents section, but all I get in the JSON response are the template files and not the file that I checked in.Why can this happen and how can I fix it?Thanks!
Hi, to execute jasper report from input jsp page I am using the following API- ReportHelper.manager.getThirdPartyReportExecuteUrl(reportRef,parameters); Here, the reportRef should be of type ObjectReference and should refer to a Windchill report object. However the object that I get from the jsp page using the request.getParameter("oid") is of type WTDocument. Now, when I try to send this object in the above API , it gives the error-java.lang.ClassCastException: class wt.doc.WTDocument cannot be cast to class com.ptc.windchill.enterprise.report.Report (wt.doc.WTDocument and com.ptc.windchill.enterprise.report.Report are in unnamed module of loader 'app') Kindly suggest on how to resolve this.Thanks,Ramsha
Hello, for one of my customers I've created a wizard step with some change validation info.the data is arranged in a flat tree structure which is displayed in the treetable component.See attached example screenshot.One requirement is that non "green" checks are auto expanded for the user. I tried to implement it as described in the customizers guide, but so far no luck. The TreeTable component uses a custom AbstractConfigurableTableBuilder with an custom ExpansionStateManagerthe table config looks like this JcaTreeConfig treeCfg = (JcaTreeConfig) factory.newTreeConfig(); treeCfg.setDataSourceMode(DataSourceMode.DISABLED); treeCfg.setType(Object.class.getName()); treeCfg.setTargetObject("origObject"); treeCfg.setComponentMode(ComponentMode.VIEW); treeCfg.setActionModel("tcw tcwValidation table"); //treeCfg.setMenubarName("tcw tcwValidation table"); treeCfg.setId(TCW_TCWVALIDATION_TABLE_ID); treeCfg.setLabel(WTMessage.getLocalizedMessage(TCW_RESO
My requirement is to search the user from Workflow Task > Resource pool .ResourcePool for a specific Task has the role and Groups Mapped . I need to Search the user by UserName in groups only that are allocated to the Resource Pool for that Workflow Task .I could find the Users and return the List of Users from The Context team and specific Role . However , Challenge comes , when user had to search for a User which is not a member of Group .Is there any API , I can Use to find the users that are member of Groups added to Resource pool? My action call is from ThingWorx and I need to create an WebService , which returns the user only if Present in Resource pool
Has anyone (with limited or no customization), came up with a way to limit the type of a process object to select based on the base object type? The use case I am investigating is this: Subtype of Change Review (called Milestone Review). I want users to create Problem Reports against the review to document issues found while completing the review using a subtype of a PR (Review Finding). Ideally, even from the Action menu I would like the selection to be "New Review Finding" instead of "New Problem Report" when being created against the "Milestone Review" subtype. Alternatively, when "New Problem Report" is selected, I would like it to default to "Review Finding" as the subtype in the New PR wizard
Currently, I've setup a basic document approval workflow in Windchill where the first task is to submit the document for approval and 'set up participants' of who to approve. Is there a way require that users actually 'set up participants' into the various roles? The set up participants is on a separate tab and it's easy for users to click submit without assigning anyone to the roles. Using Windchill 11.0 M030.
Version: Windchill 12.0 Use Case: fetching wrs data from navigate Description: In Master BOM in windchill, Customer have added new type of parts and its engineering sequence in new column. Iam getting those new parts in getPartStructure API. But i want the new column 'engineering sequence' data for new parts. How to fetch it using WRS API.
Version: Windchill 12.1 Use Case: I have created Family instances in solid works and I associated those instance to WTparts. I am able retrieve all the parts, associated cad Documents and instances. I have added all the objects to workspace. Now I wanted to add the generic part of those instances to workspace . Can you help to add the generic part of those instances to workspace.Description: This is the code i am using to retrieve all the parts, associate cad documents and ins tances. Now i wanted to retrieve the generic parts and add it to workspace private void updateChildParts(WTPart parentPart) throws WTException, WTPropertyVetoException {System.out.println("Updating child parts for:Raghu " + parentPart.getNumber());QueryResult partUsageLinks = WTPartHelper.service.getUsesWTPartMasters(parentPart);while (partUsageLinks.hasMoreElements()) {WTPartUsageLink usageLink = (WTPartUsageLink) partUsageLinks.nextElement();WTPartMaster partMaster = (WTPartMaster) usageLink.ge
I need a variable to be evaluated inside Assigned Activity node (JSP didn't work either), so I can send information through the mail bot. Workflow Template: Variables: Workflow Expression node: Workflow Assigned Activity node: BackgroundMethodServer logs: 2024-06-21 09:11:07,313 INFO [WfUserWorkQueue.PoolQueueThread-9] wt.system.out wcadmin - *************Found 2 objects in this promotion************* Objects undergoing promotion are <table><thead><tr style="background-color:yellow; font-weight:bold;"><td style="padding:5px; border:.5px solid black;">Promoted Items</td><td style="padding:5px; border:1px solid black; text-align:center;">Version</td></tr></thead><tbody><tr><td style="padding:5px; border:1px solid black;">10100184.prt</td><td style="padding:5px; border:1px solid black; text-align:center;">A00</td></tr><tbody><tr><td style
Hello,Is it possible to increase string length of global attributes to 5000 characters. windchill provides 2000 max character limit as OOTB.client want to increase that string length to max 5000 characters. is it possible?Is it possible by little configuration or need more customization? if need what type of configuration, please provide?
By default at time of import the product template through UI it will call ImportContainerTemplateFormProcessor.java. So i am trying load the template through automatically, i wrote a code it will fetch the .zip after that it has to call ImportContainerTemplateFormProcessor.java with the .zip file paramater. this is the code.note : i am unable to pass the .zip file import com.ptc.core.components.beans.ObjectBean;import com.ptc.core.components.forms.FormProcessingStatus;import com.ptc.core.components.forms.FormResult;import com.ptc.netmarkets.util.beans.NmCommandBean;import com.ptc.windchill.principal.template.processor.ImportContainerTemplateFormProcessor;import wt.log4j.LogR;import wt.util.WTException;import org.apache.logging.log4j.Logger; import java.io.File;import java.util.HashMap;import java.util.List;import java.util.ArrayList;public class CustomTemplateImporter {private static final Logger log = LogR.getLogger(CustomTemplateImporter.class.ge
As per the original post. Hi @Manoj_Dokku4 , @HelesicPetr how can we get Affected End Item of Affected Objects??
Version: Windchill 12.1 Use Case: Requirement 1) Want to fetch change summary details like On Order, Work-in-Process, Finished, etc. Requirement 2) How to get Release Target or Change Transition details for ObjectsDescription: I don't know actually how to use :1) wt.change2.ChangeRecord2 record = (wt.change2.ChangeRecord2)2) wt.lifecycle.Transition
is there any Api to create Change task template throw code in change notice.
Hi @BjoernRueegg In reference of a discussion in old topic How can we get affected end item of affected objects through API
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.