public static MpCadData_v1001 Create(CadObjectDB db) { MpCadData_v1001 ret = new MpCadData_v1001(); ret.MpDB = MpCadObjectDB_v1001.Create(db); ret.ViewInfo = new MpViewInfo_v1001(); return(ret); }
public static MpCadObjectDB_v1001 Create(CadObjectDB db) { MpCadObjectDB_v1001 ret = new MpCadObjectDB_v1001(); ret.LayerIdCount = db.LayerIdProvider.Counter; ret.FigureIdCount = db.FigIdProvider.Counter; ret.FigureList = MpUtil_v1001.FigureMapToMp_v1001(db.FigureMap); ret.LayerList = MpUtil_v1001.LayerListToMp(db.LayerList); ret.CurrentLayerID = db.CurrentLayerID; return(ret); }