mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 08:13:14 +00:00
Experimental get_inverse_cardinality proposal. See #1904.
This commit is contained in:
committed by
Thomas Krijnen
parent
d1caa3242f
commit
cef1c86f6d
@@ -88,6 +88,9 @@ static IfcUtil::ArgumentType helper_fn_attribute_type(const IfcUtil::IfcBaseClas
|
||||
aggregate_of_instance::ptr get_inverse(IfcUtil::IfcBaseClass* e) {
|
||||
return $self->getInverse(e->data().id(), 0, -1);
|
||||
}
|
||||
int get_inverse_cardinality(IfcUtil::IfcBaseClass* e) {
|
||||
return $self->getInverseCardinality(e->data().id());
|
||||
}
|
||||
|
||||
void write(const std::string& fn) {
|
||||
std::ofstream f(IfcUtil::path::from_utf8(fn).c_str());
|
||||
|
||||
Reference in New Issue
Block a user