I use c# control to aim to delete all components on the canvas. After its success butthe canvas not update. Many methods not useful. What I can do?Thank you.
What do you mean by canvas? The simulation world? The 3D viewport? The 2D drawing world or it’s viewport?
You probably need to request rendering the viewport by calling IRenderService.RequestRender()
You can get IRenderService instance using either [Import]
or IoC.Get<IRenderService>()
Dear TSy,
Thank you, TSy, yes, the viewport. Thank you for your reply. I already use
var app = IoC.Get<IApplication>();
var cam = app.MainWindow.Camera;
cam.FillWorld();
Yesterday.
At least it seems to be working now. I will try your method in the coming days.
Thank you again and have a nice day!
Kind Regards,
Shengyu Liu
Fill world simply moves the camera so that it can see the entire scene.
Yes that’s true. I just find a lot this kind of trickery