Hi there !
I'm trying to save SectionBox coordinates of the Active3DView to set it back later. But when I do it only refresh by clicking the actual SectionBox. I find this tutorial from TheBuildingCoder but I can't find any code to refresh view3D and the code is a bit outdated.
Here is my code to show you how I proceed:
I get the SectionBox this way:
BoundingBoxXYZ SectionBox = view3D.GetSectionBox();
And I set it this way:
BoundingBoxXYZ bbXYZ = new BoundingBoxXYZ(); bbXYZ = selected.BoundingB; MessageBox.Show("bbmin : " + bbXYZ.Min + bbXYZ.Max); //I see here that the coordinates are Ok if (view is View3D) { //bbXYZ.Enabled = true; seems useless //view3D.IsSectionBoxActive = true; useless as well view3D.SetSectionBox(bbXYZ); }
As I said the SectionBox is set correctly but I have to click on it to refresh. Do you people know a way to refresh it automatically?
Thank you !