Script creation walkthrough (element sets by sphere)

Ben Buchanan
Ben Buchanan
Altair Employee
edited December 2021 in Altair HyperWorks

The following video goes through the creation of a simple script in HyperWorks that does the following:

  1. Prompts the user for nodes, radius and set name prefix
  2. For each node the user selects the script selects elements by a sphere centered at the selected node with the given radius
  3. Creates sets for each element selection adding the prefix to the set name

The script uses commands to get input from the user such as hm_getfloat, *createmarkpanel and hm_getstring.  It also uses frequently used commands such as hm_getvalue, hm_getincrementalname and *createentity.

The final script can be found attached to this blog.

Any questions about the video? Any other videos you would like to see on scripting or customization?