Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Hello everyone! Please tell me how can I download the user signature file using Java API or using Info * Engine? Best regards!
Hello,How to enable MPMLink API? which jar is used?(for MPMPartToProcessPlanLink, MPMLinkHelper,...)How to create Process Plan with API?How to copy Operation to Process Plan with API? Thank you
I want to add a new column that will display the attribute (some other attribute which is not available in the table currently) in the edit association table. This edit association action is on the cad object. Can somebody help in achieving this requirement?
Hello everyone, please tell me how to download the drawing view of a wt.epm.EPMDocument using JAVA or Info*Engine?
Hello, tell me, please. How can I get data from the Process Status table in Promotion Request using Info*Engine or JAVA?
HI all, Can anyone please help me in optimizing the SQL query . I have written a sql query to retrieve WTParts when 2 IBAs are given . (using OR, AND conditions). SELECT A0.* FROM WTPart A0,UnitValue A1,StringValue A2,WTPARTMASTER A3 WHERE (A0.ida3masterreference=A3.ida2a2 and A3.WTPartNumber LIKE 'RT-3294%') AND (((A1.idA3A6 = 3853762) AND (A1.value = 0.037099) AND (A1.idA3A4 = A0.idA2A2)) OR ((A2.idA3A6 = 19907282) AND (A2.value = '22') AND (A2.idA3A4 = A0.idA2A2))) AND (A0.idA3view = 569) AND (A0.latestiterationInfo = 1) AND (A0.variation2 IS NULL ) AND (A0.statecheckoutInfo <> 'wrk'). But when this query is executed , its generating only 1 part more than 10k times . May I know if I have to modify the query. Thanks.
Good day to all. I'm querying some ContentItem instances (primary ApplicationData of WTDocument). For some reason API ContentItem.getHolderLink() returns "null" to me. What ways can get it's parent ContentHolder or WTDocument by having ContentItem? Thanks 🙂
Hi All, From Windchill 11 onward, PTC provided longDescription attribute to support Rich text contents. For now this attribute is available for only Change types objects. This is Modeled Attributes. Is any way to reuse this attribute on other Types like on WTPart or WTDocuments ? Kindly share your thoughts. Thanks and Regards, Vivek
Hello, I set a new reusable attribute MFG (String, all identifiers set to just MFG). I added to the CAD Doc subtype and gave it a new enumerated list. The Internal name cannot have spaces... so I removed them and made all the manufacturer names one space free string. But for display name I entered them as they should be. I also put "MFG" next to the Creo:____ box which I believe explicitly maps it? I set my regular part and sheetmetal start files to include the same parameter "MFG" and set the parameter to "ADD MFG" for with the internal Windchill name is "ADDMFG". I checked in the regular part no problem. I checked in the sheetmetal part... problem. the error showed that all the legal values were the internal name on this. Yet the regular part checked in fine with the Display name. I set the parameter in the sheetmetal part to "ADDMFG" and it checked in... What am I doing wrong here!?
Usecase: I have an MVC Table like following: Is there a way to implement a Javascript function that calls an Action on doubleclicking a row in the first column. It should call the same Action like the following one: Thanks Alex
Hello everyone! I try to execute a post request, but get this error: {"error": {"code": "INVALID_NONCE","message":"A potential security problem was detected. Refresh the page and try again. If the problem persists, contact your administrator." } } I found this article: https://www.ptc.com/en/support/article/CS312447 It says that a token is needed, but I already added it and still does not work. Here is the request that I execute to get the token: http://server/Windchill/servlet/odata/PTC/GetCSRFToken() Here is my code for the post request: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.io.UnsupportedEncodingException; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import org.apache.http.HttpEntity; import org.apache.http.auth.AuthenticationException; import org.apache.http.auth.UsernamePasswordCredentials; import org.apache.http.client.ClientPro
Hello everyone! I get information from the server using the OData REST API.I have a global attribute, which is a collection: I want the server to return only one value from the collection when requested. In the request, I want to specify a value that will determine the desired collection value. I understand that such logic can not be written in the request. Therefore, I tried to implement this in the JavaScript domain file. I thought that it should be a function that first receives the values of the collection attributes from Windchill, matches them, and then uses the value passed to the function as a key and returns the desired value. I saw that in JavaScript you can use classes from Java: var EntityAttribute = Java.type('com.ptc.odata.core.entity.property.EntityAttribute'); But I do not know how to use the code to get the values of global attributes. I did not find documentation for odataWeb.jar (com.ptc.odata...) library.Tell me, please, how can I do this?Thank yo
Hello everyone! I tried to get the values of global attributes through RMI, I could not do it.Tell me, please, how can I do it?Are there other ways in java to do it?For example, through the odataWeb.jar library classes?Thanks in advance! Respectfully!
We have family tables stored in a read-only product. When the family tables are updated, they're moved from the read-only product to one with write access. The family tables can then be checked out, updated, checked back in, and moved back to the read-only product. Moving the family table along with its instances facilitates the publishing of every version of every instance. This creates thousands of unnecessary items being sent to the publisher. How do I configure the publishing rules in the Worker Agent to prohibit this behavior?
Hello everyone! Please tell me the differences between Info * Engine and OData REST API.Which technology should be chosen and which one has great prospects? Thanks in advance! Best Regards!
Could anyone post a walkthrough on how to set up VS Code for Windchill customization/tailoring?
Hello everyone! Please tell me how can I get the values of global attributes in a WTDocument using OData? Version of Windchill REST Services - 1.4. Now I can only get attributes such as number and name. Thanks in advance. Regards!
Hello folks, I'm trying to get the AfterLoader set up... when following the instructions for running the following javac -classpath %CLASSPATH%;%WT_HOME%\srclib\tool\Annotations.jar -d %wt_home%\codebase AfterEDRloader.java i get a invalid flag error... I'm a touch new... I don't think there are environment variables set on my install. What would my %CLASSPATH% be set to? Thanks for any help.
I am working with Windchill 10.2 currently and the question has come up about folder permissions. What we would like to do is create a top level product container and create folders for various groups within that container. These groups are to be kept separate from each other, meaning each group will have access to their own folder but not have access to the other folders in the container. With that being said, can we control the permissions at the folder level or will we need to create a separate container for each group? Thank you in advance for your time and have a good one.
Hello, I am building a utility which will give me the list of child part numbers as an output for a given part number and I want to expose this utility using Rest API so that the users can execute this utility themselves. I have followed the below steps to get the utility in Swagger UI but I am not able to see the added entry. i) Added the below entry in rest.properties.xconf <Property name="ext.webservices.rest.test.resources" multivalued="," default="ext.webservices.rest.test.TestUtility"/> ii) Written a java file. PFA. Please let me know if there is any other step I need to follow to achieve the expected result. Thanks in advance. Regards, Hari R
Hello, I want to know how we can implement listeners in Windchill. I have never worked on listeners, so please guide me to a proper article to implement it from the scratch. Thanks in advance. Regards, Hari R
I am looking to add some additional actions to a Configurable Links table, specifically I would like to add the submodel for export to give the user the ability to export the table to an excel spreadsheet. I've added the export submodel to the table in custom actionmodel and this does not work. I opened up a support ticket for this issue and the answered that I received is listed below. Has anybody been able to find a way around this limitation? I have set up server and install Configurable Links. I have tried to adding export actions (export to excel ,export to File etc) however it does not work. Also, tried with adding submodel but still that fails as configurable Table toolbar action is controlled by “ConfigurableLinkTableToolbarActionCommandDelegate”. Article : CS237601 for reference. This seems to limitation of this delegate class which will not allow submodel or actions governed by submodel; however it may work for few other ootb or custom action
Hello,Can anyone help on how to add the default project attribute "Number" in the Title of the Project that by default shows only the Object type and the Name?See the picture below:Thank you in advance.RegardsJohn
Hello, I have created a new custom table in SQL server to which I should populate certain data through code. I have written the sql query in code for that, I need to know how I can execute the query so that I can see the entry getting reflected in the database. Please let me know how I should proceed. Thanks and Regards, Hari R
For a few workflows I've created methods to set an object's attribute (one for String, one for TimeStamps) which have worked great over the past few years. I have a new requirement to set an int's value. I created a new method and changed the input attribute to accept an int. When I call the method, i get an odd error telling me I've violated the limit constraint. The value I'm sending is 2 which should not cause any issues. wt.system.err Administrator - com.ptc.core.meta.container.common.ConstraintException: The value for Number Of Cavities must be between -9,223,372,036,854,775,808 and 9,223,372,036,854,775,807, inclusive. The method i have is the following public static void setAttributeValue(WTObject pbo, String IBAName,int IBAValue) { PersistableAdapter obj; try { obj = new PersistableAdapter(pbo, null,Locale.US, new UpdateOperationIdentifier()); obj.load(IBAName); System.out.println("Attribute " + IBAName + " value is " + IBAValue); obj.set(IBAName,
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.