Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
I need to configure the title block to display the name of the last person who modified the document, instead of the original creator's name.Thank you for helping me, with any informations.
Hi, I want to get the view of the WTPart in workflow to compare if it is "Design" or "manufacturing". I used below code in workflow execute expression robot. ====if (primaryBusinessObject instanceof wt.part.WTPart) { wt.part.WTPart part = (wt.part.WTPart) primaryBusinessObject; wt.vc.views.View view = (wt.vc.views.View) part.getView().getObject(); if(view != null && view.equals("Design")){result = "Go";}else{result = "NoGo";}==== On syntax check it work, However, if i add workflow variable i got below error on syntax check.===Checking Syntax...warning: Supported source version 'RELEASE_7' from annotation processor 'com.microsoft.azure.management.apigeneration.LangDefinitionProcessor' less than -source '1.8'WfExpression_1315495121.java:129: error: variable view is already defined in method executemethod_1(Object[],Object[]) wt.vc.views.View view = (wt.vc.views.View) part.getView().getObject();  
here the code I use it : and awues having thsi exception : Loader method com.ptc.windchill.suma.axl.LoadAXL.addAVL reported a failureNo objects were imported due to the error.found exception:wt.util.WTException: error to create AVL and AML: Message: Resource bundle/Message key = wt.ixb.publicforhandlers.ixbResource/8wt.util.WTException: error to create AVL and AML: Message: Resource bundle/Message key = wt.ixb.publicforhandlers.ixbResource/8 */ public static void linkLEONIPart2Partner(WTPart leoniPart, VendorPart vendorPart, ManufacturerPart manuPart, String context) throws WTException { try { File fData = File.createTempFile("leoparts", ".xml", new File(LeoniPropertiesReader.get().getLeoniTempFolder())); FileOutputStream fos = new FileOutputStream( fData.getAbsolutePath(), false); String content = "<?xml version='1.0' encoding='UTF-8'?>\n" + "<!DOCTYPE NmLoader SYSTEM 'standardX10.dtd'>\n" + "<NmLoader>\n"; if (vendorP
I am trying to retrieve the WTParts / EPMdocument from the workspace, it was throwing error it was saying that the query is wromng. help me to retrieve the objects from the workspace. this is my code.This is my workspace id iam passing : private static String WorkspaceNumber = "OR:wt.epm.workspaces.EPMWorkspace:1150900;From this method iam getting the workspace:private static EPMWorkspace getWorkspaceById(String WorkspaceNumber ) {try {wt.fc.ReferenceFactory referenceFactory = new wt.fc.ReferenceFactory();wt.fc.WTReference wtReference = referenceFactory.getReference(workspaceId);return (EPMWorkspace) wtReference.getObject(); // Returns the workspace object} catch (Exception e) {System.err.println("Error fetching workspace by ID: " + workspaceId);e.printStackTrace();return null; // Return null if workspace cannot be fetched}}This is the method i used to retrive objects present in the workspaceprivate static List<EPMDocument> getEPMDocumentsInWorkspace(EPMWorkspace worksp
The preference for the Part Structure Overridable Attribute in Windchill is related to the concept of excluding a component from the Bill of Materials (BOM). In SolidWorks, there is an option to exclude a part from the BOM, which allows the component to remain in the CAD structure within Windchill but not appear in the assembly's part structure.If this preference is not enabled, Windchill will not track the excluded component and it will remain part of the BOM. To properly exclude a component from the part structure, you must check out and check in the CAD assembly. This ensures that the changes are reflected in the part structure and the excluded component does not appear in the BOM 1)through the manually do the checkout and checkin the CAD, the Extrude from BOM finctionality is working.2)but if i do through programmatically checkout and checkin the CAD is happaning but the functionality is not working. for checkout i wrote this:-public static Workable doCheckOut(Workable ep
I am using Windchill PDMLink Release 11.0 and Datecode with CPS M030 The Select Associations page lacks some functions (3 buttons for Paste, Paste Selection and Add Associations are missing, and searching and adding items by number or name is missing) Translated by the moderation using Google Translate-----------------------------------------------------------------------------------------------选择关联页面缺少部分功能(粘贴、粘贴选择内容、添加关联的更改 3个按钮缺失,按编号、名称搜索添加条目缺失)
boolean hasdomainAccess =AccessControlHelper.manager.hasAccess(user, "com.infineon.ProductDevelopmentReport", container.getDefaultDomainReference(), _State.toState("INWORK"), AccessPermission.CREATE);Here it always return true even there is no access to create for the user while implementing validation in the builder
Version: Windchill 11.1 Use Case: I have two Windchills that belong to different organizations, but are the copy of each other. I want to create a utility that takes a list of WT_Documents numbers as initial data, downloads the default representations from one Windchill to a local drive, and then creates these representations for the same documents in another Windchill.Description: Some of the downloaded representations may be created manually, so I cannot use the agents and create the representations using visualization server. If anuone knows about API that can help with my problem, I will be very appreciated for sharing.
Hello Experts, Set Revision API is failing to set the Manufacturing View Part as the same Revision as the Design part. Use Case: The Design part has A and B versions. On Design Part B Created a New Manufacturing Part then the Manufacturing Part created with Versions A. So we have to set the Manufacturing View Part Revision B to match with Design Part. Below is the API : VersionControlHelper.service.changeRevision (); Failing with error: Version already exists, cannot create a duplicate: Part. seems I'm attempting to change the revision ID to a value that already exists or is currently in use. Unfortunately, we cannot modify the revision ID to a value that is already being utilized. How can I identify or what would the best steps to identified the actual issue behind this? Regards, Yogesh
Version: Windchill 12.1Use Case: I want make ready only "Name & Number" attributes on Part Edit Common Attribute Page :Description: I am unable to figure if I should use data utility or Validator for this.1. I tried data utility but I didn't triggered as I am able to registered data utility ID since there is no such Edit Common Attribute layout. public class DisableName extends DefaultDataUtility { protected static final Logger logger = LogR.getLogger(DisableName.class.getName()); @Override public UIValidationStatus getDataValue(String filedName, Object object, ModelContext modelContext) throws WTException { System.out.println("---- DisableName on Part CommonAttribute Started-------------"); UIValidationStatus status = UIValidationStatus.ENABLED; System.out.println("---- filedName :" + filedName); if (modelContext.getDescriptorMode().equals(ComponentMode.EDIT)) { if (filedName.equalsIgnoreCase("name")|| filedName.equalsIgnoreCase("number") ) { Syst
I am trying to upload the primary content to a document using REST API. I found information on knowledge hub to do it using Upload Stage 1, Upload Stage 2, Upload Stage 3 actions. I am facing issue while stage 2 action as it is not available in windchill rest services(screenshot attached). I am wondering if it is possible to customize the Document Management domain to perform POST action to upload document primary content directly through rest api. Any hint or assistance will be greatly appreciated.Thanks in advance for time and consideration.
I know this is a bit of an Onion (many layers and it can make you cry).We have Org and level Roles with ACL's but we also allow Projects to create Local Roles and these act like "Team Members" for Org level ACL's.In a Project (or any context) there is also the ability to ride a gui action with Actions on Roles.Given all that....There are Access Controls on a Folder (that can be propagated to sub-folders) and these look like ACL in that they say "modify" , "modify content" (looks like modify content in ACL), ""The right to modify any local file, URL, or external storage for the primary content and attachments of an object with content. This includes modifying content information and adding, replacing, or deleting content"If the Role in the team has Modify, Modify Content on the Access Control rule and can see Check Out, Check out and Edit, Replace content. Would selecting only Read , Download only allows those actions, and conversely can you grant Modify if the Role only has
I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.0I would like to be able to filter work items by their last modified date - how would I be able to add this as an attribute to an advanced search.Here are the errors that I facednone
Version: Windchill 12.1 Use Case: Using configurable links, I'm looking for a way to link a specific iteration of object A to either a specific iteration or revision of object B. I do not want the link to carry forward on check-out/check-in of object A. For example, if I have EPMDocument A.1 linked to WTDocument A.1 and I check-out/check-in the EPMDocument, I do not want the link to carry forward to EPMDocument version A.2. The reverse scenario is inconsequential, i.e. if WTDocument iterates to A.2 it would be fine if the EPMDocument A.1 maintained the link. My only concern is the EPMDocument in this case.Description: We use a custom tool in CATIA that runs "checks" against a model/drawing and provides scores/feedback to the user interactively to make corrections. We are trying to incorporate these scores into Windchill without exposing the values to the user in CATIA via parameters, which is why we are trying to avoid using parameter to attribute mapping. Since Windchill does not
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.10when I tried to launch interface related to publishing job getting below error2025-01-08 08:33:40,657 FATAL [pool-16-thread-2] Flow1100 awphe02 - |PublishRepresentation [publishRepresentationId=7, publishRepresentationRule=Flow1100, remoteTask=RemoteTask [ruleName=Flow1100, rootNumber=59863907525, language=cs, getRequestURL()={server URL removed}, methodContext={}, timeConfiguration=TimeConfiguration [taskPeriod=1, taskTimeout=180, taskDelay=0, queueDelay=1000]]|||Failed to add a PublishJob of the rule Flow1100 to the Publisher Queue||FATAL com.infoengine.SAK.IeServiceException: Syntax error in ELEMENT parameterat com.infoengine.SAK.IeService.updateCollection(IeService.java:870)at com.infoengine.SAK.IeService.updateCollection(IeService.java:798)at com.infoengine.SAK.IeService.updateCollection(IeService.java:759)at ext.renault.phenix.interfaces.publishing.model.monitor.PublishRepresentation.performJob(PublishR
Is there a way to disable cancel button at last page of wizard, Below SS is last page of wizard and I want to disable the cancel button.
Version: Windchill 13.0 Use Case: REST API end hooksDescription: I am investigating a possible project using the Windchill REST API. The documentation page is here:https://support.ptc.com/help/windchill_rest_services/r1.6/en/index.html#page/windchill_rest_services/WCCG_RESTAPIs_Javadoc_JSdoc.html# Both the links on that page lead to a missing page. Where is the REST API end hook documentation?
Hi all, I am working on a customized action that requires to download model data . Since the members of the family tree do not have model content data, I need to filter them. Can anybody suggest me ways to identity if a part belongs to family tree or get the model content of the base object?
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.2.11I want to create part object subtype in windchill through thingworx application. For this creation I have to use 3 endpoints in single request that are uservalidation, attribute_validation, create Object. To do this I believe that in ODATA I can use batch request. But finding some difficulty that where to save that Json/js files which consist of the batch request and all. If I can get a stepwise procedure, it may help me to do the requirement. I want to use some OOTB endpoints and some custom.
Hello, I have a requirement where I need to populate the Resource pool of a workflow task based on an attribute, say location, selected by the user at the time of creating a Change Notice. For example, if the user has selected the location as Spain, the resource pool of a set-up participant task should be updated with Spain group for a role. Requesting you to provide some info on the feasibility to implement the same. Thanks,Sha
Hi All,Is it possible to have Proposed Solution Attribute on Change Notice as well. Out of the Box it present on Change Request only .Any Idea ?Regards,Vivek
Version: Windchill Below 11.0 Use Case: I used a api below this scentence to complete a WfAssignedActivity object ,but it did not created a related WfAssignmentEventAudit object,why ? wt.workflow.engine.WfEngineHelper.service.changeState(assignedActivity, WfTransition.COMPLETE);Description: I used a api below this scentence to complete a WfAssignedActivity object ,but it did not created a related WfAssignmentEventAudit object,why ?wt.workflow.engine.WfEngineHelper.service.changeState(assignedActivity, WfTransition.COMPLETE);</span>
Version: Windchill 12.1 Use Case: I need to retrieve documents that were set to released in the past 24 hours.Description: I am looking to find documents that were set to released in the past 24 hours. I am doing this via InfoEngine by querying for objects with an UpdateStamp greater than a date/time stamp for yesterday.In InfoEngine updateStamp and modifyStamp are returned and represent two different use cases. I need updateStamp. Below is the values I am seeing come back from InfoEngine <thePersistInfo.updateStamp>2024-05-24 13:01:13 EDT</thePersistInfo.updateStamp> <thePersistInfo.modifyStamp>2024-05-16 09:49:15 EDT</thePersistInfo.modifyStamp> The DynamicDocument Rest API returns LastModified, which seems to align with modifyStamp from InfoEngine, but I am not seeing a value come back from the REST API's for UpdateStamp. { ... "LastModified": "2024-10-25T12:56:32-04:00", ... } I am able to get the documents that were modified after a
I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.0I want to customize a model that can support main content attachments like documents and generate visualizations. That is, if Office Worker is installed and the main content is Word, Excel, PPT, etc., it can also generate visualization PDFs through Worker. So what interfaces does my model need to implement and what configurations do I need to make to meet my requirements? --------------------------------------------------------- Translated the topic from Simplified Chinese to English using Google translate Subject - 客制模型支持生成可视化 Body -我想客制一个模型,它能像文档一样支持主内容附件,且能生成可视化,即如果装了office worker,且主内容是word、excel、ppt等也能通过worker生成可视化pdf,那么我的模型需要实现哪些接口,需要做哪些配置,才能实现我的要求呢? -By Community Moderation Team. ---------------------------------------------------------
I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.2I want table as an attribute value in WTPart Details page how is it achievable using data utility or is it achievable or not.
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.