Jump to content
tinh

Update Hypermesh Extensions

Recommended Posts

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

ProjectNodesToElems.tcl

Capture.PNG.4a9a0bbf0f62655b19297d24ec21ee35.PNG

 

 

 

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

MenuExportDeck.zip

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

Related post:

 

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

hmcp.zip  <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:

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

 

tkdnd2.6.zip 

<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:

 

 

 

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

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

 

related post 

 

Edited by tinh
Update tbopts.zip for hypermesh installed in Program Files

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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:

 

Share this post


Link to post
Share on other sites

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

MEIYARASU19 and Rahul R like this

Share this post


Link to post
Share on other sites
On 5/11/2017 at 8:38 PM, Udhay Rohith said:

Hi tinh,

 

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

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]

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...