*beamsectionsetdataroot

Updates the root data for a beam section.

Syntax

*beamsectionsetdataroot beam_sect_id collector_id solver beam_config line_color fill_color flags torsion_factor warping_factor orient_vector1 orient_vector2 orient_origin1 orient_origin2

Type

HyperMesh Tcl Modify Command

Description

Updating a beam section requires two commands, of which this is the first. This command updates the root data for a beam section and will also clear all other beam section data. Thus, this command should be followed by *beamsectionsetdatastandard, *beamsectionsetdatashell, *beamsectionsetdatasolid, or *beamsectionsetdatageneric depending on the beam_config selected. Beam section data cannot be updated piecemeal with this command; all data must be known for the beam and sent in as arguments.

Inputs

beam_sect_id
The ID of the beam section to update.
collector_id
The ID of the beam section collector to update.
solver
Integer indicating the solver the section is for. Valid values are:
0 - HyperBeam
1 - OptiStruct/Nastran
2 - Abaqus
8 - ANSYS
9 - LS-DYNA
21 - Permas
22 - Madymo
beam_config
Basic configuration of the beam section. Valid values are:
0 - Solid section
1 - Generic section
2 - Standard section
3 - Shell section
line_color
Currently unused. Must be set to 7.
fill_color
Currently unused. Must be set to 1.
torsion_factor
Currently unused. Must be set to 1.
warping_factor
Currently unused. Must be set to 1.
flags
Currently unused. Must be set to 0.
orient_vector1
Currently unused. Must be set to 0.
orient_vector2
Currently unused. Must be set to 0.
orient_origin1
Currently unused. Must be set to 0.
orient_origin2
Currently unused. Must be set to 0.

Examples

To update the root data for a standard section specifying HyperMesh as the solver type:
*beamsectionsetdataroot 1 1 0 2 7 1 0 1.0 1.0 0 0 0 0
Note that this command should be used in tandem with one of four beam section update commands such as *beamsectionsetdatastandard as follows:
*beamsectionsetdataroot 1 1 0 2 7 1 0 1.0 1.0 0 0 0 0
*createdoublearray 12 6 6 6 0.5 0.5 0.5 4 4 4 1 1 1
*beamsectionsetdatastandard 1 12 1 4 0 HMHat

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

11.0.120