Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
I am working on our company's CI/CD and I want to add logic to perform certain functions when certain files/paths are changed since the last pipeline run. One of these action is the restartAllLocalMethodServers command found in JConsole. I'm familiar with running it from JConsole, but can't seem to find a class path to try calling it from command line. If there is no main function for whatever class this is built into, it'd be worth writing my own java utility class to call it. How can I perform a restartAllLocalMethodServers through Command Line?
Hello, I want to restrict some of the users from deleting classification node in Classification Administration, they should have access only to view the nodes. Please let me know the feasibility. Available article pertaining to the mentioned requirement: https://www.ptc.com/en/support/article/CS232933 Thanks in advance. Regards, Sha
This exception coming on wc11.1 only. A persistence error occurred. System message follows:Nested exception is: wt.associationRules.AssociationValidationException: Removing an association between "Change Notice - 00001" and "Change Task - 00001" violates the required role constraint of "Association Rule - PTC000007". The association is required for "Change Notice - 00001". Please check sample code as below : // Get change Task here..QueryResult changeActivityList = ChangeHelper2.service.getChangeActivities(changenotice);while (changeActivityList.hasMoreElements()) { //get ChangeTask objChangeActivity2 changeActivity = (ChangeActivity2) changeActivityList.nextElement(); //get Affected objQueryResult qr2 = PersistenceHelper.manager.navigate(changeActivity,AffectedActivityData.ALL_ROLES, AffectedActivityData.class, false);while (qr2.hasMoreElements()) {AffectedActivityData affecteddata = (AffectedActivityData) qr2.nextElement();ChangeHelper2.service.deleteAffectedActiv
Hello, I have an info engine engine task registered which will be called when an interface sends any content to Windchill. I have written my task xml to generate the wsdl, but I want to know the necessity of adding webjects in the xml, because even after adding/removing the webjects I am getting the same wsdl. Please provide your inputs on the need of webjects. Webject in my xml: <ie:webject name="Create-Group" type="GRP"><ie:param name="GROUP_OUT" data="feedback"/><ie:param name="DELIMITER" data="^"/><ie:param name="ELEMENT" data="output=<%=messageFromMyMethod%>"/></ie:webject> Thanks in advance. Regards, Sha
Good day, I would like to know whether it is possible to check for a duplicate Variant Specification in the Product Family Matrix Editor? When creating a new variant from the overloaded product structure using the Actions > Configure selection, the flow checks whether a similar/duplicate variant already exists. In the matrix editor it is however possible to allocate any component without validation? Appreciate the help. Thanks
Hi, Just checking to see if anyone else has experienced this before. I have mapped custom parameters in Creo to Windchill EPMDocuments and Part in the Type and Attribute manager. Now, when I check in an assembly from Creo the corresponding attributes get created/updated on the CAD Document as well as the WTPart in Windchill. However, when I check in a single part the corresponding attributes in Windchill only get created/updated on the CAD Document but all of the attribute values on the WTPart is blank. In all previous experiences the mapping has always worked on both assemblies as well as single parts. Anyone perhaps an idea of what I am doing wrong? Appreciate the assistance.
I'm able to create EPMDocuments through the API and through the EnterpriseHelper via a save-as but does anyone know the workflow to use when creating one from a Template stored in Windchill? The API documentation looks like we need to do the following: 1. Call EnterpriseHelper.service.saveCopy(RevisionControlled original) 2. Edit any attribute values on the object that we want to change 3. Call EnterpriseHelper.service.saveFromTemplateObject(RevisionControlled original, RevisionControlled copy) This workflow works and successfully creates an EPMDocument but it doesn't carry forward any of the data from the template. All meta data fields are cleared and the content is not copied (but this is ok because we don't care about the content as we'll be uploading new content any way) I'm assuming I'm doing something wrong or my understanding of the Java Doc is wrong but I can't find any other resources on how to do this. I've been able to use the above workflow and be
Hi All, I'm upgrading from Windchill 9 to 11.1 and I have a JCA / DataUtility customizion I want to convert using OOTB DataUtility ID inside Type and Attribute Manager, but it doesn't work. The customization consists in some soft attribute (eg: DocumentCategory_ETS) of a soft type (intra.elica.upgradesvil.ETS subtype of ReferenceDocument subtype of WTDocument) to be rendered as ComboBox. I followed all instructions and tips from Windchill help center and support cases. Following my code and configurations: 1) site.xconf <Property name="wt.services/svc/default/com.ptc.core.components.descriptor.DataUtility/ETSDataUtility/java.lang.Object/0" overridable="true" targetFile="codebase/service.properties" value="ext.elica.doc.datautility.ETSDataUtility/duplicate"/> 2) propagated value inside components.dataUtilities.properties wt.services/svc/default/com.ptc.core.components.descriptor.DataUtility
Hi, Just want to find out if someone has tried such customization before. We would like attributes to still be populated/edited from the Creo side but it should be read-only in the Windchill user interface. I have played around in Attribute manager but making settings read-only there then prohibits Creo from being able to save to Windchill. Appreciate your help. Thank you
How to set the target folder for part within a customized auto association? I read support article CS277056, there they talk about the EPMWorkspaceHelper.manager.setTargetFolder API. But when I tried to use it, it needs the new WTPart to be persistence, but on check in an error occurres with the message "The part is persistent!". When the WTPart is not persistent the setTargetFolder function gets a null instead of a object id and doesn't execute. I get the following error: Cannot set target folder for objects that are not newly created. 1 out of 1 objects are not new. Does someone have experience with it, and knows a solution? Because I want the new WTParts to be in the same context as the EPMDocument when changing folder for new EPMDocument but not in the same folder, so the preference 'Store New Parts with CAD Documents' is not a solution.
Hello We want to restict user login in another pc once he login in one pc it should be locked not able to login in another pc by that credentials. Regards,Dhananjay
Hello, Is there a way to export MPMOperations from one server and import them to another server? Thank you,
Hello, I want to add a custom button to the Windchill workflow task. I am not able to find any clear information on how to implement the button. Please provide your inputs/suggestions. Thanks in advance. Regards, Hari R
Hi all, In my case, I have a content link between CAD Drawing and WTPart. When CAD Drawing is revised , content link will be lost with the WTPart. I know that there is a preference in Org level to carry forward the content but it applies to all libraries. My client wants this logic only for few libraries and hence I may need code to achieve this functionality after revising CAD Drawing. Please suggest. Regards.
Hello,so i need to get all the items from a table, my method was to get the data with a custom Form Processor using the list of objectBean from the parameter of the post process method, but i figured out that i getting only a limited number of object depending of the scroll size of my table area. Do someone know how to fix that ? Get the list from nmcommandbean or increase the cache size in JS.Is there a mean to add JS in my tableBuilder to increase JS cache ? Thanks for your attention.
Anyone know of a way for atttribute B to use a truncated string of attribute A Attribute A = 12345-67-89 Attribute B = 12345
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!?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.