Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Hello everyone, Currently in our Windchill system (WGM 11.1), rename preferences inherited directly from the organization level context, and I could not see those preferences at product level context. So I would like to know if there is any possibility to see or transfer there preferences from Organization level to product level context. e.g. All the below mentioned settings are at Organization level (Value set - Unchanged), but I cannot see these attributes at product level context. Default setting for File NameDefault setting for NameDefault setting for Number Well, requirement for us is that one of our product owner wants to control this preferences from product level context. Name and File name should be "Same as Number" instead "Unchanged", and Number field value should remain same as "Unchanged". But I could not see these attributes (Organization--> Rename) at product level context neither I can set it via OIR. I do use intralink administratio
Hi All, I have a list of Part ID's. Is it possible to get the content of all Parts with the given ID's sending just one request? The only way i found so far is to send one request for each object ID: .../Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:000001').../Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:000002').../Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:000003')... filtering doesn't work at all because the 'ID' belongs to the group of NonFilterableProperties. any ideas?
Hi Everyone, I need to get the BOM whose DR(Design release) state is resolved. If anyone knows please share with me. Thanks
How to modify the bellow example such that the custom function returns a collection of custom complexType records as JSON instead of only a single record? rest/custom/domain/ToastsDomain.json { "name": "ToastsDomain", "id": "ToastsDomain", "description": "ToastsDomain Domain", "nameSpace": "CUSTOM.ToastsDomain", "containerName": "Windchill", "defaultVersion": "1" } rest/custom/domain/ToastsDomain/v1/complexType/Toast.json { "name": "Toast", "collectionName": "Toasts", "description": "No description.", "attributes": [ { "name": "key", "type": "String" }, { "name": "value", "type": "String" } ] } rest/custom/domain/ToastsDomain/v1/import.json { "imports": [ {"name": "PTC", "version": "3"} ], "includeImportedEntitySets":false, "usePropertyPaths":true, "functions": [ { "name": "GetToasts", "importName": "GetToasts", "description": "No description.", "includeInServiceDocument
Hello, I need to create a Rest service where it can be invoked by an external system. I have achieved the same using Soap Web Services but not with Rest. Please provide your inputs on how to implement the same. Thanks in advance. Regards, Sha
I have a doubt, if I have a model of a CAD part, which contains:1 The master REP.2 A User Defined Sim.Rep.(This is because I have a Drawing with 2 Sheet, 1 Active, Linked to User.Def.Rp). and one inactive for the publication related to the master rep).When I go to assemble the part, I know that I have to know which representation is the right one. The questions are as follows: A) - There is a way to tell "Windchill" that the primary representation is the User defined, and not the Master rep. (Of the Part)? B) - In the same way there is a way to tell the CAD worker that converts the CREO file in CATIA to convert the User defined representation and not the Master rep (of the part)? I thought about creating a configurable assembly and insert only the part once in the User defined version, and insert it again in the Master version, and make the drawing starting from this assembly and in One sheet put the assembly model in a configuration (therefore with only one part), and on the othe
Dear All Looking for some advice on xconfmanager syntax I am attempting to customise the participant list table as per the link below, I have added a Sub type to the Change task The example in the support is <Property name="wt.change2.changetask.MultipleParticipantsSelection" overridable="true" targetFile="codebase/wt.properties" value="custom.path.CustomSubChangeTask1,custom.path.CustomSubChangeTask2"/> If the internal name for my new task is com.fortvale.DEALI assumed that to add the property the syntax should be xconfmanager --add <Property name="wt.change2.changetask.MultipleParticipantsSelection" overridable="true" targetFile="codebase/wt.properties" value="com.fortvale.DEAL "/> When run this command the error I get is "The syntax of the command is incorrect." Could you please advise what the correct syntax Searching in the wt.properties file I can not find an entry for the property "wt.change2.changetask.MultipleParticipantsSelection"
Dear All Looking for some advice on Workflow expressions, I am attempting to customise the Workflow assignments as per the link below, I have added the REWORK_ASSINGEE to the roles, and the change team but when I run the syntax check I get the error below. I have also added the roles of rework and reworkRole to the system and change team without success Can you advise what I am missing. I am on Windchill 11.2.1.4 https://support.ptc.com/help/wnc/r11.2.0.0/en/index.html#page/Windchill_Help_Center/WCCG_BusLogicCust_WorkflowAdmin_ChangeAssignments.html Checking Syntax... WfExpression_5148.java:62: error: ';' expected rework role on the change team. ^ WfExpression_5148.java:62: error: ';' expected rework role on the change team. ^ WfExpression_5148.java:62: error: ';' expected rework role on the chang
Hi there, our users required to enable the search for empty attribute fields. The Windchill documentation states that this can be done by setting the property com.ptc.windchill.search.queryBuilder.enableNullCriteria in wt.properties.xconf to true. I am used to edit settings with the xconfmanager tool. The command xconfmanager -s com.ptc.windchill.search.queryBuilder.enableNullCriteria=true -t codebase\wt.properties.xconf -p failed with a lengthy error message (see attached file). In the wt.properties.xconf file, a comment has been inserted at the beginning: #-*- XCONF CONTENT START -*-!-*-!-*-!-*-!-*-!-*-!-*-!-*-!-*-!-*-!-*-!-*-!-*-!-*- # WARNING: # # This file has been updated by the xconfmanager tool located in, # $(wt.home)\bin but this file is not declared by PTC as being managed # via xconf. # # To ensure that your settings will be preserved the next time the # xconfmanager is run or an installer is used to install a new product or # a maintenance update to t
I have been trying to reassess our deployment process. The process defines how we start projects and enhancements and how they move up the chain Dev -> Test -> UAT -> Prod. Also, how do we investigate when things inevitably go wrong?Recently I have been looking into Git for our source control management for our projects. Namely everything in wtSafeArea and wtCustom. This works alright until you try to account for System-Specific settings such as which systems to integrate with, who are my workers, and how many method servers, etc... etc... So I have created a long-life branch for each integrated system, Dev, Test, UAT, Prod. This seems to be working for the most part, but might be a bit cumbersome to maintain. That's when I thought that maybe our integrated systems would be better served as Repos. Then have a Project repo that represents all of our actual project work. Essentially using the system repos as backups of our
Is there a possibility to add the "Add to Managed Collection" Action to the Product Structure Actions? It seems like there has to be a different Action than the one in the More Actions Model. Anyone got an Idea about that?
Hello, There is a requirement where I have to introduce RTM Workflow as a sub-process for a Change Activity workflow so that the publishing will happen as part of Change Activity instead of Change Notice. Please let me know the accommodations or changes needed to achieve the above requirement. I am fairly new to ESI process, so any suggestion would be greatly appreciated. Thanks in advance. Regards, Sha
Hello, I have a requirement where I need to go to Change Notice workflow from the Change Activity workflow when it is at a certain point. When a particular robot is executed in the change notice workflow, the flow should again go back to the Change Activity workflow. Is there any other way to achieve the above scenario without using the Sync robot ?. Thanks, Sha
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
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.