diff --git a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi index 0f71a9ab24..10c08141d5 100644 --- a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi +++ b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi @@ -71,6 +71,13 @@ FILTERED_CARTESIAN_QUOTIENT: Any EXACT_PREDICATES: Any EXACT_CONSTRUCTIONS: Any +FT_AUTODETECT: Any +FT_IFCSPF: Any +FT_IFCXML: Any +FT_IFCZIP: Any +FT_ROCKSDB: Any +FT_UNKNOWN: Any + CURVES: Any SURFACES_AND_SOLIDS: Any CURVES_SURFACES_AND_SOLIDS: Any @@ -96,12 +103,9 @@ class IfcSpfHeader: """ def file(self, *args): ... - @property - def file_description(self) -> ifcopenshell.entity_instance: ... - @property - def file_name(self) -> ifcopenshell.entity_instance: ... - @property - def file_schema(self) -> ifcopenshell.entity_instance: ... + def file_description_py(self): ... + def file_name_py(self): ... + def file_schema_py(self): ... def read(self): ... def tryRead(self): ... def write(self, out): ... @@ -145,6 +149,7 @@ class ConversionResult: def Style(self): ... def StylePtr(self): ... def append(self, trsf): ... + def apply_transform(self, unit_scale): ... def hasStyle(self): ... def prepend(self, trsf): ... def setStyle(self, newStyle): ... @@ -157,6 +162,7 @@ class ConversionResultShape: def axis(self): ... def bounding_box(self, *args): ... def box(self): ... + def concat(self, arg2): ... def convex_decomposition(self): ... def convex_tag(self, b): ... def edges(self): ... @@ -178,9 +184,11 @@ class ConversionResultShape: def solid(self): ... def solid_mt(self): ... def subtract(self, arg2): ... + def surface_area_along_direction(self, tol, arg3, along_x, along_y, along_z): ... def surface_genus(self): ... def vertices(self): ... def volume(self): ... + def wrap_in_compound(self): ... class DoubleArray3: def back(self): ... @@ -284,11 +292,6 @@ class HdfSerializer(GeometrySerializer): def write(self, *args): ... def writeHeader(self): ... -class HeaderEntity: - def getArgument(self, index): ... - def getArgumentCount(self): ... - def toString(self, upper): ... - class IfcBaseEntity(entity_instance): def declaration(self): ... def get(self, name): ... @@ -304,9 +307,17 @@ class IfcEntityInstanceData: ... class IfcLateBoundEntity(IfcBaseEntity): def declaration(self): ... -class InstanceReference: - file_offset: Any - v: Any +class InstanceStreamer: + def bypassTypes(self, type_names): ... + def bypassed_instances(self): ... + coerce_attribute_count: bool + def hasSemicolon(self): ... + def inverses(self, *args): ... + def pushPage(self, page): ... + def readInstancePy(self, type_as_declaration_instance): ... + def references(self, *args): ... + def semicolonCount(self): ... + def status(self): ... class Iterator: initialization_outcome_: Any @@ -377,6 +388,17 @@ class Representation: def settings(self): ... +class RocksDBPrefixIterator: + def key(self): ... + def next(self): ... + def valid(self): ... + def value(self): ... +class RocksDbSerializer: + def finalize(self): ... + def ready(self): ... + def setFile(self, arg2): ... + def writeHeader(self): ... + class Serialization(Representation): @property def brep_data(self): ... @@ -829,6 +851,7 @@ class entity_instance: ... def get_attribute_names(self): ... + def get_attribute_value(self, index): ... def get_inverse(self, a): ... def get_inverse_attribute_names(self): ... def id(self) -> int: ... @@ -851,6 +874,7 @@ class entity_instance: def setArgumentAsLogical(self, i, v): ... def setArgumentAsNull(self, i): ... def setArgumentAsString(self, i, a): ... + def set_attribute_value(self, *args): ... def toString(self, arg2, upper): ... def to_string(self, valid_spf): ... def unset_attribute_value(self, i): ... @@ -888,14 +912,10 @@ class face: def print_impl(self, o, indent): ... class file: - INSTANCE_ID: Any - INSTANCE_TYPE: Any - ATTRIBUTE_INDEX: Any - guid_map_: Any - stream: Any def FreshId(self): ... def add(self, entity: entity_instance, id: int) -> entity_instance: ... def addEntities(self, entities): ... + def add_type_ref(self, new_entity): ... def batch(self) -> None: """Enable batch mode. @@ -919,10 +939,15 @@ class file: ... def build_inverses(self): ... + def build_inverses_(self, arg2): ... def by_guid(self, guid: str) -> entity_instance: ... def by_id(self, id: int) -> entity_instance: ... def by_type(self, *args): ... def by_type_excl_subtypes(self, *args): ... + def bypass_type(self, type_name): ... + calculate_unit_factors: bool + check_existance_before_adding: bool + def create(self, decl): ... @staticmethod def createTimestamp(): ... def entity_names(self) -> tuple[int, ...]: @@ -961,24 +986,27 @@ class file: def get_total_inverses(self, e: entity_instance) -> int: ... def good(self): ... - @staticmethod - def guid_map(*args): ... - def header(self) -> IfcSpfHeader: + def header(self, *args) -> IfcSpfHeader: """Internal IfcSpfHeader instance, always prefer ``ifcopenshell.file.header`` instead.""" def ifcroot_type(self) -> entity: ... - def internal_guid_map(self): ... - def load(self, entity_instance_name, entity, arg4, attribute_index): ... + def initialize(self, *args): ... + instantiate_typed_instances: bool + def key_value_store_iter(self, prefix): ... + def key_value_store_query(self, key): ... + def process_deletion_inverse(self, inst): ... def recalculate_id_counter(self): ... def remove(self, entity: entity_instance) -> None: ... + def remove_type_ref(self, new_entity): ... + def reset_identity_cache(self): ... @property def schema(self): ... + def storage_mode(self): ... def to_string(self): ... @staticmethod def traverse(instance: entity_instance, max_level: int) -> tuple[entity_instance, ...]: ... @staticmethod def traverse_breadth_first(instance: entity_instance, max_level: int) -> tuple[entity_instance, ...]: ... - def try_read_semicolon(self): ... def types(self) -> tuple[str, ...]: """Return a tuple of classes present in the file. @@ -986,16 +1014,15 @@ class file: """ ... - def types_begin(self): ... - def types_end(self): ... def write(self, fn): ... class file_open_status: - SUCCESS: Any - READ_ERROR: Any - NO_HEADER: Any - UNSUPPORTED_SCHEMA: Any - INVALID_SYNTAX: Any + SUCCESS: int + READ_ERROR: int + NO_HEADER: int + UNSUPPORTED_SCHEMA: int + INVALID_SYNTAX: int + UNKNOWN: int def value(self): ... class fn_evaluator: @@ -1037,9 +1064,6 @@ class geometry_conversion_result: products_2: Any representation: Any -class geometry_exception: - def what(self): ... - class gradient_function(function_item): def calc_hash(self): ... def clone_(self): ... @@ -1138,6 +1162,8 @@ class matrix4(item): def is_identity(self): ... def kind(self): ... def translation_part(self): ... + def post_multiply_scale(self, s): ... + def pre_multiply_scale(self, s): ... class named_type(parameter_type): def _is(self, *args): ... @@ -1516,13 +1542,11 @@ class sweep(geom_item): class sweep_along_curve(sweep): curve: Any surface: Any + direction: Any def calc_hash(self): ... def clone_(self): ... def kind(self): ... -class too_many_faces_exception(geometry_exception): ... -class topology_error: ... - class torus(surface): radius1: Any radius2: Any @@ -1568,6 +1592,8 @@ class type_declaration(declaration): def as_type_declaration(self) -> type_declaration: ... def declared_type(self): ... +class uninitialized_tag: ... + def arrange_polygons(polygons): ... def clear_schemas(): ... def construct_iterator_with_include_exclude(geometry_library, settings, file, elems, include, num_threads): ... @@ -1581,6 +1607,7 @@ def flatten(deep): ... def get_feature(x): ... def get_info_cpp(v, include_identifier): ... def get_log(): ... +def guess_file_type(fn): ... def helmert_curve_point(A0, A1, A2, s): ... def kind_to_string(k): ... def less(arg1, arg2): ... @@ -1588,7 +1615,7 @@ def line_segments_to_polygons(s, eps, segments): ... def map_shape(settings, instance): ... def nary_union(sequence): ... def new_IfcBaseClass(schema_identifier: str, name: str) -> entity_instance: ... -def open(fn): ... +def open(fn, readonly): ... def parse_ifcxml(filename): ... def polygons_to_svg(*args): ... def read(data): ... @@ -1599,6 +1626,7 @@ def serialise(schema_name, shape_str, advanced): ... def set_feature(x, v): ... def set_log_format_json(): ... def set_log_format_text(): ... +def stream_from_string(data): ... def svg_to_line_segments(data, class_name): ... def svg_to_polygons(data, class_name): ... def taxonomy_item_repr(i): ... diff --git a/src/ifcwrap/IfcParseWrapper.i b/src/ifcwrap/IfcParseWrapper.i index 858705ebf0..1bc43b422c 100644 --- a/src/ifcwrap/IfcParseWrapper.i +++ b/src/ifcwrap/IfcParseWrapper.i @@ -33,6 +33,10 @@ private: %ignore IfcParse::IfcFile::types_end; %ignore IfcParse::IfcFile::internal_guid_map; %ignore IfcParse::IfcFile::storage_; +%ignore IfcParse::IfcFile::byguid_; +%ignore IfcParse::IfcFile::byid_; +%ignore IfcParse::IfcFile::byref_excl_; +%ignore IfcParse::IfcFile::types_to_bypass_loading_; %ignore IfcParse::InstanceStreamer::InstanceStreamer(const IfcParse::schema_definition* schema, IfcParse::IfcSpfLexer* lexer); diff --git a/src/ifcwrap/IfcPython.i b/src/ifcwrap/IfcPython.i index 7a3fd48139..8595e264e2 100644 --- a/src/ifcwrap/IfcPython.i +++ b/src/ifcwrap/IfcPython.i @@ -93,6 +93,10 @@ %ignore curve_to_face_upgrade_impl; %ignore loop_to_function_item_upgrade_impl; +%ignore IfcGeom::geometry_exception; +%ignore IfcGeom::too_many_faces_exception; +%ignore ifcopenshell::geometry::taxonomy::topology_error; + // settings, can this done more generally? // GeometrySerializer.h %ignore UseElementNames;