mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 14:22:33 +00:00
Bring back id() to python wrapper. Fixes #241
This commit is contained in:
@@ -105,6 +105,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) {
|
bool is_a(const std::string& s) {
|
||||||
return self->is(IfcSchema::Type::FromString(boost::to_upper_copy(s)));
|
return self->is(IfcSchema::Type::FromString(boost::to_upper_copy(s)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user