Scripted -DupLayer can't reference nested layers

If I have nested layers like this:
image

I can reference a nested layer in -SelLayer like “Surface::Rev1”. This does not work for -DupLayer, though. It says the layer does not exist.

image

Rhino version info:
Version 7 SR33
(7.33.23248.13001, 2023-09-05)

Hi @bradlcampbell,

How about just doing this?

– Dale

Hi, Dale. That’s an option, certainly. But I use the DupLayer command in some command script files. I’ve worked around this for my present task, but it seems this command should behave consistently with other commands. Consider this more of a bug report than plea for help.

– Brad

Hi @bradlcampbell,

I’ve logged the issue/request.

https://mcneel.myjetbrains.com/youtrack/issue/RH-77128

– Dale