HyperWorks Tools

::hwat::core::PositionRearBarrier

::hwat::core::PositionRearBarrier

Previous topic Next topic No expanding text in this topic  

::hwat::core::PositionRearBarrier

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

NAME

::hwat::core::PositionRearBarrier - Positions the rear barrier.

 

SYNTAX

::hwat::core::PositionRearBarrier vehicleAssem barrierName ground gap groundToBarrierDistance value [flag]

 

ARGUMENTS

vehicleAssem

The name of the vehicle assembly.

barrierName

The name of the barrier assembly.

ground

The true ground position (z coordinate).

gap

The gap in mm.

groundToBarrierDistance

The distance from the ground to the base of the barrier.

value

The value for the overlap or offset option.

flag

Either "offset" or "overlap" (default = offset).

Overlap:

0 has no useful meaning since the barrier and vehicle would not impact each other.

-10 means that the barrier will overlap the left side of the vehicle by 10% of the vehicle's width.

20 means that the barrier will overlap the right side of the vehicle by 20% of the vehicle's width.

Offset:

0% means that the barrier and vehicle center lines line up.

-10% means that the barrier is offset to the left by 10% of the vehicle's width.

20% means that the barrier is offset to the right by 20% of the vehicle's width.

 

RETURNS

1 if successful, {} if unsuccessful.

 

EXAMPLE

::hwat::core::PositionRearBarrier "VEHICLE" "BARRIER" 120 10 200.0 –40 Overlap.

 

COMMENT

This function assumes that the barrier has been imported.

 

See also

Core Functions