Functions

The HyperWorks Desktop Template Functions are available to query information in the database, perform mathematical functions, and query user-defined tables. A template function begins with the symbol @ and is followed by the variable arguments in parentheses. Template functions are always placed between square brackets [].

The following example finds the length of all weld elements and outputs that information to a file:
*elements(3,0,"","")
    *format()
        *field(integer,id,10)
        *string(" ")
        *field(real,[@magnitude(node1.x - node2.x,node1.y - node2.y,node1.z - node2.z)],10)
    *end()
*output()