🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Customize Pull-Down Menu's using CSV file in Hyperworks

User: "manoj kandukuri"
Altair Employee
Updated by manoj kandukuri

Overview

The attached zip file contains a script that parses a comma-separated values (CSV) file and generates a dynamic XML file to automatically populate pull-down menus in HyperMesh. Hierarchy in the pull-down menus is created based on the first three columns in the CSV file, namely:  main block, Sub-main, Sub-Group.

Where:

Column Name

Description

main block

Parent navigation item

Sub-main

Sub-menu navigation item

Sub-Group

Second level of navigation item


Supported attributes to the menu button, like text, source/command, tooltip, visibility, etc., are listed in the other columns.

In this example, the following columns are included:

Column Name

Description

text

Name of the tool

source path

Command/source executed when controls are selected

command

Procedure call, if the source file is passed in the “source path” column

tooltip

Tooltip text displayed when hovering over the region

visible

Conditional attribute to show/hide any tags contained within it based on the profiles specified. Visible conditions can be nested.  For example:

  Like: {ProfileName1, ProfileName2, ProfileName3}


*Note: visible attribute is supported in versions 2021.2 or above.

Usage/Installation Instructions

View the below video for a demonstration:


Find more posts tagged with

Comments

Sort by:
1 - 2 of 21
    User: "Jack LC_22402"
    Altair Community Member
    Updated by Jack LC_22402

    Hello,

    thank you for the script and the video instructions, I tried it and it worked to me.

    What I didn't understand is how to fix the menu, since each time I open Hyperworks I have to reload the script.
    In the previous HM release I had a hmcustom.tcl in the launch folder and HM automatically load my personal menu, now it doesn't work.

    Thanks in advance for the help

    User: "Ajay Prabhakaran"
    Altair Community Member
    Updated by Ajay Prabhakaran

    Hello Ben,

    Could you please provide me the hmcustom tcl file also??

     

Share projects with the Community

Share your models, scripts, workspaces, and more with the Altair Community.
New Exchange Project