Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Hello everybody,how can i add some attribute columns to the wtpart where used tab view?(see attachment)Matteo.
Hello @DeepakParihar , I want to validate action once user select/clicks on it. custom-actoin.xml : I registered the my class as below also update Onclick info. <objecttype name="pdmObject" class="wt.fc.WTObject" > <action checkaccess="true" name="WSEXPORT" enabledwhensuspended="true" renderType="PDM" > <command class="ext.epm.validator.ValidateWSEXPORT" onClick="PTC.validation.AJAXPostSelectValidation(event, 'WSEXPORT')" method="WSEXPORT" windowType="page"/> </action> </objecttype> My class is as follow : public class ValidateWSEXPORT extends DefaultUIComponentValidator { protected static final Logger logger = LogR.getLogger(ValidateWSEXPORT.class.getName()); @Override public UIValidationResult validateSelectedAction(UIValidationKey vKey, UIValidationCriteria vCriteria, Locale locale) throws WTException { // TODO Auto-generated method stub System.out.println("---------- ValidateWSEXPORT Val
Version: Windchill 12.1 Use Case: For context, we are using Windchill+ which means we need to send CCD packages to PTC for deployment. This would also mean we cannot adjust certain settings and properties located in Windchill, as the PTC-managed deployment to TEST and PROD would cause issues. I created a custom java class that is called within a workflow. It has been compiled and deployed and is currently functioning in our dev system. I am now attempting to write unit tests for my custom java class. I have been following the customization guide, especially "Building and Deploying Tests in Development System", but while I attempt `ant compile.test`, it fails as it cannot find my package .Description: For context, we are using Windchill+ which means we need to send CCD packages to PTC for deployment.I created a custom java class that is called within a workflow.It is located in <\opt\ptc\windchill_customization\customModule\main\src\com\acme\customClass.java> as suggested in
Whenever an alternate link is created between 2 parts, a pop/warning message should appear saying "You are adding this as a global alternative. Consequently this Alternate part and will be introduced into all BOMs where the previous part is used" How to achieve this?
Leadership is wanting to swap from a alphanumerical revisioning system to a purely numerical system. They understand that the changes can not be retroactive to existing components but still want to make the change to future components. Is it possible to setup windchills versioning and iteration system to reflect this desired change? This change would also need to effective for new parts that are created (instead of being A.1 they would be 01.1). Ex:Part A.1 once revised under the new system would be 02.1 (B.1)Part C.5 once revised under the new system would be 04.1 (D.1)
When adding Replacement (substitute/alternate) to a specific Part , only a specific part should be available in selection list ( no other part type should be allowed)
Version: Windchill 12.1 Use Case: Good day I am a newbie and I am trying to create a new attribute under "Type and Attribute Management Utility" where it has multiple values in one line. For example, it must read XXX-XXXX-XXXX-XX-XX when I run a report and the input when creating a new part must have 5 blocks(fields) in a row separated by a dash. Please give suggestions.Description: Good dayI am a newbie and I am trying to create a new attribute under "Type and Attribute Management Utility" where it has multiple values in one line. For example, it must read XXX-XXXX-XXXX-XX-XX when I run a report and the input when creating a new part must have 5 blocks(fields) in a row separated by a dash.Please give suggestions.
Hi avillanueva,I need your assistance .Currently we are using Legal Value List and that list contains 1000+ values which are poll separated.We have random values like some values starts by Number some of them starts by ABC so we want to enhance the search capabilities so user can search by any numeric or characters value ,and then it will highlight in legal value list.Now if any value user want to selects then he needs to scroll complete list .For the same need a assistance which approach will be better .like if we can use DU to add searching criteria within same legal value list or any different approach for this things because here we add values in runtime from WC UI so need to think in that way .Please suggest the solution or approach to achieve this
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?
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.