mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-16 18:44:47 +00:00
Remove usage of .wrapped_item and some other fixes
This commit is contained in:
@@ -78,6 +78,8 @@
|
||||
// _add() because mixin defined add which adds transaction logic
|
||||
%rename("_add") addEntity;
|
||||
%rename("remove") removeEntity;
|
||||
%rename("_traverse") traverse;
|
||||
%rename("_traverse_breadth_first") traverse_breadth_first;
|
||||
|
||||
class attribute_value_derived {};
|
||||
%{
|
||||
@@ -533,10 +535,14 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
const char* const get_argument_type(unsigned int i) const {
|
||||
const char* const attribute_type(unsigned int i) const {
|
||||
return IfcUtil::ArgumentTypeToString(helper_fn_attribute_type($self, i));
|
||||
}
|
||||
|
||||
const char* const attribute_type(const std::string& name) const {
|
||||
return IfcUtil::ArgumentTypeToString(helper_fn_attribute_type($self, express_Base_get_argument_index($self, name)));
|
||||
}
|
||||
|
||||
const std::string& attribute_name(unsigned int i) const {
|
||||
if ($self->declaration().as_entity()) {
|
||||
return $self->declaration().as_entity()->attribute_by_index(i)->name();
|
||||
|
||||
Reference in New Issue
Block a user