Update ifcconvert

This commit is contained in:
Thomas Krijnen
2017-12-11 15:46:17 +01:00
parent c099234796
commit 322dec6fd0
4 changed files with 28 additions and 28 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ namespace IfcGeom
{
for (arg_map_t::const_iterator it = args.begin(); it != args.end(); ++it) {
if (prod->declaration().is(it->first) && it->second < prod->data().getArgumentCount() &&
prod->data().getArgumentType(it->second) == IfcUtil::Argument_STRING) {
prod->data().getArgument(it->second)->type() == IfcUtil::Argument_STRING) {
Argument *arg = prod->data().getArgument(it->second);
if (!arg->isNull()) {
return *arg;
+1 -1
View File
@@ -576,7 +576,7 @@ namespace IfcGeom {
try {
IfcUtil::IfcBaseClass* ifc_entity = ifc_file->entityById(id);
instance_type = IfcSchema::Type::ToString(ifc_entity->type());
instance_type = IfcSchema::Type::ToString(ifc_entity->declaration().type());
if (ifc_entity->declaration().is(IfcSchema::Type::IfcRoot)) {
IfcSchema::IfcRoot* ifc_root = ifc_entity->as<IfcSchema::IfcRoot>();