mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 11:43:53 +00:00
Implement option to get generic inverses from Python
This commit is contained in:
@@ -82,6 +82,10 @@ namespace IfcUtil {
|
||||
IfcEntityList::ptr traverse(IfcParse::IfcLateBoundEntity* e, int max_level=-1) {
|
||||
return $self->traverse(e, max_level);
|
||||
}
|
||||
IfcEntityList::ptr get_inverse(IfcParse::IfcLateBoundEntity* e) {
|
||||
return $self->getInverse(e->id(), IfcSchema::Type::UNDEFINED, -1);
|
||||
}
|
||||
|
||||
void write(const std::string& fn) {
|
||||
std::ofstream f(fn.c_str());
|
||||
f << (*$self);
|
||||
|
||||
Reference in New Issue
Block a user