*components()

Starts a component block.

Syntax

*components (card_image_name, mat_card_image_name)

Type

HyperMesh Template Command

Description

Starts a component block. Components with a card image matching the specified card image name are considered for the block.

This command must be accompanied by a *output() command at the end of the block.

Inputs

card_image_name
A 32-character string enclosed in double quotes that defines the card image name of the components in the block. If specified as double quotes "", all components are considered for the block.
If a *elements() block has specified a prop_card_image_name value matching this string, the component collector to which those elements point is marked.
mat_card_image_name
A 32-character string enclosed in double quotes that defines the card image name of the material that the components in the block require. If not needed, use empty double quotes "".
The name is also used to link to the *materials() commands.

Example

To write out all components with the format:

*component(id,"name",material ID,color,property ID)

*components("","")
*format()
*string("*component(")
*field(integer,id,0)
*string(",")
*field(quotedstring,name,0)
*string(",")
*field(integer,materialid,0)
*string(",")
*field(integer,color,0)
*string(",")
*field(integer,propertyid,0)
*string(")")
   *end()
*output()