Change Linked block LayerState

Hello,

Is it possible to set the LayerStyle property of a linked block instance definition on Rhino 6?

By looking at online api documentation, instance definition’s LayerStyle property allows both “get” and “set” values. On Rhino 5 and 6, only “get” is available.

When a block instance definition update type is set to ‘Linked’, by default it receives ‘Reference’ LayerStyle, while I would like to change it to ‘Active’.
Is there a way to do this on Rhino 6?

Any reply in welcomed.

Hi @djordje,

No, sorry, not from RhinoCommon. This feature was added to Rhino 7 SR8.

– Dale

1 Like

Hi @dale ,
Thank you for the clarification. It is also not possible to do it, through some Rhino commands?

Hi @djordje,

You can change this with the interactive version of `BlockManager, of course. But the scripted version does not provide for this.

It’s possible to write your own command, in C++, to modify this. Let me know if you need help with this.

– Dale

1 Like

Hi @dale ,
The interactive version of ‘BlockManager’ being the UI which we use to access it in Rhino? This one:

Did I understand you correctly?

Yes I do understand. This is, as far as I know, the only way to change this parameter.

– Dale

1 Like

Thank you for the offered help, and replies Dale.
Happy New Year to you and your family.