Generate layer name with random letters and numbers like "A7gs9G5E"?

Hello!

It is possible to generate layer name with random letters and numbers like “A7gs9G5E”?

Example:
Rename Layer 01 to “A7gs9G5E” (or other abstract letters and numbers)?

Not without scripting. If you’re willing to script in e.g. Python, there are numerous examples out there how to create a random string.

1 Like

Here are a couple of scripts:

1- Rename selected layers with the layer GUID as the layer name.

RenameLayersID.py (351 Bytes)

2- Generate N new layers with the layer GUID as the layer name. Also creates a random color for each new layer.

AddRandomLayersID.py (554 Bytes)

Layer GUIDs are like all other GUIDs in Rhino, they should be theoretically “unique”… They are pretty long strings however.

–Mitch

1 Like

Big Thanks, Mitch. Both scripts works fine!