Bring back id() to python wrapper. Fixes #241

This commit is contained in:
Thomas Krijnen
2017-07-17 18:10:28 +02:00
parent 04e3018f3c
commit 3edb057178
+6
View File
@@ -104,6 +104,12 @@ private:
}
}
}
// id() is defined on IfcBaseEntity and not on IfcBaseClass, in order
// to expose it to the Python wrapper it is simply duplicated here.
int id() const {
return $self->entity->id();
}
bool is_a(const std::string& s) {
return self->is(IfcSchema::Type::FromString(boost::to_upper_copy(s)));