Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
IS there any API to change Created by and modified by of EPMDOCUMENT/WTPart in windchill?
Where should I get "v$session.osuser " And how to change the String limit of osuser name.
Hello, I want to introduce a filter for an action which should restrict a certain set of users. The solution I thought was to associate the set of users to a group, created under Organization context, and the filter will validate if the current user belongs to the said group and if so the action will be hidden. I used the below mentioned API to find the group based on the user but it is not giving me any output i.e. enumeration is empty Enumeration enumeration = OrganizationServicesHelper.manager.parentGroups(validationCriteria.getUser().getPrincipal(),false); Please provide an alternative way or an API I can implement. Thanks and Regards, Hari R
Hi All,I want to create a "Manufacturing" view for the part included in the Change task, but I want to do it only if it doesn't exist.Now I use this code without checking. And I want to add something like " if Manufacturing view for obj ==null then" wt.fc.QueryResult qr = wt.change2.ChangeHelper2.service.getChangeablesBefore((wt.change2.ChangeOrderIfc) primaryBusinessObject);while(qr.hasMoreElements()){ wt.fc.WTObject obj =(wt.fc.WTObject) qr.nextElement(); if(obj instanceof wt.part.WTPart) { wt.part.WTPart prt = (wt.part.WTPart) obj; wt.part.WTPart ManufPart = (wt.part.WTPart) ManufPart = (wt.vc.views.ViewManageable)obj, "Manufacturing") wt.vc.views.ViewHelper.service.newBranchForView((wt.vc.views.ViewManageable)obj, "Manufacturing"); ManufPart = (wt.part.WTPart)wt.fc.PersistenceHelper.manager.store(Man
Has anyone gotten hotswap agent to work with Windchill? I tried jRebel last week and I was impressed but if I can get similar functionality with HotSwap then I rather not get into the weeds of Software Purchase Authorization at work especially since I'm not doing heavy Windchill customizations at the moment.
Here is my issue: There is a feature that is able to discard a part. But I don't want to discard the part when it is "Resulting Objects" in some ChangeOrder or ChangeRequest.I've tried to get the part's related changeorder, but when the part was being revised in ChangeActivity, I can't get the related changeorder with the part number because its version has been changed. Is there a solution can handle this problem?
Hello all,How to edit table view in index.html file obtained by downloading zipped Package in Windchill PDMLink? Thanks.
Hello, I want to extend DefaultDownstreamLocationDelegate to define my own destination path for the downstream objects, upon overriding the method getSTAInitialLocationValueBean(), I see STAHelper cannot be resolved since the class is not public. Can someone let me know what is the correct way to approach this? Thanks in advance.
Hi All. I have a requirement to store parts while traversing through a multi level BOM structure. So far I have been able to recursively print all the child parts but having a problem add all parts to a list or map ( only adds values of 1st level BOM but not other levels).Here is the code I am using; public static List<WTPart> getChildParts(WTPart parentPart) throws WTException {ArrayList<WTPart> info = new ArrayList<WTPart>();Map<String, List<String>> map = new HashMap<String,List<String>>();QueryResult queryResult= WTPartHelper.service.getUsesWTParts(parentPart, new LatestConfigSpec());// int structure = 1;WTPart part=null;if (queryResult != null){while(queryResult.hasMoreElements()){Persistable[] persistable=(Persistable[])queryResult.nextElement();part=(WTPart)persistable[1];printMessageToConsole(part.getNumber());info.add(part);//WTPartUsageLink partLink=(WTPartUsageLink)persistable[0];getChildParts(part);}}return info;} I am als
Hello, I want to introduce an attribute to a WTDocument, when creating a new object, users must be able to use this attribute and upload attachments to the document upon clicking on this attribute. The reason why I do not want to use Set Attachments is, I want to control the type of document being attached and validate if there is an existing document of the same type in the attachments before attaching a new document. I am thinking of introducing a data utility where I can use GUIComponent to implement this requirement, I wanted to know if there is any other way to achieve this requirement, kindly share your options. Thanks.
Hello, I have a requirement to trigger multi-level BOM report in a specific format which is an OOTB functionality (see attached photo) from a wizard once user clicks on a button. How would I go about triggering this functionality from a form processor or some other mechanism?
Hi All, I'm stuck on a problem where im not able to get the custom attribute on the picker callback, the tags and the scripts written in the jsp page is as specified below. Tag written in the jsp page. <wctags:itemPicker id="pickerID" objectType="WCTYPE|wt.doc.WTDocument|Type1|Type2" componentId="pickerID" searchResultsViewId="pickerID.view" label="Submitter" pickerTitle="Picker Title" pickerCallback="PickerCallback1" pickedAttributes="number,attrInternalName1,attrInternalName2,attrInternalName3" /> <script> function PickerCallback1(objects,pickerID) { var myJSONObjects = objects.pickedObject; for (var i = 0; i < myJSONObjects.length; i++) { var str = JSON.stringify(myJSONObjects[i]); alert(str); var fullName = myJSONObjects[i]["attrInternalName1"]; alert(fullName); } } </script> Output on alert : "undefined" @HelesicPetr @BjoernRueegg
I have the code (below) to check if a role has someone assigned to it or not. What I need is how to change the code to check for two different roles to make sure that they are both assigned. wt.workflow.work.WfAssignedActivity act = (wt.workflow.work.WfAssignedActivity) self.getObject(); wt.workflow.engine.WfProcess pro = (wt.workflow.engine.WfProcess) act.getParentProcess(); wt.team.Team t = wt.team.TeamHelper.service.getTeam(pro); java.util.Map members = t.getRolePrincipalMap(); java.util.Set keys = members.keySet(); java.util.Iterator itr = keys.iterator(); while (itr.hasNext()) { wt.project.Role role = (wt.project.Role) itr.next(); System.out.println("Role-=-=-=" + role); if (role.toString().equalsIgnoreCase("MyCustomRole")) { java.util.ArrayList users = (java.util.ArrayList) members.get(role); //If there is no user in MyCustomRole role throw exception if (users.isEmpty()) { throw new Exception("Select user for " + role.getDisplay()); } }
Hello, I have a requirement where I need to introduce an attribute to an object type which should allow users to look up Windchill users and add them as a value for that attribute, I would use this value and populate the team members for that object. Requesting you to shed some light on the possible solution. Thanks,Hari
Hello everybody, I need kindly your support to try to understand the accesses rights menagement in PDMLink. If I delete an access to a single user context, it is no longer possible to open the assembled file which instead contains references to so many contexts.This is an example.The structure of the file XXX.asm contains parts that refer to the following contexts:EH0001_PARTS_IN_BODY_SERIESEH0002_COMPACT_DIRECTIONAL_VALVES_SERIESEH0003_MECHANICAL_VALVE_SERIESEH0004_INTEGRATED_CIRCUIT_SERIES.Although the user have access to ALL the contexts EXCEPT EH0003_MECHANICAL_VALVE_SERIES it is not possible to open the assembly. The user had access before, but now he no longer has it by decision of the board management.How can this be solved? Is there an option or configuration change in PDMLink?Thanks a lot
Can someone provide the list of Rest APIs or CLI command for Task entity of the PLM software
Is it possible for me to simply exceed the 500 character limit of the string Length?
Hi all, I am having an issue with exporting as .step file from Windchill. We commonly do this to liason with suppliers, of course. My workflow is something like this: I save a .prt as as .stp and have it attached to the original .prt content in Windchill. Then, when I want to export this, I go to the part in Windchill and press the download button (circled in orange in attached screenshot). However, it brings up the prompt that can be seen in the middle of the attached screenshot where it tries to import the step file that I would like to export. This feature works how I want it to when I login to Windchill in a browser like Chrome, but I want it to work the same way in the Creo browser. Any idea why this is? How can I ensure the download button actually downloads the file, not imports it as a new part. I have no problem with this workflow when I do the same thing with .stl files. Thank you!Jeff Houston
I created Windchill Calculated attributes, I want these attributes to be shown in the Primary Attributes section according to some conditions, using the new rule, and I want them not to appear in some conditions. How can I use the Calculated attributes I created as a new rule?
Hello! Has anyone else built an extension or integration with Windchill or other PTC product? Specifically, I'm looking to build an API tool that helps extract and map certain data fields. Have any developers had success getting a developer account to to build with before? For experimentation? Thank you!
Hello All, I was wondering if it is possible to attach a PDF document to a WTPart like how we have secondary attachments for WTDocuments. Can you let me know feasibility of the same? Thanks,Hari
Hello guys,Could you please share an example of using Windchill Java api with function INSTR . SQL e.g.SELECT count(*)FROM LCSPalette, LCSProductWHERE INSTR(LCSPalette.PTC_STR_12TYPEINFOLCSPALETTE, LCSProduct.PTC_STR_21TYPEINFOLCSPRODUCT) > 1
Hello all, hope you are safe- I have created a JNDI Adapter to retrieve all the user from Active Directory. The Adapter and all the configuration was created using an AD user who can "see" all AD users. In AD we have several ORG. that does not match with the 2 Organizations created in Windchill. Any of you know a trick on how to map the AD users (from like 5 different ORG) to the 2 Windchill Organizations. Thanks in advance for your time reading this post. Luis
Hello, I have a requirement where I have to populate an attribute if a specific value was selected for one of the other attributes. The user will not view the object after editing, so I cannot make of data utility and layout. I know that we can use a data utility to record the onchange() event using comboBox and invoke a jsp file. But I am not sure what exactly to be done after invoking a method in jsp file since I want to invoke a java method which will do a set of validation and manipulation to calculate the attribute value. Requesting all to shed some light on the possible solution. Thanks,Hari
How can I get the associated WTPart from an MPMProcessPlan programmatically?
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.