Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Hello, How to rename a container programmatically? Thank you.
Hello, I loaded business rule objects by following the instructions mentioned in the below article, but when loading is completed I can only see Rule Set and no rules below the said rule set. https://support.ptc.com/help/wnc/r12.0.0.0/en/index.html#page/Windchill_Help_Center%2FBusRulesObjectsLoad.html%23 Please let me know what could be the root cause for the issue. Regards, Sha
For our Windchill Visualization Services, we are using Afterloader (AfterEDRloader3) hook method to rename visualization files to PartNumber_Revision based on attribute values. This method is identified in: Article - CS252900 - Windchill PDMLink: An example Afterloader hook method to add the attribute value from the viewable files to the name of output Additional File Types This works very well for EPM Docs pushed from Commonspace and message ""AfterEDRloader starts: Checking if object is EPMDoc: appears in WVS Job Monitor log file when method completes. Now we want to leverage client side preprocessing of visualization files per: Article - CS21380 - How to edit Client-side Recipe configuration used by Creo Parametric and the Workgroup Manager clients during Windchill Custom Check-in of "Models and Viewables" However, the Afterloader hook method fails to rename the visualization files when sent to WVS CAD Worker and message "A
I have this unbound action configured: { "name": "DeleteWorkspacesIfEmpty", "importName": "DeleteWorkspacesIfEmpty", "description": "Delete all Workspaces if empty", "parameters": [ { "name": "workspaces", "type": "String", "isNullable": false, "isCollection": true } ], "returnType": { "type": "String", "isNullable": false, "isCollection": false }} With this JS: function action_DeleteWorkspacesIfEmpty(data, params) { var WorkspaceFunction = Java.type('at.techsoft.twice.WorkspaceFunction'); var workspaceFunction = new WorkspaceFunction(); workspaceFunction.deleteWorkspacesIfEmpty(data, params);} And this Java Code: public ActionResult deleteWorkspacesIfEmpty(ActionProcessorData data, Map<String, Parameter> params) throws ODataApplicationException, JSONException { Object obj = params.get("workspaces").getValue(); List<String> deletedWorkspaces = new ArrayList<>(); EntityCollection entityCollection = new EntityCollection(); if (obj instanceof ArrayList) { List<S
Hello, We have an environment where we are trying to connect to Windchill 11.0. Windchill is setup in SSL mode and we connecting through HTTPS proxy. We are using standalone application to Query a part, using SimpleTaskDispatcher and InfoEngine API's. Windchill application certificate is also added in the truststore. Below is sample code : IeConnectionFactory f1 = new IeConnectionFactory();IeConnectionSpec connSpc = new IeConnectionSpec(); connSpc.setUserName(userName);connSpc.setPassword(password);connSpc.setProperty("ConnectionURL",url + "/servlet/SimpleTaskDispatcher" ); javax.resource.cci.Connection windchillConnection = f1.getConnection(connSpc );WindchillDAO dao = new WindchillDAO(windchillConnection);dao.Query("wt.part.WTPart", " name = TestPart ", null, new String[]{"*"}); We have set below JAVA_OPTS : 1) https.proxyHost 2) https.proxyPort 3) https.nonProxyHosts We are getting below exception : javax
I have one typical requirement where I would to call api to generate representation but not thumbnail. Right now I am using doPublish() api to generate viewable/representation but I do not see any option or parameter to disable thumbnail generation.. PTC Tech support said, we can disable thumbnail generation at system level but there is no way to disable for particular scenarios or thru API. But I believe there might be having some other API or some kind of parameter in doPublish() to disable thumbnail generation.. If any one of you have any idea, please let me know. Thanks, Shyam.
Hello, I have a requirement where I need to introduce some information about the document in the ESI response file. Since the information which I want to introduce are not document attributes modifying esimetaInfo file is not an option. Please suggest me how I can introduce a custom renderer for documents. Thanks in advance. Regards, Sha
Hello, I have a requirement where I need to disable a specific option from the users to select in a change task. For example, if an activity has two options, Resubmit and Bypass, the option Bypass must be enabled only at certain conditions. Please let me know the feasibility of this one. Thanks, Sha
Hello, Given a User and a Role how to find it's context with API or DB query? Thank you.
Hello, I want to implement business rules functionality to validate some of the rules for the objects. All the articles I find online refers to the implementation of OOTB validations and some of the article clearly states what are BusinessRule, BusinessRuleSet and BusinessRuleLink but no article explains where I need to add my validation logic. Please provide your suggestions if you have implemented custom business rules for a specific custom validation. Example: I want to get the upstream view of the resulting object and throw conflict if upstream was not available. Thanks, Sha
This is regarding the case#15764286 Customer getting error "Client received SOAP Fault from server: Authentication of Username Password Token Failed " while running webservice. 1) New_Project folder from 2 environments - sandbox(Non-working) and test(working) Sandbox is updated with windchill 11.1 M20-CPS16 : http://internal.ptc.com/salesforce/attachments/cases/15/76/42/86/sandbox.zip Test is on version 11.1 M10-CPS04 : http://internal.ptc.com/salesforce/attachments/cases/15/76/42/86/test.zip 2) Client logs when the same web service hit on both the environments Env : test : C:\Amazon_MCAD\DrawingAutomation\webservices>java -jar QueryObjectServiceClient.jar plastic_barrier_psu_octave.drw Feb 26, 2021 7:11:51 AM [com.sun.xml.ws.policy.parser.PolicyConfigParser] parse INFO: WSP5018: Loaded WSIT configuration from file: jar:file:/C:/Amazon_MCAD/DrawingAutomation/webservices/QueryObjectServiceClient.jar!/META-INF/
I recently updated our windchill 11.0 CPS and the customization we had to the find number field got dropped. I'm stuck on step 2D of the help file linked below. Can anyone tell me what syntax I use in the xconfmanager? http://support.ptc.com/help/windchill/wnc/r11.1_m020/whc_en/index.html#page/Windchill_Help_Center/WCCG_UICust_PresentInfoUI_CustFindNumberField.html
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
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.