Sync stub with the wrapper #6976

This commit is contained in:
Andrej730
2025-08-07 12:16:42 +05:00
parent ed8a31c54b
commit 0132edd774
2 changed files with 21 additions and 0 deletions
@@ -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): ...
+5
View File
@@ -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";