Includes: Windchill API, Windchill REST Services, Info*Engine, UI Customization
Recently active
Version: Windchill 12.0 Use Case: Automating BOM imports from an external process Description: I have a tool that exports out an Excel BOM to be imported into Windchill. Has anyone worked on a method for "import from spreadsheet" that is started from an outside process? For instance my tool could run some script that would automate the import from spreadsheet workflow in Windchill for a given Excel file path. Has anyone worked on a script that does the import automation? If it helps, we use single sign on so the user would not have to authenticate with Windchill.
Version: Windchill 13.0 Use Case: We are currently hosting Windchill on a Kubernetes cluster deployed in Azure AKS. The setup consists of 4 Method Server pods and 15 Background Method Server pods, with the following resource configurations: Method Server Pods:Resource Limits: CPU: 500m Memory: 512Mi Resource Requests: CPU: 250m Memory: 256Mi Background Method Server Pods: Resource Limits: CPU: 7 cores Memory: 30Gi Resource Requests: CPU: 500m Memory: 10Gi We are running batch requests following the guidelines outlined in the Windchill REST Services documentation (https://support.ptc.com/help/windchill_rest_services/r1.6/en/index.html#page/windchill_rest_services/WCCG_RESTAPIsBatchSupport.html). Our workload involves performing approximately 25 batch requests across 10 threads simultaneously. Sample Requests: Below are examples of the batch requests being executed: --batch_request Content-Type: application/http Content-Transfer-Encoding:bin
Hello PTC-Community,While writing JUnit Tests for my Project I found an error while trying to mock the wt.maturity.MaturityHelper class.org.mockito.exceptions.base.MockitoException: Cannot instrument class wt.maturity.MaturityHelper because it or one of its supertypes could not be initializedI am using mockito 5.2.0 and JUnit 5.10.0, I also activated mockito-inline as well which should enable supertypes to be mocked, but I can't seem to figure out how to do it.Any Ideas would help, thanks in advance.
Version: Windchill 12.1 Use Case: Using Windchill REST Services to creating a Referenced By link between a Part and a DocumentDescription: I have followed this guide to successfully create a customization to create a WTPartDescribeLink using WRS: https://www.ptc.com/en/support/article/CS285572?source=search The guide also mentions how to apply the same steps for WTPartReferenceLink, but I am receiving an error and would appreciate some guidance. URL: POST https://mywindchill.portal.ptc.io:8443/Windchill/servlet/odata/ProdMgmt/Parts('OR:wt.part.WTPart:226444')/References { "ReferencedBy@odata.bind": "PTC.ProdMgmt.CustomCompanyParts('OR:wt.part.WTPart:226444')", "References@odata.bind": "PTC.DocMgmt.Documents('OR:wt.doc.WTDocument:226427')" } The error:{ "error": { "code": null, "message": "Unable to create entity - Cannot cast wt.doc.WTDocumentMaster to wt.vc.wip.Workable" } } I would really appreciate some help resolving this issue. Attache
I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.2.8How do I put an URL variable on a custom JSP page for a change activity? When I put the variable, it comes out as text.
Version: Windchill 11.1 Use Case: Set publishing priority based on naming conventionsDescription: Hi Everyone, I've a use case where I need to filter the files with naming conventions (Eg: mnpl) need to be published on high priority. Here I need customization which need to be added in Windchill properties and sample code to get this achieved. Thanks in advance,Keerthi
I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.1The CAD Publishing rule wat we have defined is not working in the UAT instance (which is an cluster instance ) but the same CAD Publishing rule is working in the lower instance .
I've been following the posts of the year's on Windchill development and how folks are managing their customizations and their steps for deployment. Being historically untrained and old school, I had opted for simplicity but these "bad habits" might be preventing me for moving forward. I have completed as restructuring of my Git repo and removed Eclipse compiled class files from its management. Just for context, I develop offline on my laptop pushing changes up to Bitbucket then down to the local repos on Dev, Test or Prod as needed. Feel free to throw stones at any point. I can duck, bob and weave. Now, I have been exploring methods to automate or script build and deploy to the Windchill directory. Ant seems to be what I've chosen to work with for the moment. Historically, I've made use of the wtSafeArea and wtCustom area to stage updates and the "installSiteChanges" to push into codebase. I also started looking at tools.xml scripts and it seems that these were desig
Hi, I would like to get the same folder and content representation of project container from Windchill to Navigate using ODATA services, I stuck at getting subfolders(level 2+). Please help me. I use the following API Windchill/servlet/odata/v6/DataAdmin/Containers('ID')/Folders?%24count=false&%24expand=Folders However, this gives me only the first level of the folder structure not the nested folders. Also, How to get the folder content? many thanks,Janakiraman
Version: Windchill 13.0 Use Case: wt.org.OrganizationServicesManager.queryPrincipals(Class, String,DirectoryContextProvider) we were using the API OrganizationServicesManager.queryPrincipals(Class, String,DirectoryContextProvider) in WIndchill12. But now in Windchill 13 it is replaced by OrganizationServicesManager.queryPrincipals(Class paramClass, Map<String, List> paramMap, DirectoryContextProvider paramDirectoryContextProvider). Previously parameters what we were passing were of type Class - wt.org.WTUser, String - "uid=" + userid and DirectoryConectProvider. now in new version, it is given as passing map, but not sure what should be the key and what should be the value. Can someone help me through it?Description: wt.org.OrganizationServicesManager.queryPrincipals(Class, String,DirectoryContextProvider)we were using the API OrganizationServicesManager.queryPrincipals(Class, String,DirectoryContextProvider) in WIndchill12. But now in Windchill 13 it is replaced by Organiza
Hi @Florent_274366 @BjoernRueegg , With reference to this topic. Is there any way to run job every week through Scheduled queue. I did WVS Job Scheduler Administration but due to some limitation there as per our requirement so I moved to schedule queue but how to run scheduled job weekly based. Thanks Afroz
Version: Windchill 13.0 Use Case: The goal is to create a URL that acts as a shortcut to download a STEP file for a CAD Document directly from the More Info page in Windchill. Instead of downloading the file manually from the Representations/Annotations table under the Content Tab, If i click a URL in the More Info section and trigger the download action for the STEP file.Description: The goal is to create a URL that acts as a shortcut to download a STEP file for a CAD Document directly from the More Info page in Windchill. Instead of downloading the file manually from the Representations/Annotations table under the Content Tab, If i click a URL in the More Info section and trigger the download action for the STEP file.
I have a requirement where if I add a specific type of WTPart to existing Part in Part structure using OOTB actions "add existing"/"add new", the Parent part to which I want to add child part should not iterate. For this I have implemented listener and catch the PRE_STORE event and could found the target object which is WTPartUsageLink. From this I got both roleA and roleB objects, and then I undo check out the roleA (parent) and then created an usagelink and finally tried to save it using PersistenceHelper.manager.insert() APIHere the issue is probably in back end after PRE_STORE , there is PRE_CHECKIN event that might be calling so I am getting exception that unable to find the checked-out copy. Here there will not be any working copy because I undo check out it using WorkInHelper.. API. My overall intension is that parent part should not iterate but need to create usagelink by adding a child part (of specific type). Note: This I need only when I am trying
Version: Windchill 12.1 Use Case: I am migrating content from 1 system to another and am trying to make it as efficient as possible and avoid exporting documents when I don't need to.Description: I am identifying documents that have been updated by looking at updateStamp and modifyStamp. If a user checks out a document and checks it back in, is there any way to identify if the content of the document changed, or it was just a metadata change event? I am trying to avoid unnecessarily exporting content if it has not changed.
I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.51. Windchill 13.0.2.5 extension manager garbled characters in Chinese environment, Windchill 13.0.2.2 extension manager is displayed normally; Pls where is the extension manager resouce file2.How to remove the menu because we found that customizing this menu does not work, how to remove the add menu in the site navigation?
Hi All, I am trying to build a Part Structure Iterator module that recursively iterates a Part structures and returns all the parts under them using the combination PartBuilder and Navigation Criteria. I found this quicker compared to WTPartHelper.service.getUsesWTParts. Now I want to customize it further by adding methods that return only leaf nodes(parts that do not have any children) and parts of a specific type. Anybody got any simpler solution? like playing with Navigation criteria?
I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.2.0We request to share documentation for <SCRIPT LANGUAGE="Windchill">Here are the errors that I facedWe have a requirement to add EC number, EC Name and Priority to any Email sent out based on EC in Email Subject Header.We plan to modify below email templates to include the required details.../Windchill/codebase/templates/workNotification1.GeneralSubject.html2.GeneralSubject_en_GB.html3.GeneralSubject_en_US.htmlWe want to add a condition to include the workflow variables to add above mentioned details only when the workflow context object/primary business Object is of type WTChangeOrder2 . We added variable with below code , it works fine. The required details are added in the email Subject.<SCRIPT LANGUAGE=Windchill> <!-- beginSubject --> </SCRIPT><SCRIPT LANGUAGE=Windchill> <!-- addText text="EC " --> </SCRIPT><SCRIPT LANGUAGE=Windchill> <!-- getProcessVariable var
Version: Windchill 12.1 Use Case: In the process of implementing additional filestypes for CAD documents, following this specific guide: https://www.ptc.com/en/support/article/CS81396?&as=1Description: The only description I have found for restarting the MethodServers are this following guide: Using MBeans to Stop or Restart Method Servers This, though does not work for maybe numeroes reasonsThere was no MethodServer to connect to Starting a methodServer from the windows menu, gives a new server, but com.ptc does no have any methodServers + the following errors are thrown all the time
Version: Windchill 13.0 Use Case: Is there a possibility to use publish rules, and for additional type to have solidworks part and assembly attached as an attachment of Creo part and Creo assembly (EPM docs), like we do for a step file or pdf for a drawing?Description: We have collaboration license (for solidworks), and we can export files to .sldprt and .sldasm. But can it be used in publish rules like we are using for step files. Bellow is part of .xml file we are using for publishing step files after check-in of EPMdoc types. <!-- PART --><additional-files name="part_files"><file display-label="STEP" type="step" output-prefix="3d" output-suffix="step" default="true"/></additional-files><!-- ASSEMBLY --><additional-files name="assembly_files"><file display-label="STEP" type="step" output-prefix="3d" output-suffix="stepasm" default="true"/></additional-files> There is 2 articles i found but i wanted to hear opinion of othe
Version: Windchill 13.0 Use Case: Is Hanging change link same as Change Version Link ( redline ) ? If no , how is it different than redline ?Description: Need Information.
I am using Windchill PDMLink Release 12.0 and Datecode with CPS 12.0.0.4根据分类属性内部名称+分类属性值查询物料信息的OData REST APIs、REST APIs有哪些? $filter 的构造条件怎么实现。Here are the errors that I faced{"error": {"code": null,"message": "The property 'Attributes', used in a query expression, is not defined in type 'PTC.ProdMgmt.Part'."}}
I am using Windchill PDMLink Release 13.0 and Datecode with CPS 13.0.0.0从电子表格导入,按钮权限如何开放给用户Here are the errors that I faced无
Hello,I’m developing a custom application in C# to integrate with Windchill. My goal is to:List the projects shown under "Recent Projects"When a project is selected, display the related objects such as WTParts, WTDocuments, EPMDocuments, etc.I have already found and listed the Recent Projects via SQL (likely using the Project2 table and related filters), but I have not been able to identify how to retrieve the associated content (e.g. WTPart, WTDocument) linked to each project.Could you please help me with:How to get WTParts, WTDocuments, or other content linked to these Recent Projects?Whether there is a specific table or join that I should be using in SQL?Or alternatively, is there a REST API (WRS) endpoint that provides this data?I would greatly appreciate any guidance or documentation on this.Thank you in advance.
I have a WTDocument substype in that I have made one soft attribute and need to get WTDocument subtype based on the soft attribute value, what have created. How to query based on that soft attribute using queryspec and queryresult through code,
package ext.utility import wt.associativity.EquivalenceLink; import wt.change2.WTChangeActivity2; import wt.change2.WTChangeIssue; import wt.change2.WTChangeOrder2; import wt.change2.WTChangeRequest2; import wt.doc.WTDocument; import wt.epm.EPMDocument; import wt.epm.structure.EPMDescribeLink; import wt.epm.structure.EPMMemberLink; import wt.epm.structure.EPMReferenceLink; import wt.fc.Persistable; import wt.fc.PersistenceHelper; import wt.fc.PersistenceServerHelper; import wt.fc.QueryResult; import wt.maturity.PromotionNotice; import wt.method.RemoteAccess; import wt.method.RemoteMethodServer; import wt.part.WTPart; import wt.part.WTPartAlternateLink; import wt.part.WTPartDescribeLink; import wt.part.WTPartUsageLink; import wt.query.QuerySpec; import wt.session.SessionServerHelper; import wt.util.WTException; import wt.util.WTPropertyVetoException; import wt.vc.VersionControlHelper; import wt.vc.wip.WorkInProgressHelper; import wt.vc.wip.Workable; import wt.workflow.work.WorkItem; p
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.