mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 17:58:20 +00:00
Some successes writing and reading
This commit is contained in:
@@ -209,7 +209,7 @@ IfcUtil::IfcBaseEntity::IfcBaseEntity(IfcEntityInstanceData&& data)
|
||||
void IfcUtil::IfcBaseEntity::populate_derived() {
|
||||
for (auto it = declaration().as_entity()->derived().begin(); it != declaration().as_entity()->derived().end(); ++it) {
|
||||
if (*it) {
|
||||
this->data().set_attribute_value(
|
||||
set_attribute_value(
|
||||
std::distance(declaration().as_entity()->derived().begin(), it),
|
||||
Derived{}
|
||||
);
|
||||
@@ -224,7 +224,7 @@ AttributeValue IfcUtil::IfcBaseEntity::get(const std::string& name) const
|
||||
size_t idx = 0;
|
||||
for (; iter != attrs.end(); ++iter, ++idx) {
|
||||
if ((*iter)->name() == name) {
|
||||
return data().get_attribute_value(idx);
|
||||
return get_attribute_value(idx);
|
||||
}
|
||||
}
|
||||
throw IfcParse::IfcException(name + " not found on " + declaration().name());
|
||||
|
||||
Reference in New Issue
Block a user