Error during Publishing PPT using TCL
Hello everyone, I am trying to publish Hypergraph session to PPT using the below code:
proc makeppt {} { set t [clock click] hwi OpenStack hwi GetSessionHandle sess_$t sess_$t GetPublishingHandle phandle phandle GetPPTPublishHandle ppt ppt SetDestination new ppt Publish hwi CloseStack }
However I am getting tis error:
while executing "# Compiled -- no source code available error "called a copy of a compiled script""
Any help would be appreciated. Thanks
UPDATE: Issue has been solved after removing hwi CloseStack command for now
Best Answer
-
Hello Neil,
May I ask you for the version you are using? Publish to Powerpoint is not the recommended feature for generating report since 2021. We had formerly an add-on requiring an extra license, that we brought in 2021 in core with no extra license anymore. It is Report. One of the large benefit of Report is that all interactive operations are recorded with hwc and can then be re-used with tcl.
If you are not familiar yet with hwc, you can have a look at the article below:
Hope this helps,
Best Regards,
Michael Herve
0
Answers
-
Hello Neil,
May I ask you for the version you are using? Publish to Powerpoint is not the recommended feature for generating report since 2021. We had formerly an add-on requiring an extra license, that we brought in 2021 in core with no extra license anymore. It is Report. One of the large benefit of Report is that all interactive operations are recorded with hwc and can then be re-used with tcl.
If you are not familiar yet with hwc, you can have a look at the article below:
Hope this helps,
Best Regards,
Michael Herve
0 -
Michael Herve_21439 said:
Hello Neil,
May I ask you for the version you are using? Publish to Powerpoint is not the recommended feature for generating report since 2021. We had formerly an add-on requiring an extra license, that we brought in 2021 in core with no extra license anymore. It is Report. One of the large benefit of Report is that all interactive operations are recorded with hwc and can then be re-used with tcl.
If you are not familiar yet with hwc, you can have a look at the article below:
Hope this helps,
Best Regards,
Michael Herve
Thank you sir for this information. I have started working on the same using report. However, I feel tcl provides more flexibility than hwc so I was wondering how do I check tcl commands for the same.
For example, if I want to export a report, the hwc window shows below command:
hwc report create presentation Report layouttemplate="C:/........"
How do I access the handle of this report using tcl ?
Thanks0 -
Hi @Neil Handa, we are using Synera for this kind of tasks - a low-code software to automate HyperMesh or OptiStruct e.g. for the creation of PowerPoint reports. It's easier than TCL scripting as you can see the automation visually on a canvas. The software is part of the Altair Partner Alliance, so you can easily download it and give it a try: https://altair.com/synera
Here you can find some examples and see how it works:0