hm_wadlinessetoptions

Sets various WAD lines module options.

Syntax

hm_wadlinessetoptions option1 value1 ?option2 value2? ... ?optionN valueN?

Type

HyperMesh Tcl Query

Description

Sets various WAD lines module options. Accepts a series of name value pairs, and any number of pairs may be given. This API may be called any number of times, such as once per option, or just once with all the options. The API can be called at any time during the analysis, thus allowing options to change between calls. Changes do not retroactively update any previous calculated results. It is recommended that this API be called before any results are requested.

If an option is not given it will be assigned a default value. If the options protocol_method and protocol_version are set using this API, and not set in other APIs which accept them, those APIs will default to the values set by this API.

The following are the options which can be set using this API:

Inputs

corner_gauge_height
The total height of the corner gauge (UN-R127). Default 236.0.
corner_height_max
The maximum value for the height of the center of the corner gauge (UN-R127). Default 1003.0.
corner_height_min
The minimum value for the height of the center of the corner gauge (UN-R127). Default 75.0.
horiz_proj_min_angle
The minimum angle used to determine if points should be horizontally projected (Euro NCAP 8.2). Default 60.0.
horiz_proj_min_dist
The minimum distance allowed between horizontally projected grid points and other grid points (Euro NCAP 8.2). Default 50.0.
protocol_method
0 - Euro NCAP (default)
1 - Homologation
2 - ECER
3 - UN-R127 for corners, Euro NCAP elsewhere
protocol_version
Used for Euro NCAP protocol, 7.0 (default if not specified), 8.0 or 8.2.
side_ref_wad_dist
The WAD distance used for extending reference lines forward (Euro NCAP 8.2). Default 1000.
wad_method
0 - Measures along the surface of the vehicle, not direct from bonnet to windshield
1 - Measures along tangent (default)

Example

To setup and extract WAD lines data, specifying Euro NCAP version 8.0:

hm_wadlinesinit
hm_wadlinessetoptions prototol_version 8.0
hm_wadlinessetparameters 45.0 50.0 100.0 100.0 50.0 20.0 25.0 60.0
hm_wadlinessetaxes 0.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 0.0
*createmark comps 1 "bonnet" "bumper" "fenderL" "fenderR"
*createmark comps 2 "windshield" "a-pillars"
hm_wadlinessetentities comps 1 comps 2
*createmark elems 1 "by collector" wipers
hm_wadlinessetwipers elems 1 0 1
hm_wadlinesgetreferenceline 0
hm_wadlinesgetreferenceline 1
hm_wadlinesgetreferenceline 2
hm_wadlinesgetreferenceline 3
hm_wadlinesgetreferenceline 4
hm_wadlinesgetreferenceline 5
hm_wadlinesgetreferenceline 6
hm_wadlinesgetreferenceline 7
hm_wadlinesgetwadline 1000.0
hm_wadlinesgetwadline 1500.0
hm_wadlinesgetwadline 1700.0
hm_wadlinesgetwadline 2100.0
hm_wadlinesgetgridpoints 1000.0 1500.0 1700.0 2100.0 50.0
hm_wadlinesend

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

14.0.130