Distance double negative?

Am I missing something? Why would the Distance command ever return a value with two negatives?

Sometimes I see a zero value returned with a negative as well (not pictured here).

Looks like the dash got placed in the wrong spot - it should be between the 16’ and the 0"…

i.e instead of --16’0" it should be -16’-0"

This is a programming error in composing the display string most likely.

Any chance this could end up a bug to be fixed?

@pascal - can you check?

Yep, thanks, getting there…

@anon - My first test shows the right thing - can you post a file that shows this, as well as the output from the SystemInfo command?

-Pascal

File needs to be cleared of IP first so it’s not posted here, but I can say this happens regularly on other files as well.

System Info

Rhino 7 SR19 2022-6-14 (Rhino 7, 7.19.22165.13001, Git hash:master @ 303aecd3f1907d87fe49f88f695c02fb790b1e31)
License type: Commercial, build 2022-06-14
License details: Cloud Zoo

Windows 10 (10.0.16299 SR0.0) or greater (Physical RAM: 16Gb)

Computer platform: DESKTOP

Standard graphics configuration.
Primary display and OpenGL: NVIDIA GeForce GT 640 (NVidia) Memory: 1GB, Driver date: 7-24-2019 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 432.00
> Accelerated graphics device with 4 adapter port(s)
- Windows Main Display attached to adapter port #0

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
Redraw scene when viewports are exposed: On
Graphics level being used: OpenGL 4.6 (primary GPU’s maximum)

Anti-alias mode: 4x
Mip Map Filtering: Linear
Anisotropic Filtering Mode: High

Vendor Name: NVIDIA Corporation
Render version: 4.6
Shading Language: 4.60 NVIDIA
Driver Date: 7-24-2019
Driver Version: 26.21.14.3200
Maximum Texture size: 16384 x 16384
Z-Buffer depth: 24 bits
Maximum Viewport size: 16384 x 16384
Total Video Memory: 1 GB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 7\Plug-ins\Commands.rhp “Commands” 7.19.22165.13001
C:\Program Files\Rhino 7\Plug-ins\WebBrowser.rhp “WebBrowser”
C:\Program Files\Rhino 7\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 7\Plug-ins\RhinoScript.rhp “RhinoScript”
C:\Program Files\Rhino 7\Plug-ins\RPC.rhp “RPC”
C:\Program Files\Rhino 7\Plug-ins\IdleProcessor.rhp “IdleProcessor”
C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 7.19.22165.13001
C:\Program Files\Rhino 7\Plug-ins\RhinoRender.rhp “Legacy Rhino Render”
C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 7.19.22165.13001
C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 7\Plug-ins\Alerter.rhp “Alerter”
C:\Program Files\Rhino 7\Plug-ins\IronPython\RhinoDLR_Python.rhp “IronPython” 7.19.22165.13001
C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp “RhinoCycles” 7.19.22165.13001
C:\Program Files\Rhino 7\Plug-ins\export_PDF.rhp “PDF Export” 7.19.22165.13001
C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 7.19.22165.13001
C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 7\Plug-ins\BlockEdit.rhp “BlockEdit” 7.19.22165.13001
C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp “Displacement”

can you make a shareable sample file with no proprietary info in it that shows the problem?

distancedoublenegative.3dm (45.8 KB)
3dm file attached.

I can repeat this. It happens only when the delta (X or Y) is an even negative inch value without a fraction. Which reinforces my suspicion that it’s simply a display string programming error.

Thanks y’all, I’ll check it.
RH-69506 Distance - incorrect negative

-Pascal

Nice one, folks. I (and probably others using feet and inches) appreciate the help.