@@ -812,7 +812,7 @@ void ReaderSTEP::readData(std::istream& read_in, std::streampos file_size, share
812
812
return ;
813
813
}
814
814
std::string file_schema_version = model->getIfcSchemaVersionOfLoadedFile ();
815
- messageCallback (std::string (" Detected IFC version: " ) + file_schema_version, StatusCallback::MESSAGE_TYPE_GENERAL_MESSAGE, " " );
815
+ messageCallback (std::string (" Detected IFC version: " ) + file_schema_version, StatusCallback::MESSAGE_TYPE_GENERAL_MESSAGE, __FUNC__ );
816
816
817
817
size_t read_size = model->getFileHeader ().size ();
818
818
std::stringstream err;
@@ -918,11 +918,6 @@ void ReaderSTEP::readData(std::istream& read_in, std::streampos file_size, share
918
918
++lineCount;
919
919
}
920
920
}
921
- catch (UnknownEntityException& e)
922
- {
923
- std::string unknown_keyword = e.m_keyword ;
924
- err << __FUNC__ << " : unknown entity: " << unknown_keyword.c_str () << std::endl;
925
- }
926
921
catch (BuildingException& e)
927
922
{
928
923
err << e.what ();
@@ -936,6 +931,11 @@ void ReaderSTEP::readData(std::istream& read_in, std::streampos file_size, share
936
931
err << __FUNC__ << " : error occurred" << std::endl;
937
932
}
938
933
934
+ if (err_unknown_entity.tellp () > 0 )
935
+ {
936
+ messageCallback (err_unknown_entity.str (), StatusCallback::MESSAGE_TYPE_UNKNOWN_ENTITY, __FUNC__);
937
+ }
938
+
939
939
// copy entities into map so that they can be found during entity attribute initialization
940
940
std::unordered_map<int , shared_ptr<BuildingEntity> >& map_entities = model->getMapIfcEntities ();
941
941
for (auto & entity_read_object : vec_entities)
0 commit comments