使用最新的 BIMServer 1.4.0 我无法加载我的模型。返回模型,但它不包含任何类。ifc的生命周期:
我这样初始化
PluginManager pluginManager = LocalDevPluginLoader.createPluginManager(Paths.get("home"));
pluginManager.loadPluginsFromCurrentClassloader();
// Create a MetaDataManager, and initialize it, this code will be simplified/hidden in the future
MetaDataManager metaDataManager = new MetaDataManager(pluginManager);
pluginManager.setMetaDataManager(metaDataManager);
metaDataManager.init();
// Initialize all loaded plugins
pluginManager.initAllLoadedPlugins();
// Create a factory for BimServerClients, connnect via JSON in this case
BimServerClientFactory factory = new JsonBimServerClientFactory(metaDataManager, "http://localhost:8082");
// Create a new client, with given authorization, replace this with your credentials
BimServerClientInterface client = factory.create(new UsernamePasswordAuthenticationInfo("admin@bimserver.org", "none"));
setup(client);
使用此代码通过 bimviews gui(IFC2x3 Step deserializer)签入我尝试获取模型
List<SProject> project = client.getBimsie1ServiceInterface().getProjectsByName("BIM");
SProject newProject = client.getBimsie1ServiceInterface().getProjectByPoid(project.get(0).getOid());
return client.getModel(newProject, newProject.getLastRevisionId(), true, false, true);
获得任何课程(例如 IFCSlab 等)都被证明是不成功的,因为它里面没有任何东西我尝试在 bimviews 中将其可视化并且它在那里工作。
IFC 示例: http ://www.mediafire.com/file/8i8v7kfcou3ok2c/IFC_%25C3%2596ffnungen.ifc/file
这个过程有什么问题吗?