Example #1
0
        /// <summary>
        /// Set the orientation of the view
        /// </summary>
        /// <param name="orient"></param>
        protected void InternalSetOrientation(ViewOrientation3D orient)
        {
            if (InternalView3D.ViewDirection.IsAlmostEqualTo(-orient.ForwardDirection) &&
                InternalView3D.Origin.IsAlmostEqualTo(orient.EyePosition))
            {
                return;
            }

            InternalView3D.Unlock();
            InternalView3D.SetOrientation(orient);
            InternalView3D.SaveOrientationAndLock();
        }
Example #2
0
 /// <summary>
 /// Show all hiddent elements in the view
 /// </summary>
 protected void InternalRemoveIsolation()
 {
     InternalView3D.UnhideElements(GetVisibleElementFilter().ToElementIds());
     InternalView3D.CropBoxActive = false;
 }