*DefineAssembly()
Indicates the beginning of an assembly definition block.
Syntax
*DefineAssembly(definition_name,[TYPED,AssemblyType, reserved_for_future_use,]arg_1,arg_2,<...>)
Arguments
- definition_name
- The variable name of the assembly definition.
- TYPED
- Keyword to indicate that the next argument is a string for the assembly type.
- AssemblyType
- Specifies the type of assembly. See the Comments section below.
- reserved_for_ future_use
- Intended for future use and must be blank.
- arg_1, arg_2, ..., arg_n
- Arguments that are defined as attachments to the assembly definition.
Example
*DefineAssembly(sysdef_strut_cyl_r, TYPED, RearStrut, ,
b_upper_att, b_lower_att, p_strut_rod_upr,
p_strut_tube_lwr, p_spr_upr, p_spr_lwr,
b_knbody, b_vehicleBody)
*Attachment(b_upper_att, "Strut upr att body", BodyPair,
"Strut upper attaching body")
*Attachment(b_lower_att, "Strut lwr att body", BodyPair,
"Strut lower attaching body")
*Attachment(b_knbody, "knuckle", BodyPair,
"Make a selection for this argument." , ,
SuspRear_KN)
*Attachment(b_vehicleBody, "vehicleBody", Body,
"Make a selection for this argument." , ,
VehicleBody)
*SetDefaultSystemInstance( sys_strut )
*PointPair(p_strut_rod_cg, "Strut rod CG")
*PointPair(p_strut_rod_lwr, "Strut rod lwr")
*PointPair(p_strut_tube_cg, "Strut tube CG")
*EndDefine()
Context
Comments
The statements within the *DefineAssembly block represents an assembly definition. This definition resides in the definition file of an assembly that is referenced by the file mentioned in *DefintionInclude() statement in the data file.
Only one *DefineAssembly can exist in a *BeginDefinitionFile() block.
The AssemblyType is an optional token used to specify what kind of assembly it is. It is also used as a filter when selecting an assembly in an assembly placeholder through the *AssemblyPlaceholder() statement. The 'type' argument on the *AssemblyPlaceholder() should contain the same value of string (or can be blank) as that of the *DefineAssembly(), so that the assembly definition can be instantiated.
The AssemblyType information is redundantly stored in the *BeginAssemblyDataFile() statement in the data file.
A *DefineAssembly block should end with the *EndDefine() statement.