Error during Publishing PPT using TCL

Neil Handa
Neil Handa Altair Community Member
edited March 25 in Community Q&A

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

Tagged:

Best Answer

Answers

  • Michael Herve_21439
    Michael Herve_21439
    Altair Employee
    edited July 2023 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:

    https://community.altair.com/community?id=community_blog&sys_id=7fd55d931b5fa510507ca6442a4bcb52&view_source=searchResult

     

    Hope this helps,

     

    Best Regards,

    Michael Herve

  • Neil Handa
    Neil Handa Altair Community Member
    edited July 2023

    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:

    https://community.altair.com/community?id=community_blog&sys_id=7fd55d931b5fa510507ca6442a4bcb52&view_source=searchResult

     

    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 ?
    Thanks

  • Moritz Maier
    Moritz Maier New Altair Community Member
    edited March 25

    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: