Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
How to add our own custom tab in home page of windchill beside private and public tab.
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.2.7We are getting below exception for Query-Objects IE query. This is paginated query with Page Count as 10. But still it is giving below exception. com.ptc.core.command.common.CommandException: (wt.pom.pomResource/22) wt.pds.PartialResultException: Search results size has exceeded the limit set by the System Administrator. Nested exception is: (wt.pom.pomResource/22) wt.pds.PartialResultException: Search results size has exceeded the limit set by the System Administrator.In the PTC Article (CS421694), It is mentioned Query-Objects does not fail with this exception if we have Page Count mentioned.Here are the errors that I facedcom.ptc.core.command.common.CommandException: (wt.pom.pomResource/22) wt.pds.PartialResultException: Search results size has exceeded the limit set by the System Administrator. Nested exception is: (wt.pom.pomResource/22) wt.pds.PartialResultException: Search results size has exceeded the limit
I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.2Windchill InfoEngine Task fails to produce any results ,when calling the Windchill Query Builder Report Template using "Generate-Report" webject in custom IE Task.Here are the errors that I facedWindchill InfoEngine Task fails to produce any results ,when calling the Windchill Query Builder Report Template using "Generate-Report" webject in custom IE Task.
I am using Windchill PDMLink Release 13.1 and Datecode with CPS 13.1.0.0Ola, tudo bem ? Poderiam me apoiar em fazer uma customização no campo "number" ? Onde é preciso que nesse campo puxe os 8 primeiros caracteres do nome do arquivo vindo do CAD. conforme a imagem anexada. É minha primeira vez realizando customização e estou com dificuldades para realizar.
I would like to download primary contents and attatchemtns for WTDocument and place it some pre defined folder on server , on releasing document. I would like to know what is the API to use to download attachments and primary content of document. Also if it is possible to build a JS hook to perform this action. Thanks in Advance.
I am also stuck here , I cant persist the selected value . Could you please assist us to achieve this.
In our environment we have had multiple issues with users accidentally deleting a Workspace which contains changed (not checked out) and new objects by miss clicking upon activating a workspace.The Delete button is right next to the Activate button and both require an extra answer in a pop-up window:When Activating you must answer this question:And when Deleting you must answer this question:If your mindset is to activate the WS and you know you get the extra question to which you must answer YES, you are very likely to click on the OK button when you accidentally clicked on the Delete button.In other posts people have asked about recovering removed workspaces, but unless you have uploaded all your new and changed files, there is no way to restore these files. They are really gone.So now my question:Is there a way to customize the My Workspace view and remove the Delete function from the Actions menu?
Hi, I have the same requirement of getting esi transaction status using the WRS OData API.I have tried randomly guessing how to expand - without successe.g.Windchill/servlet/odata/v2/ESI/DistributionTargets?$expand=TransactionsWindchill/servlet/odata/v2/ESI/DistributionTargets?$expand=ESITransactionsWindchill/servlet/odata/v2/ESI/DistributionTargets?$expand=ESIReleasesWindchill/servlet/odata/v7/ChangeMgmt/ChangeNotices?$expand=TransactionsWindchill/servlet/odata/v7/ChangeMgmt/ChangeNotices?$expand=ReleaseActivityHas anyone found a way to get esi transaction status using WRS API? Reference topic: https://community.ptc.com/t5/Windchill/odata-function-to-get-distribution-target-publishing-and/m-p/995665 ThanksJukka
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
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.