I added a rotation input so the up vector is perpendicular to the longest edge of my surface boundary. I was wondering if a Zoom Bounding box command could be added to your C# script?
I’m currently using a separate python script for zooming. It seems to work. Before using your C# script for the view orientation, I had a faulty python python script which should have done both but it didn’t really work. Your script works fine and if it could zoom in on a part that would be super perfect!
Error (CS1502): Die beste Übereinstimmung für die überladene ‘Rhino.Display.RhinoViewport.ZoomBoundingBox(Rhino.Geometry.BoundingBox)’-Methode hat einige ungültige Argumente. (line 63)
Error (CS1503): Argument ‘1’: Konvertierung von ‘Rhino.Geometry.Box’ in ‘Rhino.Geometry.BoundingBox’ nicht möglich. (line 63)
I don’t understand what data type the box needs to be. In python the box is input as a list of 8 points.