mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Bring back id() to python wrapper. Fixes #241
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user