From 0132edd7741bf99dbbc96f7c0e32ab5727d74985 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 7 Aug 2025 12:16:42 +0500 Subject: [PATCH] Sync stub with the wrapper #6976 --- .../ifcopenshell/ifcopenshell_wrapper.pyi | 16 ++++++++++++++++ src/ifcwrap/IfcParseWrapper.i | 5 +++++ 2 files changed, 21 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi index 7c0939fa60..6063a8ee7a 100644 --- a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi +++ b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi @@ -334,6 +334,8 @@ class Iterator: def getLog(self): ... def get_native(self): ... def get_object(self, id): ... + def get_task_items(self): ... + def get_task_products(self): ... def had_error_processing_elements(self): ... def initialize(self) -> bool: """Return true if the iterator is initialized with any elements, false otherwise.""" @@ -1034,6 +1036,15 @@ class geom_item(item): matrix: Any surface_style: Any +class geometry_conversion_result: + breps: Any + elements: Any + index: Any + item: Any + products: Any + products_2: Any + representation: Any + class geometry_exception: def what(self): ... @@ -1046,6 +1057,8 @@ class gradient_function(function_item): def kind(self): ... def start(self): ... +class equal_functor: ... +class hash_functor: ... class horizontal_plan_at_element: ... class implicit_item(geom_item): ... @@ -1111,6 +1124,7 @@ class loop: fi: Any def calc_hash(self): ... def calculate_linear_edge_curves(self): ... + def centroid(self): ... @property def children(self): ... def clone_(self): ... @@ -1274,6 +1288,7 @@ class select_type(declaration): class shell: closed: Any def calc_hash(self): ... + def centroid(self): ... @property def children(self): ... def clone_(self): ... @@ -1566,6 +1581,7 @@ def clear_schemas(): ... def construct_iterator_with_include_exclude(geometry_library, settings, file, elems, include, num_threads): ... def construct_iterator_with_include_exclude_globalid(geometry_library, settings, file, elems, include, num_threads): ... def construct_iterator_with_include_exclude_id(geometry_library, settings, file, elems, include, num_threads): ... +def convert_loop_to_function_item(loop): ... def create_box(*args): ... def create_epeck(*args): ... def create_shape(*args): ... diff --git a/src/ifcwrap/IfcParseWrapper.i b/src/ifcwrap/IfcParseWrapper.i index 2b92fe05e0..5f7168d706 100644 --- a/src/ifcwrap/IfcParseWrapper.i +++ b/src/ifcwrap/IfcParseWrapper.i @@ -205,6 +205,11 @@ static IfcUtil::ArgumentType helper_fn_attribute_type(const IfcUtil::IfcBaseClas %extend IfcUtil::IfcBaseClass { + %pythoncode %{ + # Will be assigned when `ifcopenshell.entity_instance` is created. + file = None + %} + int get_attribute_category(const std::string& name) const { if (!$self->declaration().as_entity()) { return name == "wrappedValue";