XbimWindowsUI icon indicating copy to clipboard operation
XbimWindowsUI copied to clipboard

How to make Hiding Instances faster in the DrawingControl3D

Open AHSss opened this issue 2 years ago • 1 comments

Hi~! @andyward

I want to hide the instances in the window of DrawingControl3D . I made the following attempt: First I add the DrawingControl's EntitySelections to the HiddenInstances . Then I used the Method-ReloadModel() . Here is my code:

 DrawingControl.HiddenInstances = EntitySelections.ToList();
 DrawingControl.ReloadModel(DrawingControl3D.ModelRefreshOptions.ViewPreserveCameraPosition);

When the model is small ,the instances I selected was by hidden fast . But When the model is bigger , the instances I selected hidden became slowly . I think maybe the problem is the Method-ReloadModel() Executed slowly becuase of my model is too big . OR I used the Unsuitable parameters of the Method-ReloadModel() . And are there other quick ways to implement entity hiding? I need your help~!

AHSss avatar Apr 14 '23 03:04 AHSss

Probably best bringing @CBenghi in on this as he's more familiar with the Helix/3D batching

andyward avatar Apr 14 '23 15:04 andyward