OBJECT SIZE Z This command will return the full depth of the object.
Syntax
    Return Float=OBJECT SIZE Z(Object Number)
    Return Float=OBJECT SIZE Z(Object Number, Actual Size)
Parameters
    Object Number
Integer The object number
    Actual Size
Integer This value is an integer number such as 1.
Returns
This command will return the full depth of the object
Description
If then additional parameter ActualSize is set to one, the scale of the object is taken into account when returning the size of the object.
Example Code
    backdrop off : cls : sync on : sync rate 0 : hide mouse:cls 0

    ObjectNumber=1

    load object "models\model.x",ObjectNumber

    print "BASIC3D EXPRESSION DATA"

    if object exist(ObjectNumber)=1

    print "sizex:";object size x(ObjectNumber)

    print "sizey:";object size y(ObjectNumber)

    print "sizez:";object size z(ObjectNumber)

    endif

    while mouseclick()=0

    sync

    endwhile

    if object exist(ObjectNumber)=1 then delete object ObjectNumber

    end
See also
BASIC3D Commands Menu Index