What is the equivalent of "Hide Objects in Detail" or "Show Objects in Detail" in RhinoCommon C#

rhino5

#1

I have done some research and I cannot find the function to “Hide Objects in Detail” or “Show Objects in detail”

For example, I have a few geometries in Rhino, I have square, triangle and circle.

I want to have a Layout of each geometry.

So I create the layout for “Square” first, then create a view, then in the view, I have to hide triangle and circle.

At the moment, I can create the layout, but I cannot seem to find the function to “Hide Objects in Detail” …


(Dale Fugier) #2

Hi Toby,

I don’t see a way of this yet. But you can always script these commands.

I’ve added a wish list item:

http://mcneel.myjetbrains.com/youtrack/issue/RH-34998

– Dale


#3

Hello,
I know this is an old post but I was wondering if this had been implemented yet?

I have been doing this as a workaround but its rather slow and clunky and I would love to replace it.

            string cmd = "-_HideInDetail ";
            foreach (Guid id in ids)
            {
                cmd += "_SelID ";
                cmd += id.ToString() + " ";
            }
            cmd += "_Enter ";
            RhinoApp.RunScript(cmd, false);

I see @stevebaer referenced in a pull request for January of this year. Let me know when it is live in version 6.
Thanks,


(Dale Fugier) #4

Hi @5chmidt,

Yep, in Rhino 6 use ObjectAttributes.AddHideInDetailOverride.

– Dale


#5

Thanks, I’ll give that method a try!