Commit Graph

9162 Commits

Author SHA1 Message Date
Andrej730 6700270600 Units formatting for Spatial Manager
Noticed in Sigma Dimensions video that we have some floating point garbage displayed in the Spatial Manager UI and I've added some simple formatting.

Now - https://i.imgur.com/eM1rDDu.png
Before - https://i.imgur.com/ySln5uU.png
2024-04-16 10:34:29 +02:00
Dion Moult c9c449978d Reimplement IfcCOBie contacts, facilities, floors, and spaces in IfcFM. 2024-04-16 10:34:29 +02:00
Andrej730 602ec57cba Considering parametric data for fitting #3695
Search for compatible fitting wasn't taking into account that maybe fitting used for the same segments but fitting's parameters are not the same (such as start_length, end_length, angle and offset between profiles).

I also forgot to promote transition angle to operator's property😬
2024-04-16 10:34:29 +02:00
Andrej730 a1bca1bb4a 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
2024-04-16 10:34:29 +02:00
Andrej730 08ace6616c automatically adjust viewport camera on loading ifc
It will make sure you'll be able to see the project's elements in viewport when it's loaded (same way as if you'd select all objects and hit "Numpad .").

Couldn't find any way to make it work without enablging / disabling selection - https://projects.blender.org/blender/blender/issues/112141
2024-04-16 10:34:29 +02:00
Andrej730 b5c80ebaab Fixed issue using mitre with small angles between walls (#3721)
Normalization is unrelated, just added to be safe.
2024-04-16 10:34:29 +02:00
Andrej730 ee4568b7d2 some DumbWallJoiner.join() refactor 2024-04-16 10:34:29 +02:00
Dion Moult 271161f00f Minor fix after 6887210 2024-04-16 10:34:29 +02:00
Dion Moult 01c1023af2 Fix bug when casting to tessellation for invalid IFCs which don't use material sets properly. 2024-04-16 10:34:29 +02:00
Dion Moult 1a59b4913e IfcFM now uses Openpyxl and supports xlsx. Reorder columns to be more logical and group similar data types together (at least for me). 2024-04-16 10:34:29 +02:00
Dion Moult 2762d9c47f Fix #3733. Fix round function precision error. 2024-04-16 10:34:29 +02:00
Dion Moult 5edc6c4d8a Enable Sphinx auto section labels. Minor doc link fix. 2024-04-16 10:34:29 +02:00
Dion Moult 073491a78a For convenience, rounding to an integer value now also casts to integer. 2024-04-16 10:34:29 +02:00
Ryan Schultz fa08d9d01e Update installation.rst 2024-04-16 10:34:29 +02:00
Dion Moult a405b36167 ResetAbsoluteCoordinates IfcPatch recipe can now choose whether to reset placements, geometry, or both points. 2024-04-16 10:34:29 +02:00
Dion Moult 678dce8fc0 Fix bug where unedited mesh objects were still tagged as edited which led to unnecessary processing prior to drawing generation or saving. 2024-04-16 10:34:29 +02:00
Dion Moult 292194c4f6 You can now customise the display of empty strings in IfcCSV. 2024-04-16 10:34:29 +02:00
Dion Moult c4eed78ca1 Update documentation with new selector keys. 2024-04-16 10:34:29 +02:00
Dion Moult 23da63b9a6 Big clean up to IfcFM. It's almost usable! 2024-04-16 10:34:29 +02:00
Dion Moult 62b2b9983f Fix #3682. You can now tag setout points with dynamic xyz / enh values. 2024-04-16 10:34:29 +02:00
Dion Moult e8b52d3d93 Drawing text annotation now use the new format functions instead of executing arbitrary code. 2024-04-16 10:34:29 +02:00
Dion Moult b792fff98c New substr formatting function. 2024-04-16 10:34:29 +02:00
Dion Moult e7a90b5597 You can now choose both input and output units for imperial formatting 2024-04-16 10:34:29 +02:00
Ryan Schultz 41c6830ee0 Update ifc_classes_suggestions.json 2024-04-16 10:34:29 +02:00
Dion Moult ee2f5fc646 Revert "Spreadsheet Import/Export: Fix feet and inch formatting"
This reverts commit 921d412fc7.
2024-04-16 10:34:29 +02:00
Dion Moult fbe52287fc Revert "Small fix for feet and inch formatting on Spreadsheet Import/Export"
This reverts commit 7935bd22c2.
2024-04-16 10:34:29 +02:00
Dion Moult 396fdc7806 Fix #3722. Fix ifcopenshell pypi distribution to use modern manylinux tag for glibc 2.31. 2024-04-16 10:34:29 +02:00
Ryan Schultz bf023370ef Small fix for feet and inch formatting on Spreadsheet Import/Export 2024-04-16 10:34:29 +02:00
Andrej730 d5e222d8de remove the orphaned data created on object duplicate
orphaned mesh still had ifc_definition_id of the original object and could have caused issues in theory
2024-04-16 10:34:29 +02:00
Andrej730 21aad4c4f5 Update status visibility automatically #3721 2024-04-16 10:34:29 +02:00
Dion Moult fbad0eeac2 Fix #3705. Fix ambiguity in using commas in unquoted strings in facet selector. 2024-04-16 10:34:28 +02:00
Dion Moult 66032dd8f3 Fix #3712. Fix bug where grid axes couldn't be duplicated. 2024-04-16 10:34:28 +02:00
Dion Moult de04c71335 Improve hello world documentation to be more beginner friendly 2024-04-16 10:34:28 +02:00
Andrej730 aa71025e7f hotfix for ca4efa6e5 2024-04-16 10:33:34 +02:00
Andrej730 eeb7c9b010 Remove operator's name from set_tab tooltip #3704 2024-04-16 10:33:34 +02:00
Andrej730 98503179d9 bim.mep_add_bend
Added operator to create bend fittings between objects, it's still work in progress and now it only supports rectangular profiles.

Small demo - https://imgur.com/a/vM7hnJa
2024-04-16 10:33:34 +02:00
Andrej730 3827e1d267 notify about unsupported transition case 2024-04-16 10:33:34 +02:00
Dion Moult ed9f50298c See #3700. Fix issue in drawing include filter where "addition" selections like GlobalIds and classes didn't have any impact. 2024-04-16 10:33:34 +02:00
Dion Moult e336c63005 You can now load 2D point clouds. 2024-04-16 10:30:32 +02:00
Dion Moult 59c8326c51 See #3682. You can now add symbols and multisymbols (i.e. one vertex per symbol) annotations. New default symbols for setout points in demo library. 2024-04-16 10:30:32 +02:00
Andrej730 1a3ac79dc2 Fixed bug with adding obstruction fittings 2024-04-16 10:30:22 +02:00
Andrej730 284feb5d67 couple descriptions for setting north 2024-04-16 10:30:22 +02:00
Dion Moult 2f6e702809 Fix #3470. Fix bug where hppfcl for IfcClash was incorrectly bundled for Windows. 2024-04-16 10:30:22 +02:00
Dion Moult 7b0a10dc13 Fix bug where models that might have invalid shapes or 2D far shapes might break georeferencing and model loading. 2024-04-16 10:28:25 +02:00
Dion Moult 2bc7b98806 Minor fix 2024-04-16 10:28:25 +02:00
Dion Moult 2743d18f50 IfcTester BCFs now include viewpoints for occurrences 2024-04-16 10:28:25 +02:00
Dion Moult 69d9388f61 Add filepath popup when saving IDS reports to BCF 2024-04-16 10:28:25 +02:00
Dion Moult 39ec1f9ea0 Bump IOS 2024-04-16 10:28:25 +02:00
Dion Moult 2ea3704d96 Update BBIM tester module UI to be compatible with new IfcTester upgrades 2024-04-16 10:28:25 +02:00
Dion Moult 283961fc72 IfcTester now supports much more granular statistic reports and more detailed / beautiful HTML reports. 2024-04-16 10:28:25 +02:00