コード例 #1
0
ファイル: Ellipsejig.cs プロジェクト: presscad/ObjectARXMod
            public EllipseJig(Point3d center, Vector3d vec) : base(new Ellipse())
            {
                mCenterPt      = center;
                mNormal        = vec;
                mRadiusRatio   = 0.00001;
                mPromptCounter = 0;

                m_dims = new DynamicDimensionDataCollection();
                Dimension dim1 = new AlignedDimension();

                dim1.SetDatabaseDefaults();
                m_dims.Add(new DynamicDimensionData(dim1, true, true));

                Dimension dim2 = new AlignedDimension();

                dim2.SetDatabaseDefaults();
                m_dims.Add(new DynamicDimensionData(dim2, true, true));
            }
コード例 #2
0
        public TagJig(Point3d spt, Point3d ipt, Point3d ept) : base(new Tag())
        {
            mStartPt       = spt;
            mInflectionPt  = ipt;
            mEndPt         = ept;
            mPromptCounter = 0;

            m_dims = new DynamicDimensionDataCollection();
            Dimension dim1 = new AlignedDimension();

            dim1.SetDatabaseDefaults();
            m_dims.Add(new DynamicDimensionData(dim1, true, true));
            dim1.DynamicDimension = true;
            Dimension dim2 = new AlignedDimension();

            dim2.SetDatabaseDefaults();
            m_dims.Add(new DynamicDimensionData(dim2, true, true));
            dim2.DynamicDimension = true;
        }
コード例 #3
0
        public CylinderTunnelJig(Point3d firstPt) : base(new CylinderTunnel())
        {
            mPoints = new List <Point3d>();
            mPoints.Add(firstPt);
            mPromptCounter = 0;

            m_dims = new DynamicDimensionDataCollection();
            Dimension dim1 = new AlignedDimension();

            dim1.SetDatabaseDefaults();
            m_dims.Add(new DynamicDimensionData(dim1, true, true));
            dim1.DynamicDimension = true;
        }
コード例 #4
0
        public RoadwayJig(Point3d spt, Point3d ept) : base(new RoadwayWrapper())
        {
            mStartPt       = spt;
            mEndPt         = ept;
            mPromptCounter = 0;

            m_dims = new DynamicDimensionDataCollection();
            Dimension dim1 = new AlignedDimension();

            dim1.SetDatabaseDefaults();
            m_dims.Add(new DynamicDimensionData(dim1, true, true));
            dim1.DynamicDimension = true;
        }
コード例 #5
0
        private void UpdataDimension()
        {
            CylinderTunnel Tunnel = (CylinderTunnel)Entity;

            if (m_dims.Count <= mPromptCounter)
            {
                Dimension _dim = new AlignedDimension();
                _dim.SetDatabaseDefaults();
                m_dims.Add(new DynamicDimensionData(_dim, true, true));
                _dim.DynamicDimension = true;
            }

            AlignedDimension dim = (AlignedDimension)m_dims[mPromptCounter].Dimension;

            dim.XLine1Point  = Tunnel.BasePoints[mPromptCounter];
            dim.XLine2Point  = mPoints[mPromptCounter + 1];
            dim.DimLinePoint = Tunnel.BasePoints[mPromptCounter];
        }
コード例 #6
0
            public EllipseJig(Point3d center,Vector3d vec)
                : base(new Ellipse())
            {
                mCenterPt = center;
                mNormal = vec;
                mRadiusRatio = 0.00001;
                mPromptCounter = 0;

                m_dims = new DynamicDimensionDataCollection();
                Dimension dim1 = new AlignedDimension();
                dim1.SetDatabaseDefaults();
                m_dims.Add(new DynamicDimensionData(dim1,true,true));
                dim1.DynamicDimension = true;
                Dimension dim2 = new AlignedDimension();
                dim2.SetDatabaseDefaults();
                m_dims.Add(new DynamicDimensionData(dim2,true,true));
                dim2.DynamicDimension = true;
            }