hexagon logo

Min/Max values

Hello all,

When I access the "min" value of a feature set of points,
even though the min value is negative, the value in the
variable "min" is always positive.
Is the format command wrong?
Any help would be appreciated.
Thanks.

Below is a small section of the code.

If Cmd.IsDimension And Cmd.Marked Then

Set DimCmd = Cmd.DimensionCommand

If DimCmd.ID = "TEST" Then

min = Format(DimCmd.Min, "###.####")
MSGBOX min​