SetDimensionLayer not working

Rhino 8. Current Build. It doesn’t set up on startup, and running the command later doesn’t work either.

The SetDimensionLayer command seems to be working here. Any additional details might help.

– Dale

They’re going on the current layer instead of the assigned layer, both immediately after opening a project, as well as after running the command. If there’s more info you need, please let me know. Here’s my sysinfo:

Rhino 8 SR24 2025-10-8 (Rhino 8, 8.24.25281.15001, Git hash:master @ ba28668a8431990c700173e46ef2dbcb873cf092)
License type: Evaluation, build 2025-10-08
License details: Cloud Zoo
Expires on: 2025-11-30

Windows 11 (10.0.26100 SR0.0) or greater (Physical RAM: 64GB)
.NET 8.0.17

Computer platform: LAPTOP  - Plugged in \[98% battery remaining\]

Hybrid graphics configuration.
Primary display: Intel(R) UHD Graphics (Intel) Memory: 2GB, Driver date: 9-12-2025 (M-D-Y).
> Integrated graphics device with 4 adapter port(s)
- Windows Main Display is laptop’s integrated screen or built-in port
Primary OpenGL: NVIDIA RTX A5000 Laptop GPU (NVidia) Memory: 16GB, Driver date: 9-22-2025 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 581.42
> Integrated accelerated graphics device with 4 adapter port(s)
- Secondary monitor is laptop’s integrated screen or built-in port
- Secondary monitor attached to adapter port #1

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
GPU Tessellation is: Off
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: 9-22-2025
Driver Version: 32.0.15.8142
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 16 GB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
C:\\Program Files\\Rhino 8\\Plug-ins\\Commands.rhp	“Commands”	8.24.25281.15001
C:\\Program Files\\Rhino 8\\Plug-ins\\rdk.rhp	“Renderer Development Kit”	
C:\\Program Files\\Rhino 8\\Plug-ins\\RhinoBonusTools.rhp	“Rhino Bonus Tools”	
C:\\Program Files\\Rhino 8\\Plug-ins\\AnimationTools.rhp	“AnimationTools”	
C:\\Program Files\\Rhino 8\\Plug-ins\\RhinoRenderCycles.rhp	“Rhino Render”	8.24.25281.15001
C:\\Program Files\\Rhino 8\\Plug-ins\\RhinoRender.rhp	“Legacy Rhino Render”	
C:\\Program Files\\Rhino 8\\Plug-ins\\rdk_etoui.rhp	“RDK_EtoUI”	8.24.25281.15001
C:\\Program Files\\Rhino 8\\Plug-ins\\NamedSnapshots.rhp	“Snapshots”	
C:\\Program Files\\Rhino 8\\Plug-ins\\MeshCommands.rhp	“MeshCommands”	8.24.25281.15001
C:\\Program Files\\Rhino 8\\Plug-ins\\RhinoCycles.rhp	“RhinoCycles”	8.24.25281.15001
C:\\Program Files\\Rhino 8\\Plug-ins\\Toolbars\\Toolbars.rhp	“Toolbars”	8.24.25281.15001
C:\\Program Files\\Rhino 8\\Plug-ins\\3dxrhino.rhp	“3Dconnexion 3D Mouse”	
C:\\Program Files\\Rhino 8\\Plug-ins\\BlockEdit.rhp	“BlockEdit”	8.24.25281.15001
C:\\Program Files\\Rhino 8\\Plug-ins\\Displacement.rhp	“Displacement”	
C:\\Program Files\\Rhino 8\\Plug-ins\\SectionTools.rhp	“SectionTools”

Hi @djhg,

Can you post your command macro? I assume you’ve added to Rhino’s list of startup commands?

– Dale

I suppose the problem is that it didn’t port over from R7 when I upgraded and brought in many customizations to R8

When R7 launches the last few CLI lines read:

Command: _SetDimensionLayer
Dimension layer (Press Enter to accept) ( UseDimensionLayer=UseCurrentLayer ): _U
Dimension layer name: Annotations::L1LayoutDim
Dimensions will be made on layer: Annotations::L1LayoutDim.
Dimension layer (Press Enter to accept) ( UseDimensionLayer=SpecifyLayer DimensionLayerName=Annotations::L1LayoutDim ): _Enter
Dimension layer (Press Enter to accept) ( UseDimensionLayer=SpecifyLayer DimensionLayerName=Annotations::L1LayoutDim )

No such lines when R8 starts. But it still should respond to the manually input command, no?

Hi @djhg,

This button macro works for me in V8:

_SetDimensionLayer _DimensionLayer "Annotations::L1LayoutDim" _Enter

– Dale

Thanks Dale. Can you point me to a tutorial about where to put it?

Hmmm. Thanks Dale, but I had it set up before so that it sets the dim layer on start up, there wasn’t any toolbar involved.

You’re certainly welcome to dump this here. :backhand_index_pointing_up:

But this means the command macro will on run when Rhino starts, not when you create a new file or open an existing file without restarting. Thus the toolbar suggest - just poke when needed.

– Dale

Thanks Dale. Has something changed in Rhino 8 wrt this? Rhino 7 always puts the dims on that layer no matter how I begin or open a project.

As of Rhino 8, the dimension layer feature is now a document property.

– Dale

Hi @dale

I’m experiencing the same problems as @djhg. It seems as if the command SetDimensionLayer is broken since a recent update. It worked just fine a 3-4 weeks ago and when I’m now trying to use it the dimension just ends on the current layer.

Do you have any ideas what a solution could be?

Hi Julius -

Please post both a 3dm file in which this doesn’t work and the output from the Rhino SystemInfo command.
-wim

Hi Wim
Thanks for your quick reply. Attached are the documents you requested.

DIMENSION.3dm (40.8 KB)

Rhino 8 SR24 2025-10-8 (Rhino 8, 8.24.25281.15001, Git hash:master @ ba28668a8431990c700173e46ef2dbcb873cf092)
License type: Educational, build 2025-10-08
License details: Cloud Zoo

Windows 11 (10.0.26200 SR0.0) or greater (Physical RAM: 16GB)
.NET 8.0.14

Computer platform: LAPTOP - Plugged in [100% battery remaining]

Hybrid graphics configuration.
Primary display: Intel(R) UHD Graphics 630 (Intel) Memory: 1GB, Driver date: 2-18-2021 (M-D-Y).

Integrated graphics device with 3 adapter port(s)

  • Windows Main Display is laptop’s integrated screen or built-in port
    Primary OpenGL: NVIDIA Quadro T1000 (NVidia) Memory: 4GB, Driver date: 5-11-2025 (M-D-Y). OpenGL Ver: 4.6.0 NVIDIA 573.22

Integrated accelerated graphics device with 4 adapter port(s)

  • Secondary monitor is laptop’s integrated screen or built-in port

OpenGL Settings
Safe mode: Off
Use accelerated hardware modes: On
GPU Tessellation is: 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: 5-11-2025
Driver Version: 32.0.15.7322
Maximum Texture size: 32768 x 32768
Z-Buffer depth: 24 bits
Maximum Viewport size: 32768 x 32768
Total Video Memory: 4 GB

Rhino plugins that do not ship with Rhino

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 8\Plug-ins\Commands.rhp “Commands” 8.24.25281.15001
C:\Program Files\Rhino 8\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 8\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 8.24.25281.15001
C:\Program Files\Rhino 8\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 8.24.25281.15001
C:\Program Files\Rhino 8\Plug-ins\NamedSnapshots.rhp “Snapshots”
C:\Program Files\Rhino 8\Plug-ins\MeshCommands.rhp “MeshCommands” 8.24.25281.15001
C:\Program Files\Rhino 8\Plug-ins\RhinoCycles.rhp “RhinoCycles” 8.24.25281.15001
C:\Program Files\Rhino 8\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 8.24.25281.15001
C:\Program Files\Rhino 8\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 8\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 8\Plug-ins\SectionTools.rhp “SectionTools”

A good place to start would be to update this driver. It may be the case that it was OK for previous versions of Rhino but insufficient for some reason with the update.

Hi Julius -

Thanks. I see this got broken at some point
RH-90393 SetDimensionLayer: Fails in Rhino 8
-wim

RH-90393 is fixed in Rhino 8 Service Release 28