コード例 #1
0
 public static CADShape AddPoints(this CADShape sp, Line line, bool isToUCS)
 {
     sp.AddPoint(line.StartPoint, isToUCS);
     sp.AddPoint(line.EndPoint, isToUCS);
     sp.Entity = line;
     return(sp);
 }
コード例 #2
0
        public static CADShape AddPoints(this CADShape sp, Extents3d extents, bool isToUCS)
        {
            var p11 = extents.MinPoint;
            var p22 = extents.MaxPoint;
            var p21 = new Point3d(p22.X, p11.Y, p11.Z);
            var p12 = new Point3d(p11.X, p22.Y, p22.Z);

            sp.AddPoint(p11, isToUCS);
            sp.AddPoint(p21, isToUCS);
            sp.AddPoint(p22, isToUCS);
            sp.AddPoint(p12, isToUCS);
            return(sp);
        }
コード例 #3
0
        public static CADShape AddPoints(this CADShape sp, MText mText, bool isToUCS)
        {
            var center = mText.GetCenter();

            sp.AddPoint(mText.Location, isToUCS);
            sp.Entity = mText;
            return(sp);
        }
コード例 #4
0
        public static CADShape AddPoints(this CADShape sp, Polyline line)
        {
            var points = line.GetPoints();

            foreach (var point in points)
            {
                sp.AddPoint(point);
            }
            return(sp);
        }
コード例 #5
0
        public static CADShape AddPoints(this CADShape sp, Polyline line, bool isToUCS)
        {
            var points = line.GetPoints();

            foreach (var point in points)
            {
                sp.AddPoint(point, isToUCS);
            }
            sp.Entity = line;
            return(sp);
        }
コード例 #6
0
 public static CADShape AddPoints(this CADShape sp, Circle circle, bool isToUCS)
 {
     sp.AddPoint(circle.Center, isToUCS);
     sp.Entity = circle;
     return(sp);
 }
コード例 #7
0
 public static CADShape AddPoints(this CADShape sp, Line line)
 {
     sp.AddPoint(line.StartPoint);
     sp.AddPoint(line.EndPoint);
     return(sp);
 }