I am using the ObjectTable.Select(IEnumerable objectIds) method to select multiple objects in Rhino. However, the select process is very slow for a large amount of objects when the object properties page is open. It seems like the method is adding objects to selection one by one and updating the properties page accordingly. I would like to know if there is any way to avoid this behavior when selecting multiple objects.
If you are doing your selection from a modeless UI, then I suggest creating a hidden command and then have your modeless UI run your hidden command using RhinoApp.RunScript.
More info: the ObjectProperties panel is disable during the running of commands. But if your using a modeless UI, then the panel doesn’t know to disable itself.
Hidden commands are declared like this:
[System.Runtime.InteropServices.Guid("<your_guid_here>"), CommandStyle(Style.Hidden)]
public class MyHiddenCommand : Command
{