Tip: use "::" to refer to nested layer names in the command line

I often use the command “SetDimensionLayer” to keep all my dimensions on one layer but ran into an issue when trying to refer to a nested layer in the command line.

Turns out, to reference a nested layer in the command line you just type “::” after the parent layer and then type the nested layer name after.

so lets say your layer structure looked like this:
image
to set your dimension layer as “Dims” you would type:
Labels::Dims

Just putting this here in case someone else looks it up as I couldn’t find anything when I did (:

bonus tip: make sure your layer names have no whitespace as pressing space in the command line will enter it (unless someone knows a way around this!)

2 Likes

Nice one. Same as in Grasshopper…

Yup, also mentioned in the docs here: Rhino scripting | Rhino 3-D modeling