Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Is there a way to modify the additional files published names by using model parameters (like revision, or version, for example) as a suffix? What I'd like to do is something like this: <publish on="create-representation" display-label="Publish w/ additional files" additional-files="dump_to_all" output-suffix=">{revision parameter} </> but as another post noted, the keys aren't available.
Does anyone know the syntax required to access the comments entered for each promotion object line on a promotion request? I have the syntax necessary to loop through each object in the baseline, but these are the actual EPMDocuments and don't contain the comments that are part of the promotion request (as far as I can tell.) wt.maturity.StandardMaturityService p = new wt.maturity.StandardMaturityService(); wt.maturity.PromotionNotice pn =(wt.maturity.PromotionNotice)primaryBusinessObject; wt.fc.QueryResult pn_targets; pn_targets = (wt.fc.QueryResult) p.getBaselineItems(pn); wt.epm.EPMDocument epmDoc = new wt.epm.EPMDocument(); while (pn_targets.hasMoreElements()) { Object obj =pn_targets.nextElement(); String objType =obj.getClass().getName(); if (objType.equals("wt.epm.EPMDocument")) { epmDoc = (wt.epm.EPMDocument)obj; String epmNumber = epmDoc.getNumber().toString(); String epmName = epmDoc.getName(); String epmCADName = epmDoc.getCADName(); String epmVersion =
Hi, I am trying to rename a published additional file of pdf type and download it to local.I referred articles CS216668 & CS252900 that suggest using afterloader hook methods.I was able to rename the primary content of the published file from the attribute values but however am not able to download the same to local.The articles show 2 methods - CS252900 renames the primary content of additional file using attribute info but no provision to download the same CS216668 creates and saves a copy of the viewable as an attachment, renames it and is downloaded. I am unable to combine both, as in rename the primary content of the additional file and downaload the same. I tried creating a seperate workflow containing a 'download to local' expression at Released state for the published additonal file but was only successful the first time.For the next iteration published the workflow isnt triggered and no file is downloaded. Anybody has any thoughts on this?
I'm currently using Selenium WebDriver to automate testing for Windchill, and I'm running into a problem. When the authentication window pops up, it pops up as an alert. Since it pops up as an alert, I can't automate the input of the username and password. There's no functions that allow for it. Any tips on how to fix this? I'm using Selenium 3, Java 8 and Firefox 45.
Tell me please where to write the code https://www.ptc.com/en/support/article?n=CS150777 , tried many options, but failed nothing. Here is the code to add a table to the page Description How to add Promotion Objects to the Instructions field on the task's details page User should see all the objects being promoted on the same page to avoid multiple clicks for navigating to the Promotion Objects page How to add Promotion Target Objects in workflow Email Notification Resolution Create global variable (say var of type String) Before activity add expression robot Append string to have all the promotion objects' numbers/names In activity create local variable Use that local variable in instructions Following code can be used to get the promotion target objects wt.maturity.PromotionNotice notice = (wt.maturity.PromotionNotice)primaryBusinessObject; wt.fc.QueryResult results = wt.maturity.Ma
Hello, can you please tell me how to edit the templates? I tried to change the process template on the "Task" page, but when updating, creating a new "Promotion Request", the process did not change, pressing the "Check in" button did not help either
When we create a file in Creo and assign the pro_mp_mass to a parameter named Weight, we save the file and it uploads the weight to a Windchill attribute named Weight. We can see the value of weight in the Parameters screen in Creo in pounds, but in the Workspace. the weight has been converted to Kg. Where do you apply the setting in Windchill that weights are in pounds or at least in the same units as they are in Creo?
I wanted to display the group name of the user as the name of the action.
I'm new to this forum and looking for information on how to get started with the Windchill API. It is very difficult for me to get started. A few words in advance: I have been working as a designer with Inventor since 2008 and started programming Inventor at that time. Meanwhile I have also developed and released some Inventor apps. With VB.NET and VBA I know my way around. My previous searches didn't give me a clue where to start. Which references do I have to set and is there somewhere a reasonable manual with an example. I checked the eSupport and found a lot of documents, but nothing that really helps at my actual point of skills. I’m not a Windchill administrator, only a user with some basic knowledge. Now to my request. I want to check from an Inventor add in whether a file is checked out in the workspace or not. What is the workflow and required tools to achieve the need information? Is there an API object tree to get an overview? I’m quite sure this are onl
I have done some cursory tests and cannot get the system to default to blank when Parts are added to Affected Data. I cleared the default value and I do have an Enumerated list of values for each Inventory Disposition column. I want to ensure there is positive indicators of a choice for Inventory Dispositions, not just accepting the defaults. Ideally, I would like blank to show up indicating that nothing was selected yet. Tried restarting server but seems to always default to first value in enumerated list though blank is a choice on the row above in drop down. I do not have a setting that value is required in constraints.
A common complaint from our users is that they cannot tell what the task is related to when they are sent an Approval task email or an overdue email. Anyone know how to add the title of the CR in these notifications?
Hi, I want to change the default object (part, asm) name on Creo to follow a certain rule. Based on Windchill documents, this is done via OIR admin. I've had a look at a lot of articles and dicussions in PTC community regarding Object Initialization Rule (OIR), and it all points to goto OIR admin, edit the .xml under type 'Part'. Below is an extract from the .xml file. From what I understand, all I need to do is add a new line <Arg></Arg> under id="number" with my new numbering format. This doesn't seem to be doing anything. When I create a new part, it still does the default PRT0001 and increments 1 for the next new parts. What am I missing here? <AttributeValues objType="wt.part.WTPart"> ....... <AttrValueid="number"algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator"ignore="false"force="false"final="false"><Value algorithm="wt.rule.algorithm.BooleanBranch"><Value algorithm="wt.rule.
We are using Windchill 11.0 M030. We have several Products. 1) The Products that are no longer in use (MA & TC), but we want to keep in Windchill, should not appear in the search results. 2) We would like to hide the inactive Products and their contents from users. Is there a way to hide a product and it's contents from users but they remain visible for Admin users?
I have made a copy of the Part and EPM Document OIRs and made changes to the lifecycle used in them from basic to my customized lifecycle for parts. When I create a New Part in a workspace, it gets created but uses the two-phase lifecycle instead of my own. I am assuming that this uses the Part OIR, but maybe not and that may be driving the issue. Same when I create a New CAD Document, which I assume uses the EPM Document OIR. If these are not the right OIRs to modify, could someone point me in the right direction? Windchill 11.0 M030 CPS16
I have a requirement where I want to restrict the selection of past dates in need date fields in Windchill 11.0, If I update calendar.js it affects searches as well, Any recommendations other than workflow business rules?
After reading and watching the videos in https://www.ptc.com/en/support/article?n=CS241583 I have created a new versioning scheme put used the same numbers and letters as the OOTB versioning scheme, just with a new series name and seed names. Portion of file included: <?xml version="1.0" encoding="UTF-8"?><scheme><series name="StateBased"><seed name="NUMERIC"><value>1</value>(deleted lines)<value>99</value></seed><seed name="MILSTD"><value>-</value><value>A</value>(deleted lines)<value>AY</value></seed></series>-<series name="CentrusStateBased"><seed name="Draft"><value>A</value>(deleted lines)<value>AY</value></seed><seed name="Release"><value>0</value><value>1</value>(deleted lines)<value>99</value></seed></series></scheme> I can create Documents just fine, but crea
I am creating a new Create Document layout. By default, I see under the Primary Content Source area of the layout, a selection box for where the file is and the file name box. I would like to add to this section of the screen layout. In Type manager, I can modify the layout and add fields, but they go either in the Attributes section or the Business section. How do I get these fields into the Primary Content Source section? Windchill 11.0 m030 CPS16
The customer opened this case with the description The Hyperlink attribute is currently limited to 200 characters, but this is too short to contain links to Creo View annotations within Windchill itself. Customer needs to increase the length to about 600 characters or come up with another means of linking fields/attributes in a WTPart subtype to specific Creo View annotations. I suggested the following articles as possibilities here CS155068 – How to extend the length of the WTPart's Name attribute https://www.ptc.com/en/support/article?n=CS155068 CS36423 – Is it possible to extend the column length of Modeled Attributes of type String https://www.ptc.com/en/support/article?n=CS36423 CS24652 – What is the maximum length of a global string attribute https://www.ptc.com/en/support/article?n=CS24652 CS213940 – Is it possible to increase the column length of a modeled attribute to accept over 1333 characters https://www.ptc.com/en/su
In the Windchill GUI, on the structure tab (info page of a WTPart), I can define and reuse Filter for the configuration. See the following immage:I would like to export the part structure using one of the saved filter I created in Windchill. My first approach is to try to find the instance of ConfigSpec, but I could not really find the way to go.Is the following a good starting point or should I look for "Filter" instead of ConfigSpec?: ConfigService.getConfigSpecFor(NavCriteriaContext(....)) Thanks,LM
Please, tell me how to add the table "Promotion Objects" from the page "Promotion Request" (screenshot 1.jpg) to the "Tasks" page (screenshot 2.jpg), so it turned out - screeshot 3.jpg ?
I have created a new Windchill instance (11.0 M030 CPS16) and created a new org admin user. When I go to do things, the OrgAdmin does not have rights to do so. I cannot see the Libraries or Products that wcadmin created. I cannot do a SaveAs to a profile at the org level. I just relogged as the Librarian and that account can see all 3 libraries. What setting is missing in a new setup that allows the org admin (and other users) to do common tasks?
Has anyone increased the number of WS frames and then had performance issues that could be tied to the increased number of Frames being saved/cached? What is the max number of WS frames that you have set it to without noticing any problems? Although the default currently is 40 (WC11), I have had mine set to 100 ever since we started using them (probably around WC 9.1). I don't think any problems I have had are tied to it, but hard to be certain. I want to change it for everyone. I also read in an old thread that, unfortunately, it is not 40 frames per WS but 40 per user. So even 100 seems low in that context. The good news is that the help file says that only frames go toward that subtotal and not all events in the WS event manager.
HI all, I am using Apply-Service webject to fetch alternates from part. Below is the code snippet. <ie:webject name="Apply-Service" type="OBJ"> <ie:param name="INSTANCE" data="${FORM[]instance[]}" default="windchill"/> <ie:param name="SERVICE" data="wt.part.WTPartHelper"/> <ie:param name="METHOD" data="getAlternatesWTPartMasters"/> <ie:param name="STATIC" data="false"/> <ie:param name="GROUP_IN" data="parts"/> <ie:param name="ARG" data="wt.part.WTPartMaster=masterReference" delim=";"/> <ie:param name="GROUP_OUT" data="alt"/></ie:webject> For one particular part , the code executes till last line i.e. "<ie:param name="GROUP_OUT" data="alt"/>" . After that the control is not coming ou
Hi Folks, Anyone know of a way to create link to the highest version of a primary content file? If not, how about a static link to the object itself? Perhaps post a link on a document: Create a JSP page that accepts a parameter (docNumber). Then it has to get the latest version (Released for Production) of the document by querying, from a URL for the information page and forward it to that URL.
How to create new documents from the templates of a specific library and attaching the newly created documents as related objects automatically when creating a new WTpart , Can anyone help me with this??
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.