*SetEntityNumber()

Sets the unique integer identifier of an entity.

Syntax

*SetEntityNumber(entity_name, entity_num)

Arguments

entity_name
The variable name of an existing entity.
Data type: varname
entity_num
The integer identifier to be assigned to entity_name.
Data type: integer

Example

*SetEntityNumber(b_wheel, 53)

Context

*BeginMdl()

*DefineAnalysis()

*DefineSystem()

Comments

Beginning at one, MotionView incrementally assigns numbers to all entities in a model. These numbers can be used to construct solver ID numbers. *SetEntityNumber() lets you assign a specific number to a particular entity, instead of using the entity number assigned by MotionView.