Hide a InstanceDefinition (Block) in RhinoCommon

Hi,

Is there a way to hide or show an InstanceDefinition (Block) by code without scripting?

I saw I can delete it, but now way to hide it.

Thanks,

Rafa

Hi @rafadelmolino ,
Do you mean hide the BlockDefinition in Block Manager, or hide a block in the Rhino document?
To hide a block in document, you can do following

RhinoGet.GetOneObject("Select block to hide", true, ObjectType.InstanceReference, out ObjRef objRef);
doc.Objects.Hide(objRef, true);
1 Like