コード例 #1
0
        public static List <MpLayer_v1001> LayerListToMp(List <CadLayer> src)
        {
            List <MpLayer_v1001> ret = new List <MpLayer_v1001>();

            for (int i = 0; i < src.Count; i++)
            {
                ret.Add(MpLayer_v1001.Create(src[i]));
            }

            return(ret);
        }
コード例 #2
0
        public static MpLayer_v1001 Create(CadLayer layer)
        {
            MpLayer_v1001 ret = new MpLayer_v1001();

            ret.ID      = layer.ID;
            ret.Visible = layer.Visible;
            ret.Locked  = layer.Locked;

            ret.FigureIdList = MpUtil_v1001.FigureListToIdList(layer.FigureList);

            return(ret);
        }