Esempio n. 1
0
        public static CADArea ToCADArea(this ObjectId[] objIds, Point3d zero, string zeroType)
        {
            CADArea sps = new CADArea();

            foreach (var item in objIds)
            {
                var sp = item.ToCADShape();
                if (sp != null)
                {
                    sps.Shapes.Add(sp);
                    sp.Num = sps.Shapes.Count;
                }
            }
            sps.SetZero(zero.ToCADPoint(), zeroType);
            return(sps);
        }
Esempio n. 2
0
        public static CADArea ToCADArea(this ObjectId[] objIds, CADPoint zero, string zeroType, bool isToUCS, bool isSetZero)
        {
            CADArea sps = new CADArea();

            foreach (var item in objIds)
            {
                var sp = item.ToCADShape(isToUCS);
                if (sp != null)
                {
                    sps.Shapes.Add(sp);
                    sp.Num = sps.Shapes.Count;
                }
            }
            if (isSetZero)
            {
                sps.SetZero(zero, zeroType);
            }

            return(sps);
        }