Message 1 of 4
Not applicable
05-30-2016
06:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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 !
Solved! Go to Solution.