Example #1
0
        public static MpCadData_v1002 Create(CadObjectDB db)
        {
            MpCadData_v1002 ret = new MpCadData_v1002();

            ret.MpDB = MpCadObjectDB_v1002.Create(db);

            ret.ViewInfo = new MpViewInfo_v1002();

            return(ret);
        }
Example #2
0
        public static MpCadObjectDB_v1002 Create(CadObjectDB db)
        {
            MpCadObjectDB_v1002 ret = new MpCadObjectDB_v1002();

            ret.LayerIdCount  = db.LayerIdProvider.Counter;
            ret.FigureIdCount = db.FigIdProvider.Counter;

            ret.FigureList = MpUtil_v1002.FigureMapToMp_v1002(db.FigureMap);

            ret.LayerList = MpUtil_v1002.LayerListToMp(db.LayerList);

            ret.CurrentLayerID = db.CurrentLayerID;

            return(ret);
        }