Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Hello, I'm currently practicing Windchill Customization by referring to the Windchill Customization Guide. I'm trying to attach a Primary Attachment to a Pet, but even when I refer to the guide's examples, the primary attachment component doesn't appear. Other attributes, includeing the attachment wizard step, are displayed correctly. Here's my code. -------------------------------petCreate.jsp : <%@taglib prefix="jca" uri="http://www.ptc.com/windchill/taglib/components"%><%@taglib prefix="attachments" uri="http://www.ptc.com/windchill/taglib/attachments"%><%@include file="/netmarkets/jsp/components/beginWizard.jspf"%><%@include file="/netmarkets/jsp/components/includeWizBean.jspf"%><jca:initializeItem baseTypeName="com.Pet" operation="${createBean.create}" attributePopulatorClass="com.ptc.core.components.forms.DefaultAttributePopulator"/> <jca:wizard formProcessorController="com.form.TestFormProce
Version: Windchill 12.1 Use Case: To add various comments that are used for the modifying the PArtsDescription: unable to create Iteration comments using XML loadfromfile
Hi , I am facing an issue with one custom action, Somehow action misplaced in wrong model but even after adding in correct model (psbRelatedPartsTreeToolBar ) that action is not populating in required model is getting added again on same place where it was earlier and in my action there no custom class we have custom JSP over there . Requirement : "Custom BOM Report" action should be under report section below the "Multi-Level BOM with replacement" action
Version: Windchill 12.1 Use Case: I wanted to add some BOM into workspace, iam unable to get the active workspace. I did by hardcoding the workspace oidDescription: i collated the BOM and i need to get the active workspace, I don't know how to get the active workspace, as of now i am hardcoding the workspace oid wt.epm.workspaces.EPMWorkspace workspace = (wt.epm.workspaces.EPMWorkspace) referenceFactory .getReference("OR:wt.epm.workspaces.EPMWorkspace:1150900").getObject(); i wanted to dynamically fetch the active workspace instead of hardcoding the workspace OID, i need to retrieve the active workspace for the current user session.
first i tried to add the all associated EPM from the BOM to workspace, all epm get added in the workspace. Now i am trying to add the WTPart to workspace. its not working. this is the code how i added previously the epm to workspaceprivate void addToWorkspace(EPMDocument doc) {try {wt.fc.ReferenceFactory referencefactory = new wt.fc.ReferenceFactory();wt.fc.WTReference wtreference = referencefactory.getReference(doc); wt.epm.EPMDocument epm = (wt.epm.EPMDocument) wtreference.getObject(); wtreference = referencefactory.getReference("OR:wt.epm.workspaces.EPMWorkspace:1150900");wt.epm.workspaces.EPMWorkspace workspace= (wt.epm.workspaces.EPMWorkspace) wtreference.getObject();System.out.println("workspace-->"+workspace); wt.epm.workspaces.EPMAsStoredConfigSpec asStored = wt.epm.workspaces.EPMAsStoredConfigSpec.newEPMAsStoredConfigSpec(epm);wt.fc.QueryResult queryResult = wt.epm.structure.EPMStructureHelper.service.navigateReferencesToIteration(epm, null,
Hi,We trying to achieve a OOTB possibility to hide the secondary attachments for specific role.Any guidance would be appreciated. Regards.
How to get whole classification tree structure like <Classification>/Parts/Mechanical/Heater</Classification> in the ESIReleased xml file. But in my ESIReleased xml file the classification tag only last node is updating like <Classification>Heater</Classification> help me to get the whole classification structure in the classification tag or provide any steps or article.
Hello Experts, The Reporting Domain (v1) of Windchill REST Services is having errors responding to the /ReportTemplates endpoint. The query was running from long time for specific users and there are several errors in the method server log around that time. We do not have any custom WRS domains. Noticed many errors/warnings like Delegate not found for selector/couldn't find the imported domain. Since, Report Template represents Windchill object that is a saved query, that can be used to generate and run a query. The ReportTemplate entity represents Persistable information about report templates. Every Report template object is represented as an entity type in metadata with QML attributes as its Properties. Report templates are non-persistable entities. Report templates are auto generated based on the number of report templates that exist. So, having below quest
Version: Windchill 12.0 Use Case: We are trying to display Change Notice Summary Report with customizations from a Java classDescription: Hello, I am trying to display the OOTB Change Notice Summary Jasper Report which has some customizations, from a Java class. I am using the following code to load and then fill the Jasper Report: String path= wthome+"/codebase/JasperReports/Change Management/Change Notice Summary Report.jasper";path = URLDecoder.decode(path, "UTF-8");System.out.println("Decoded path:"+path); File f= new File(path); JasperReport jasperReport = (JasperReport)JRLoader.loadObject(f); System.out.println("Report is loaded");JRXmlDataSource datasource= new JRXmlDataSource("https://"+localURL+"/Windchill/servlet/ReportServlet?proc=com_ptc_windchill_enterprise_report_ReportTask%23ChangeNoticeSummaryHeader&contextOid="+contextOid+"&isDraft=" + isDraft +"&uid="+USERNAME+"&locale="+LOCALE,"/dataset/data/row"); Map<String, Obj
Hello can you please explain the detailed steps to registered JSP files ? I registered Datautility, added property file location into "TgsPropertyHelper". but not getting idea how to register the "createDocumentSetTypeAndAttributesWizStep.jsp" and "loadStateNames.jsp" JSP files ? please find attached file for reference
Version: Windchill 12.0 Use Case: We have a custom action where when the user clicks on it, a jasper report is downloaded as pdf in the backgroundDescription: Hello all, I am trying to run a Jasper Report from java code. I have few questions regarding that- 1. I have a jrxml with multiple data sources( infoengine tasks), how do I combine all of them into one Jasper Print object using the below API? JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameters); 2. When exporting the jasper report as pdf, how can I give the path so that the report gets automatically downloaded in the user's local system? Currently I am running the report on the server so the pdf is saved in the server location itself, so how can I change that? Below, instead of creating the LfDocumentReport.pdf in the particular location, it creates a pdf in appl/ptc/Windchill_12.0/Windchill location with the whole name given as pathJasperExportManager.exportReportToPdfFile(jas
Change Notice and activity workflows are not starting suddenly. Didn't have any clue regarding the root cause. Earlier they are working fine. The same workflows are working on other environment. Can anyone throw some light on the root cause?2024-04-25 11:39:10,182 INFO [WfPropagationQueue.PoolQueueThread-25184] wt.system.err wcadmin - java.lang.reflect.InvocationTargetException 2024-04-25 11:39:10,183 INFO [WfPropagationQueue.PoolQueueThread-25184] wt.system.err wcadmin - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 2024-04-25 11:39:10,183 INFO [WfPropagationQueue.PoolQueueThread-25184] wt.system.err wcadmin - at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 2024-04-25 11:39:10,183 INFO [WfPropagationQueue.PoolQueueThread-25184] wt.system.err wcadmin - at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 2024-04-25 11:39:10,183 INFO [WfP
Windchill should exclude some files to upload in a WT_Document. The filter should be by extensión (.odt, .exe, .....) or by size (for example only upload files minus than 500 MB.These filters should be configurated by preferences.
Version: Windchill 12.0 Use Case: <%@page language="java" access="http|soap"%> <%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%> "/>Description: we want tumbnail information
Hi,I have to create a new epmdocument or new wtdocument with following versions in sequence using API code.object1.asm - M.1, M.3,M.9My ask is, after creation of M.1, how can i create M.3 with out M.2. If i do check-out & check-in (through code), it will create M.2 which i dont want.Please help me. Thanks in advance.
every time we release a drawing in the Windchill, the CAD worker, creates a PDF of it. like image pdf_number_drw.pdf. Any idea of how can I change that, we need it to be ( number_REVA.pdf) Thank you for your help in advance.
Hi @HelesicPetr, How can set serial effectivity with context and serial number for any child through API Reference topic - https://community.ptc.com/t5/Windchill/API-for-setting-effectivity/m-p/294903#M34550
Hello all, For last hour and a half I´ve been searching here on forum and on uncle Google, but didn´t manage to find anything helpful, therefore I would like to ask you, the guru´s for your help. In general, I´m trying to find a simplest way (report, advanced search, or other) to identify unique objects used only in that assembly in order to mark them obsolete.To explain a bit more, we are creating assemblies from various parts, that can be shared between assemblies (like brackets for example), however I want to be able to identify a list of objects only used in that specific assembly (for example parts unique to aprt number 201000). *If I will be able to generate list of unique objects for specific assembly, then I can export all unique objects to that assembly, enter another assembly number, export list and remove duplicates to get a list of completely unique parts not related to any other product.* Do you have any idea, if that is possible or have you any s
Is it possible to search for all attributes that are in the various nodes using the advanced search or the PartsLink Explorer. Currently I only see it as possible if I attach all attributes to the top node. Unfortunately, this leads to attributes being displayed on the overview pages of the various products that are not necessary for the respective products. So I would like to only hang attributes for the respective products on a node-related basis and then be able to search for all attributes using the search. Example: Attributes nominal width in node 1 Attributes material in node 2 Attributes color in node 20 My search Show me all articles regardless of the classification node Nominal width: 2.5 Material: POM Colour blue How can I do this without placing the attributes in the top node?
Version: Windchill 13.0 Use Case: We want to add some custom attributes to folders that we will need to modify during in certain cases.Description: Hello everyone,I wanted to know if there is a way to make it possible to modify custom attributes for folders via API cause I'm having problem with a customization since I'm able to access only to the default "Description" attribute.Thank you in advance
How to hold Activity A without completing Activity B in windchill workflow
What is the difference between getDataValue and getPlainDataValue methods in data utility
My assumption is that the information I am looking for is contain in the .ol file. I was looking for a way to pull the mass value as an indicated that mass properties were properly done from a workflow check. Is there an API that can interact with .ol files?
Some one know how to get programatically de EPMDocuments associated(s) to a WTPart? What's the task: 1 Verifying if my WTPart is new and have a family field filded (i created a rule that the new WTParts have a "WC_" prefix this is working).1.1 Been a WTPart, i need to change his Name and Number by a code getting by a ERP endpoint (it´s not working but i simulated). I able make it with some inside lines code on "workflow template" (didn't like, but could't work with java unit - and i'll had a new dificult ahead, i know it).1.2 And need change the EMPDocument(s) too, if exists ones of (like .prt, .drw or .asm), with the same code getting by ERP.Here is my problem. I couldn't get the objects with Java or code inside template (yet). Tryed a lot of java codes, but get a lot problems with "jar imports" that is not recognized.2. And at last, if is not new or don´t has a specific family, do nothing (it´s working). I has found a lot of solutions inverse, and try change the logica
Hi All I want to map certain attributes from Change Request to Change Notice and from Change Notice to Change Activity. I created the alias attributes below mapping rules:theChangeOrder2@wt.change2.AddressedBy2~theChangeRequest2^wt.change2.ChangeRequest2~nametheChangeActivity@wt.change2.IncludedIn2~theChangeOrder2^wt.change2.WTChangeOrder2~fgesArea But I'm not able to find the attribute values migrated from one Change Object to another.Can anybody help me understand my error here.
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.