Hide a InstanceDefinition (Block) in RhinoCommon


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.



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