Script creation walkthrough (element sets by sphere)
Ben Buchanan
Altair Employee
The following video goes through the creation of a simple script in HyperWorks that does the following:
- Prompts the user for nodes, radius and set name prefix
- For each node the user selects the script selects elements by a sphere centered at the selected node with the given radius
- 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?
0