Ejemplo n.º 1
0
        public SlopeLinesGenerator(Matrix3d ucs)
            : base(ucs)
        {
            if (_dataHost == null)
            {
                _dataHost = new MainMenu.HostProvider(this);
            }

            _ucs = Tools.GetAcadEditor().CurrentUserCoordinateSystem;

            _baseLine         = null;
            _destinationLine  = null;
            _regressBaseLine  = null;
            _regressDestLine  = null;
            _startPoint       = Point3d.Origin;
            _endPoint         = Point3d.Origin;
            _entitiesInMemory = new List <Entity>();
            //_slopeMode = SlopeModes.OwnPerpendicular;
            _startPointComplete = false;
            _endPointComplete   = false;

            _step            = _dataHost.Read("step", 2.5d);
            _smallLineLength = _dataHost.Read("smallLineLength", 0.5d);
            _slopeMode       = _dataHost.Read("slopeMode", SlopeModes.OwnPerpendicular);
        }
Ejemplo n.º 2
0
 public AnchorArrow(Point3d origin)
     : base(origin, new List <Entity>(), Matrix3d.Identity)
 {
     if (_dataHost == null)
     {
         _dataHost = new MainMenu.HostProvider(this);
     }
     _tolerance = _dataHost.Read("tolerance", 0.005d);
 }
Ejemplo n.º 3
0
        public ValueArrow(Vector3d axisVector, Matrix3d ucs)
            : base(new List <Entity>(), AnnotativeStates.True, ucs)
        {
            _axisVector = axisVector;

            if (_dataProvider == null)
            {
                _dataProvider = new MainMenu.HostProvider(this);
            }
            _toleranceBottom = _dataProvider.Read("tolerance", 0.005d);
            _isToleranceOnly = _dataProvider.Read("isToleranceOnly", false);
        }
Ejemplo n.º 4
0
        public EntitiesRandomEditor()
        {
            if (_dataHost == null)
            {
                _dataHost = new MainMenu.HostProvider(this);
            }

            _culture      = System.Globalization.CultureInfo.GetCultureInfo("en-US");
            _maxTolerance = /*0.50;*/ _dataHost.Read("maxTolerance", 0.05d);
            _minTolerance = /*-0.50;*/ _dataHost.Read("minTolerance", -0.05d);
            _format       = _dataHost.Read("format", "");
            _entities     = new List <Entity>();
        }