*contactsurfs()

Starts a contactsurfs block.

Syntax

*contactsurfs (card_image_name)

Type

HyperMesh Template Command

Description

Starts a contactsurfs block. Contactsurfs 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 contactsurfs in the block. If specified as double quotes "", all contactsurfs are considered for the block.

Example

To write out all contactsurfs with the format:
*contactsurfs(id,"name",color)
*contactsurfelement(id,facecode,reversecode)
*contactsurfelement(id,facecode,reversecode)
...
*contactsurfs("")
*format()
*string("*contactsurfs(")
*field(integer,id,0)
*string(",")
*field(quotedstring,name,0)
*string(",")
*field(integer,color,0)
*string(")")
*if([facesmax != 0])
*end()
*endif()
*counterset(counter1, 0)
*loopif([counter1 < facesmax])
*pointerset(pointer1, faces, counter1)
*string("*contactsurfelement(")
*field(integer, pointer1.element.id, 0)
*string(",")
*field(integer, pointer1.facecode, 0)
*string(",")
*field(integer, pointer1.reversecode, 0)
*string(")")
*if([counter1 != facesmax-1])
*end()
*endif()
*counterinc(counter1)
*endloop()
*end()
*output()