The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
I need to open a saved template say a.tpl as soon as i run a tcl file say x.tcl
basically i need to call tpl file in tcl file. How cn that be done?
Hi,
it is my lazy way to look for wrapping gui commands
open a C:/sample.tpl file in hyperview:
rename tk_getOpenFile tk_getOpenFile_Old proc tk_getOpenFile args {return Csample.tpl} hw::ExecuteMenuItem 188 .guiMainWindow.statusbar.bbox.bapply invoke .guiMainWindow.statusbar.bbox.bcancel invoke rename tk_getOpenFile '' rename tk_getOpenFile_Old tk_getOpenFile
Hi, it is my lazy way to look for wrapping gui commands open a C:/sample.tpl file in hyperview: rename tk_getOpenFile tk_getOpenFile_Old proc tk_getOpenFile args {return Csample.tpl} hw::ExecuteMenuItem 188 .guiMainWindow.statusbar.bbox.bapply invoke .guiMainWindow.statusbar.bbox.bcancel invoke rename tk_getOpenFile '' rename tk_getOpenFile_Old tk_getOpenFile
Hello tinh,
Please can you help to get this tcl script to work on HW13.0
Currently unable to run this on HW13.0.
Currently using in .cmd file
pushd C:\Program Files\Altair\13.0.110\hw\bin\win64 start hw.exe -clientconfig hwplot.dat -tcl Z:\sample.tcl
and in sample.tcl this data:
rename tk_getOpenFile tk_getOpenFile_Old proc tk_getOpenFile args {return Z:/TowingTpl.tpl} hw::ExecuteMenuItem 188 .guiMainWindow.statusbar.bbox.bapply invoke .guiMainWindow.statusbar.bbox.bcancel invoke rename tk_getOpenFile '' rename tk_getOpenFile_Old tk_getOpenFile
Please can you able to make this work.
Thanks
I am sorry that it did not work. I will check it and inform you.
It may take a bit long time because I don't use hyperview much /emoticons/default_ph34r.png' srcset='/emoticons/ph34r@2x.png 2x' title=':ph34r:' width='20' />
Hi, I am sorry that it did not work. I will check it and inform you. It may take a bit long time because I don't use hyperview much /emoticons/default_ph34r.png' srcset='/emoticons/ph34r@2x.png 2x' title=':ph34r:' width='20' />
Thank you tinh for your reply.
No problem Tinh.
Hi @Pradeep
I found it,
You have to use an HW Desktop class named 'hwIReportTemplate'
Looking for its usage in Reference Guide>Hyperworks Desktop,
You have to set parameter pointing to your *.tpl file then invoke hwIReportTemplateApply method
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…