Ejemplo n.º 1
0
        private Vector3 GetViewVector(View activeView, ViewOrientationTypeEnum orientation)
        {
            var tempCam = activeView.Camera;

            tempCam.ViewOrientationType = orientation;
            tempCam.ApplyWithoutTransition();
            tempCam = activeView.Camera;
            return(InvToNumericsVec3(tempCam.Target.VectorTo(tempCam.Eye)));
        }
Ejemplo n.º 2
0
 public ViewParameters(DrawingView parentView = null,
                       Point2d point          = null,
                       string scaleString     = "1:10",
                       ViewOrientationTypeEnum orientation     = ViewOrientationTypeEnum.kDefaultViewOrientation,
                       DrawingViewStyleEnum style              = DrawingViewStyleEnum.kHiddenLineRemovedDrawingViewStyle,
                       ViewJustificationEnum viewJustification = ViewJustificationEnum.kCenteredViewJustification)
 {
     ParentView        = parentView;
     Point             = point ?? CAddIn.App.TransientGeometry.CreatePoint2d(11.5, 22.0);
     ScaleString       = scaleString;
     Orientation       = orientation;
     Style             = style;
     ViewJustification = viewJustification;
 }