🎉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

Hypermesh using Variables and arrays in Template

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hi,

I wonder if we can use variables in a custom template for FE out, beneath a small example.

How does one set the variable properly? set $Variable = 22, in the output the last column is 0.

 

second issue: I want to write the element and node amount to the file, I know that the 'elements' and 'nodes' returns a array:

elements

The list of elements contained in the component (entity array).  Valid for hm_getvalue query only.

from the

 

how to get theirs size and write it down?

 

  *components('','')  *before() *string('#components') *end() set $Variable = 22 *format() *fieldright(integer,id,8) *string(' ') *fieldright(integer,elements,8) *string(' ') *fieldright(integer,nodes,8) *string(' ') *fieldright(integer,$Variable,8) *end() *output()

 

Find more posts tagged with