Ejemplo n.º 1
0
        public static List <MpFigure_v1001> FigureListToMp_v1001(List <CadFigure> figList, bool withChild = false)
        {
            List <MpFigure_v1001> ret = new List <MpFigure_v1001>();

            for (int i = 0; i < figList.Count; i++)
            {
                ret.Add(MpFigure_v1001.Create(figList[i], withChild));
            }

            return(ret);
        }
Ejemplo n.º 2
0
        public static List <MpFigure_v1001> FigureMapToMp_v1001(
            Dictionary <uint, CadFigure> figMap, bool withChild = false)
        {
            List <MpFigure_v1001> ret = new List <MpFigure_v1001>();

            foreach (CadFigure fig in figMap.Values)
            {
                ret.Add(MpFigure_v1001.Create(fig, withChild));
            }

            return(ret);
        }