public RevisionMerger(IfcModelInterface oldModel, IfcModelInterface newModel) { this.oldModel = oldModel; this.newModel = newModel; resultModel = new BasicIfcModel(null, null, (int)oldModel.size()); //TODO }
DownloadDatabaseAction downloadDatabaseAction = new DownloadDatabaseAction(bimServer, databaseSession, AccessMethod.INTERNAL, roid, -1, -1, new SystemAuthorization(1, TimeUnit.HOURS), null); IfcModelInterface model = downloadDatabaseAction.execute(); LOGGER.info("Model size: " + model.size());
IfcModel targetModel = new BasicIfcModel(bimServer.getMetaDataManager().getPackageMetaData(converterFactory.getTargetSchema().getEPackageName()), new HashMap<Integer, Long>(), (int) model.size()); SchemaConverter converter = converterFactory.create(model, targetModel); converter.convert();
setProgress("Deserializing IFC file...", 0); if (getModel().size() == 0) { throw new DeserializeException("Cannot checkin empty model");