Andrej730 d4e4717857 Fixed issue creating slabs in IFC2X3 #3696
Error traceback is below - it was trying to set IfcExtrudedAreaSolid.Position to None when in IFC2x3 Position wasn't optional, so now in IFC2X3 it's going to have some default position

RuntimeError: Error: Python: Traceback (most recent call last):
  File "\bim\module\model\product.py", line 123, in execute
    return IfcStore.execute_ifc_operator(self, context)
  File "\bim\ifc.py", line 336, in execute_ifc_operator
    result = getattr(operator, "_execute")(context)
  File "\bim\module\model\product.py", line 148, in _execute
    if self.generate_layered_element(ifc_class, relating_type):
  File "\bim\module\model\product.py", line 274, in generate_layered_element
    obj = slab.DumbSlabGenerator(relating_type).generate()
  File "\bim\module\model\slab.py", line 143, in generate
    return self.derive_from_cursor()
  File "\bim\module\model\slab.py", line 147, in derive_from_cursor
    return self.create_slab()
  File "\bim\module\model\slab.py", line 179, in create_slab
    representation = ifcopenshell.api.run(
  File "\libs\site\packages\ifcopenshell\api\__init__.py", line 66, in run
    result = usecase_class(ifc_file, **settings).execute()
  File "\libs\site\packages\ifcopenshell\api\geometry\add_slab_representation.py", line 42, in execute
    [self.create_item()],
  File "\libs\site\packages\ifcopenshell\api\geometry\add_slab_representation.py", line 58, in create_item
    extrusion = self.file.createIfcExtrudedAreaSolid(
  File "\libs\site\packages\ifcopenshell\file.py", line 337, in create_entity
    e[idx] = arg
  File "\libs\site\packages\ifcopenshell\entity_instance.py", line 260, in __setitem__
    self.wrapped_data.setArgumentAsNull(idx)
  File "\libs\site\packages\ifcopenshell\ifcopenshell_wrapper.py", line 4929, in setArgumentAsNull
    return _ifcopenshell_wrapper.entity_instance_setArgumentAsNull(self, i)
RuntimeError: Attribute not set
2023-09-08 17:46:58 +05:00
2023-08-30 11:38:28 +02:00
2023-08-11 11:42:08 +02:00
2021-02-06 15:24:17 +00:00
2023-06-09 13:28:25 +02:00
2023-06-09 13:28:25 +02:00
2023-08-31 10:17:30 +02:00
2022-07-06 22:09:13 +02:00
2023-03-28 15:49:27 +02:00
2020-11-04 18:54:58 +11:00
2023-07-10 13:15:49 +10:00

IfcOpenShell

IfcOpenShell is an open source (LGPL) software library for working with Industry Foundation Classes (IFC). Complete parsing support is provided for IFC2x3 TC1, IFC4 Add2 TC1, IFC4x1, IFC4x2, and IFC4x3. Extensive geometric support is implemented for the IFC releases IFC2x3 TC1 and IFC4 Add2 TC1. Extending with support for arbitrary IFC schemas is possible at compile-time when using C++ and at run-time when using Python.

In addition to a C++ and Python API, IfcOpenShell comes with an ecosystem of tools, notably including IfcConvert (an application to convert IFC models to other formats), the BlenderBIM Add-on (an add-on to Blender providing a graphical IFC authoring platform), and many other libraries, CLI apps, and more. Support is also provided for auxiliary standards such as BCF and IDS.

For more information, see:

Service Status
Anaconda Daily Build Anaconda-Server Badge
Anaconda v0.7.0 Stable Anaconda-Server Badge
PyPi Daily Build PyPi Badge
ArchLinux AUR Package Stable AUR Badge
ArchLinux AUR Package git AUR Badge
BlenderBIM Add-on Chocolatey (under moderation) Chocolatey Badge
Sponsor development on OpenCollective Financial Contributors
Docker hub Docker Pulls

Contents

Those marked with an asterisk are part of IfcOpenShell.

Name Description License
bcf Library to read and write BCF-XML and query OpenCDE BCF-API modules LGPL-3.0-or-later
blenderbim Add-on to Blender providing a graphical native IFC authoring platform GPL-3.0-or-later
bsdd Library to query the bSDD API LGPL-3.0-or-later
ifc2ca Utility to convert IFC structural analysis models to Code_Aster LGPL-3.0-or-later
ifc4d Convert to and from IFC and project management software LGPL-3.0-or-later
ifc5d Report and optimise cost information from IFC LGPL-3.0-or-later
ifcbimtester Wrapper for Gherkin based unit testing for IFC models LGPL-3.0-or-later
ifcblender Historic Blender IFC import add-on LGPL-3.0-or-later*
ifccityjson Convert CityJSON to IFC LGPL-3.0-or-later
ifcclash Clash detection library and CLI app LGPL-3.0-or-later
ifccobie Extract IFC data for COBie handover requirements LGPL-3.0-or-later
ifcconvert CLI app to convert IFC to many other formats LGPL-3.0-or-later*
ifccsv Library and CLI app to export and import schedules from IFC LGPL-3.0-or-later
ifcdiff Compare changes between IFC models LGPL-3.0-or-later
ifcfm Extract IFC data for FM handover requirements LGPL-3.0-or-later
ifcgeom Internal library for IfcOpenShell LGPL-3.0-or-later*
ifcgeom_schema_agnostic Internal library for IfcOpenShell LGPL-3.0-or-later*
ifcgeomserver Internal library for IfcOpenShell LGPL-3.0-or-later*
ifcjni Internal library for IfcOpenShell LGPL-3.0-or-later*
ifcmax Historic extension for IFC support in 3DS Max LGPL-3.0-or-later*
ifcopenshell-python Python library for IFC manipulation LGPL-3.0-or-later*
ifcparse Internal library for IfcOpenShell LGPL-3.0-or-later*
ifcpatch Utility to run pre-packaged scripts to manipulate IFCs LGPL-3.0-or-later
ifcsverchok Blender Add-on for visual node programming with IFC GPL-3.0-or-later
ifctester Library, CLI and webapp for IDS model auditing LGPL-3.0-or-later
ifcwrap Internal library for IfcOpenShell LGPL-3.0-or-later*
qtviewer Internal library for IfcOpenShell LGPL-3.0-or-later*
serializers Internal library for IfcOpenShell LGPL-3.0-or-later*
S
Description
No description provided
Readme 507 MiB
Languages
C++ 57.4%
Python 36.2%
C 3.9%
Gherkin 0.7%
JavaScript 0.3%
Other 1.3%