Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Hi All, Can anyone let me know how to set the ECR to resolved programmatically even if one ECN is resolved and others are Cancelled? I checked on the code within the Synch on Change Notice Implementation where it has a code like below .WorkflowProcessHelper.isRelatedChildrenInStates( primaryBusinessObject,new String[]{"RESOLVED"})) {result = "Resolved";} So what if there are multiple ECN where few are resolved and few are cancelled and how to make sure that ECR is resolved even if one ECN is Resolved. Can we modify the code? If yes can someone provide their leads here?
Hello, I have a requirement where I need to develop a web service using Rest APIs where I need to get the acknowledgement from the downstream system on the objects I have transferred. I have done the same using SOAP but now I have to do the same using REST. Since I do not have very much experience on REST, any suggestion would be very helpful. Process followed for SOAP based web service: i) Write bean classes with the attributes which I expect the downstream system to send. ii) Write an xml with the bean classes as inputs and call a method in the said xml. iii) Go to http://"Windchill URL"/RPC to generated the wsdl. iv) Register the task on Task Delegate Administration. iv) Provide the wsdl to the other interface. Thanks, Sha
Hello, I have a requirement where the ESIResponse.xml file needs to be converted into an xslt file and then the xslt file must be sent to the downstream system. Please suggest any solution or procedure to achieve this requirement. I am working with ESI for the first time, so any help would be greatly appreciated. Thanks, Sha
Hi Team, I have a case#15736155. Customer creating the new attribute on New Action Item with the help of following link: https://support.ptc.com/help/windchill/wc110_hc/whc_en/#page/Windchill_Help_Center%2FWCCG_BusLogicCust_CommTools_CustActionItems.html We can make the changes in existing attribute, however with new attribute Display name get append with Action Item's internal name. Entry form <Windchill>/codebase/wt/meeting/actionitem/attributeConfig.xml <attribute resourceKey="AccountName" enabled="true" order="12" required="false" resourceBundle="wt.meeting.actionitem.actionitemModelRB" displayType="textBox" internalName="AccountName" type="java.lang.String"/> Please refer to the following screenshot: Tried with crating the entry in actionitem @RBEntry("AccountName") public static final String DESC_LABEL = "7"; Save the file and execute the following command to compile actionitem
Define environment variable WT_WINDCHILLDS_LOGS_DIR in Windchill SysAdmin's environment, as per DS 7 docs (applies to Windchill PDMLink 11.2)
Hi Team, I have a case 15726907 where QuerySpec not returning all columns from table It’s a table customer created in the windchill database for testing. Here are the columns: Customer used the following API to query external table: QuerySpec qs = new QuerySpec(); qs.setAdvancedQueryEnabled(true); ExternalTableExpression ete = new ExternalTableExpression("ZES_WORKCENTER_T"); int tableIndex = qs.appendFrom((TableExpression)ete); qs.appendSelect(KeywordExpression.Keyword.COLUMN_WILDCARD.newKeywordExpression(), new int[] { tableIndex }, false); SQLFunction upperMATNR = SQLFunction.newSQLFunction(SQLFunction.UPPER, new TableColumn(qs.getFromClause().getAliasAt(tableIndex), "MATNR")); qs.appendWhere(new SearchCondition(upperMATNR, SearchCondition.EQUAL, new ConstantExpression(partNumber)), new int[] {tableIndex}); System.out.println("Query: " + qs.toString()); qR = PersistenceServerHelper.manager.query(qs); System.out.prin
Dear all,I'm trying to hold "design" selection for attribute "View" during the creation of a part in Windchill 10.1 v M040. There are two views, Design and Manufacturing.View attribute does't support default option. If I remove the attribute from the "Create New Layout", its value is unassigned; and it's can't be accetped.I followed this article:https://www.ptc.com/en/support/article/CS286220? but it does't work. Probably there is something in system configuration that collides with the provided solution . Do You have any suggestions?Tnx
Hello all, In Windchill 11.1 the cascading attribute feature is available for Parts, Documents and Change objects types only. Have anyone managed to do a customization so that to extend this feature in Project object type or other object type? Is it possible to do it? Thank you in advance
Okay, This has to be something simple I am missing... I am trying to set state in a workflow to Under Review and it isn't performing that action. The workflow completes successfully, and does not hang, but the state isn't changed.
Hi community, I noticed that odata API are significantly slower than servlet rests. There is some configuration that can be adjusted to improve response times? Thanks
Hello, please tell me how to use Info*Engine to get all the drw objects?I found a way to get the entire WTPart tree.But I can't get the drw <%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie" %> <%@ page contentType="text/html;charset=utf-8" %> <ie:webject name="Get-Properties" type="MGT"> <ie:param name="ATTRIBUTE" data="wt.federation.ie.VMName"/> <ie:param name="GROUP_OUT" data="properties"/> </ie:webject> <html> <head> </head> <body> <ie:webject name="Search-Objects" type="OBJ"> <ie:param name="instance" data="$(properties[0]wt.federation.ie.VMName[0])"/> <ie:param name="type" data="WCTYPE|wt.part.WTPart"/> <ie:param name="where" data="(number='НМЕА.305369.013-01')"/> <ie:param name="attribute" data="name,obid" delim=","/> <ie:param name="VERSION" data="LATEST"/> <ie:param name="ITERATION" data="LATEST"/> <ie:param name="group_out" data="anObjects"/&
Hello All, I want Configure CustomConfigurable MasterLink To WTPart.i have Followed ptc Help center Steps and also create customConfigurableMasterLink using Java API but not able to see it on Custom configuration tab Error : com.ptc.windchill.enterprise.util.ConfigurableLinkUIHelper wcadmin - Configurable Link may not be configured.
Hello all, I hope you are great. Any of you know if is possible for a product manager to have a view of the users that downloaded a file? What our product manager has in mind is a new tab in the document info where he can verify who download the document and maybe comments written by the user when the files was downloaded by the user. Thank you in advance for any idea or suggestion? Best regards Luis Chavarría
Hello, I have a document called XYZ which is a subtype of EPM Document in Windchill. As per REST API for EPM document management Domain I can read IBA's on top (Parent) EPM Document but not on its Subtypes. Attributes that I am trying to read are applied on Subtype only and not on its Parent type. REST API available OOTB cannot read these IBA's and seems like limitation of REST API. Also, this seems to be applicable to all other types and not just EPMDocument. Is there are option to read IBA's on Subtypes.? or customized REST API is the only option.?
Hello, The default track work feature of the plan items in windchill lets the user submit rather bulky working hour entries as if all at once or partial, independent of the dates whereby the relevant working hours were actually realized. I want to find out if it would be possible to submit incremental, ie daily, working hour entries by adding the related dates working hours are being spent ? Thanks.
Hello everyone, i need to programmatically set the "Disable Check out on the fly" preference. I have found PreferenceHelper class used to retrieve the value, any correspondents class to set the value ?. Thank you
Hello, the event manager opens every time the workspace is updated. Is there a possibility to turn off the pop-up of the event manager.
Hi everyone, I have set modify permission to user for epm document, but unable to open that epm document by using non admin user login credentials. Please check below code with exception and do let me know if anything is missing. public void setAdHocAccess(List<EPMDocument> listEPM, WTUser user) throws WTException {boolean en = SessionServerHelper.manager.setAccessEnforced(false);try {ContainerTeamManaged container = null;if (user != null) {Vector<AccessPermission> accessPermission = new Vector<AccessPermission>();// set Modify permission System.out.println("Set Modify access for objects..!");accessPermission.add(AccessPermission.MODIFY);for (EPMDocument epm : listEPM) {container = (ContainerTeamManaged) epm.getContainer();System.out.println("=== Grant Access to CAD Documents ==== " + epm.getNumber()+ " FROM CONTEXT: " + epm.getContainer().getContainerName());// set Principal AdHoc Access controlContainerTeamHelper.service.setPrincipalAdHocAcl(container, (AdHoc
Hi everyone, what is the preference or the way in Windchill 11.2 to have the automatic representation of the pdf of a drawing? In my case with Solidworks I have the pdf created automatically (see photo 1) while for Creo Parametric and Inventor I have nothing (see photo 2). In addition to pdf files, can I also automatically create dwg or other types of files? If so, how can it be done? Thanks, Matteo.
Hi, Creating PDF files is impossible without "Adobe Leve Cycle".Therefore, "Worker" was written. Windhill sends assignments to WorkerServer and receives a PDF from there.The WorkerServer requires the installed MS Office https://bitbucket.org/renatsun/wc_genericdocumentworker/src Best regards
Hi, I'm creating WTParts using import from spreadsheet functionality(OOTB). I want to apply some logic post creation of these parts but in my POST_STORE event I'm not getting target instanceof WTPart to implement logic. Is there any other way ?
Hello. I found that class com.ptc.core.adapter.server.impl.AbstractWebjectDelegate has been marked as deprecated (at least since release 11.0 but it could be marked as deprecated even earlier). However, I don't see any information, what class should be used instead of AbstractWebjectDelegate. Is there anyone who had to use AbstractWebjectDelegate and found a replacement for it? This class is mostly used, when one wants to create his own webject delegate, so such class extends AbstractWebjectDelegate.
Hello. I found that class wt.prefs.WTPreferences has been marked as deprecated. Sadly, there's no accurate info about why it is deprecated. The class provides some methods for getting root preference, create/set context masks and so on. WTPreferences prefs = (WTPreferences) WTPreferences.root();prefs = (WTPreferences) prefs.node(prefNode);prefs.setContextMask(PreferenceHelper.createContextMask()); Is anyone here who knows, what is the replacement for this class (or at least methods used there)?
Hey all, I've created a custom trigger to do some cleanup after importing a reqif file from DOORS into Windchill. The script grabs the document container, walks through the contains field using walkHeirarchy(), then modifies a couple of the fields in each record. Is is possible to determine what section level an item is at? So I need to do something different if a Heading is Section 1 vs Section 1.2.3 for example.
I am trying to customize the email notifications being sent from a workflow but I'm having trouble finding the right Java API calls to use for certain pieces of information. Here are the calls I'm using so far: wt.maturity.StandardMaturityService p = new wt.maturity.StandardMaturityService(); wt.maturity.PromotionNotice pn =(wt.maturity.PromotionNotice)primaryBusinessObject; wt.fc.QueryResult pn_targets; pn_targets = (wt.fc.QueryResult) p.getBaselineItems(pn); wt.epm.EPMDocument epmDoc = new wt.epm.EPMDocument(); while (pn_targets.hasMoreElements()) { Object obj =pn_targets.nextElement(); String objType =obj.getClass().getName(); if (objType.equals("wt.epm.EPMDocument")) { epmDoc = (wt.epm.EPMDocument)obj; System.out.println("state = " + epmDoc.getState().toString()); System.out.println("number = " + epmDoc.getNumber().toString()); System.out.println("cadname = " + epmDoc.getCADName()); } } These are working great, but I need more. What are the calls to get the fol
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.