Update Hypermesh Extensions

tinh
tinh Altair Community Member
edited October 2022 in Community Q&A

Hello everybody

This is a script to project nodes on elems:

< a simple script so i do not make package index & installer, you have to source it or invoke menu File>Run>Tcl/Tk Script

Capture.PNG.4a9a0bbf0f62655b19297d24ec21ee35.PNG

 

 

 

I made a new function for Hypermesh to export entity by right-click on model browser

Open Hypermesh, from menu File>Run>Tcl/Tk Script , browse to Installer.tcl in folder MenuExportDeck to install it in hmcustom.tcl

 

I made a new function for Hypermesh to copy mesh among sessions

  <updated for HM2017> + <update installer.tcl to install in any folder>

Please announce me if any error.

- 'Extract here' package hmcp.zip, copy the folder 'hmcp' to anywhere you want to store.

- Open hypermesh and run Installer.tcl file by enter menu File>Run >Tcl/Tk Script

- start Hypermesh, it should shows an icon and provide some information like below:

<?xml version="1.0" encoding="UTF-8"?>guide_1.png

 

- You can copy elements selected in any current panel:

guide_2.png

 

 

 

- Once again, this topic is to introduce extensions for Hypermesh. I let updated version of hmdnd (drag and drop function) here

 

 

<updated installer.tcl so you can install it to any folder, just open hypermesh and File>Run>Tcl/tk script to run installer.tcl>

 

related post:

https://community.altair.com/community?id=community_question&sys_id=633648761b2bd0908017dc61ec4bcba6

 

- And a package to help making your own toolbars: tbopts.zip

  <update installer.tcl so you can install it to any folder>

  <fix bugs while running on HM2019.1>

 

related post 

https://community.altair.com/community?id=community_question&sys_id=ab3648761b2bd0908017dc61ec4bcba6

 

Unable to find an attachment - read this blog

Tagged:

Answers

  • evsm1982
    evsm1982 Altair Community Member
    edited May 2016

    Hello,

     

    I have tried this script and works fine in hm 13 and 14 sessions.

    Seems not OK when I have tried to copy some elements between hm 12 sessions 'Error while copying data'.

    Is there any way to add nodes option to be copied between sessions? 

    I create nodes using coordinates from one session to other.

     

    Thank you.

     

  • tinh
    tinh Altair Community Member
    edited May 2016

    Hi, 

    yes, it is possible to copy node only, i may add this feature. But just now you can copy elements and then shift f2 > add temp nodes > delete elems

    i also face problem with HM12, but should we forget it soon? higher version is better anyway

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited May 2017

    Hi @tinh,

    How to make your customization toolbar appear below 'fixed point' toolbar?

    (See yellow mark on attach picture)

    Thank you,

    Best regards,

    Iron_Man

    <?xml version="1.0" encoding="UTF-8"?>How to make this toolbar.png

  • tinh
    tinh Altair Community Member
    edited May 2017

    Hi,

    open command window and type in:

    HM_Framework::p_GetMinibarIconList Display

    you will see the code to add a button to the toolbar

     

     

    you can create your own toolbars, But hypermesh 2017 turn to release new GUI, I think much nicer, so forget these toolbars.

    refer to:

     

  • Udhay Rohith
    Udhay Rohith Altair Community Member
    edited May 2017

    Hi tinh,

     

    I have checked this with HM 2017 and it showing the following error. How can we avoid this?

    <?xml version="1.0" encoding="UTF-8"?>Capture.PNG

  • tinh
    tinh Altair Community Member
    edited May 2017

    Hello @Udhay Rohith

    Because I am using hm13, so I will check it on hm2017 and update to you soon.

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited July 2017

    Thanks @tinh for this. I am new to hypermesh and I want to learn TCL scripting for hm. Can you guide me from where I should start?

  • tinh
    tinh Altair Community Member
    edited July 2017

    hI

    To start learning tcl scripting in hm, enter menu Help > Altair Help Home .

    => Reference Guide => Hypermesh

    In Hypermesh Reference Guide, read section 'Scripts'

    do some examples, and read some sample scripts in ~altair/14.0/hm/scripts

  • tinh
    tinh Altair Community Member
    edited February 2018

    Hi tinh,

     

    I have checked this with HM 2017 and it showing the following error. How can we avoid this?

    <?xml version="1.0" encoding="UTF-8"?>Capture.PNG

     

    Hi,

    I checked it with hm2017, there is a change in dataname so output version of copied data is incorrect

     

    This is update package to use with HM2017: 

    [above link was updated, please download it]

  • tinh
    tinh Altair Community Member
    edited August 2018

    Update a function to export entity by righ-click on model browser

    (Download MenuExportDeck.zip at 1st post)

    It can save geometry of components ! so if you want do divide cad parts, you don't need to delete-then-save

    MenuExportDeck.png.fafa613841acc4ee9c1449d5579fc9b6.png.109b690ccc753b592ae8c12c8576b720.png

  • Unknown
    edited November 2020

    Hi @tinh this is a great post. Thanks for sharing. You should post this content in a Blog instead of Question...you get more points in the Community by creating these nice How-To blogs.

  • Andrew_22514
    Andrew_22514 Altair Community Member
    edited October 2022

    Hi @tinh I was wondering if you are able to share the source code of your MenuExportDeck.zip file. I noticed that the source .tcl file is bytecode. I'm looking to add my own scripts to the right-click menu in the model browser and was hoping to use your MenuExportDeck as a guide. 

    Can you also point me in the right direction for any documentation on how to do this?

     

    Thanks