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)); }
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; }
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; }
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; }
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]; }
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; }