Commit Graph

10359 Commits

Author SHA1 Message Date
Dion Moult 562bc14f5b Fix #3759. IFC4X3 files should use ADD2 identifier. 2024-04-18 10:48:23 +02:00
Dion Moult aba8683d5e Fix #4303. Declare dependencies for ifctester. 2024-04-18 10:48:23 +02:00
Dion Moult ef1a92a9ee Publish IfcClash to PyPI 2024-04-18 10:48:23 +02:00
Dion Moult bfe2d9f256 Publish IfcCSV to PyPI 2024-04-18 10:48:23 +02:00
Dion Moult 1ab76897a8 Whoops again 2024-04-18 10:48:23 +02:00
Dion Moult 0168c0ee26 See #4529. Publish IfcPatch to PyPI. 2024-04-18 10:48:23 +02:00
Dion Moult 42db0b18b0 Add bSDD makefile 2024-04-18 10:48:23 +02:00
Dion Moult 1248c8972a Whoops 2024-04-18 10:48:23 +02:00
Dion Moult 89b1616d2b Publish bSDD to PyPI 2024-04-18 10:48:23 +02:00
Dion Moult b158d6a5f8 Materials with no style colours now default to Blender's default colour when linking models 2024-04-18 10:48:23 +02:00
Dion Moult 9a19fb89c9 Fix #4521. 2024-04-18 10:48:23 +02:00
Dion Moult 52be9684fc Minor fix in doc utility for entities which have no predefined types 2024-04-18 10:48:23 +02:00
Dion Moult 46adb2b4db Fix bug where drawing psets were needlessly updated and random objects would get drawing psets added on them
The prop update callbacks on has_underlay, has_linework, and has_annotation would edit the active object, which is not necessarily the camera. Yikes! Also, this means that when activating the drawing, it would sync references and every time it synced a reference it would attempt to sync these properties too which was slow and wasteful.
2024-04-18 10:48:23 +02:00
Dion Moult 0e410b4ac2 Fix #4524. Update README.md 2024-04-18 10:48:23 +02:00
Dion Moult acba7c2410 Fix #4492. Refix bug where there was an extra equal sign when loading saved queries. 2024-04-18 10:48:23 +02:00
sebphi 0f33c000fb Fix import of ifcopenshell.util.unit in Python <3.10 #4520 2024-04-18 10:48:23 +02:00
Andrej730 eebcc48238 group.unassign_group - support batching #4474 2024-04-18 10:48:23 +02:00
Andrej730 df9a306730 spatial.unassign_container - support batching #4474 2024-04-18 10:48:22 +02:00
Andrej730 52995d1cdd spatial.assign_container - support batching #4474 2024-04-18 10:48:22 +02:00
Andrej730 ee6c7a9fad black format 2024-04-18 10:48:22 +02:00
Andrej730 443cd5187c typing 2024-04-18 10:48:22 +02:00
Andrej730 1d916f41e2 Collector.sync skip_unlinking option #4500
To speed up the drawing process in large projects and reduce time on syncing stage I've found that if object is already assigned to it's parent collection (both as part of blender collection and in IFC) we can skip assigning stage significantly reducing time on syncing in general (from 20-25 secs -> 9 secs).

The only thing we'll be missing in that case that object won't be unlinked from other unrelated blender collections which shouldn't break anything in the case of drawing generation.
2024-04-18 10:48:22 +02:00
Andrej730 bbdfe11cc0 documentation and small refactor 2024-04-18 10:48:22 +02:00
Andrej730 26e296c4b5 small optimizations
1) stop on first parent collection
2) ensure object's own collection's parent has BIMCollectionProperties.obj during the loop
3) collector._get_collections - returns project's own collection for consistency
4) couple tweaks skipping unnecessary iterations in loops
2024-04-18 10:48:22 +02:00
Dion Moult 9ee35b1054 See #4518. Fix pypi python version requirements. 2024-04-18 10:48:22 +02:00
Dion Moult 35f425c69d Add missing build dep 2024-04-18 10:48:22 +02:00
Thomas Krijnen 11364061d4 #4278 Update cd.yml bump ubuntu version 2024-04-18 10:48:22 +02:00
Dion Moult 336d056be7 Fix evil hacks in ifcopenshell pip dist packaging and support py312 on PyPI 2024-04-18 10:48:22 +02:00
Dion Moult 861aa3f9c7 Ship py39 to py312 for PyPI 2024-04-18 10:48:22 +02:00
Dion Moult b8ee171f65 Allow manual workflow dispatch of ci-ifcopenshell-pypi.yml 2024-04-18 10:48:22 +02:00
Dion Moult a12c732d0f Fix #4504. Extract CAD layers when linking in models. 2024-04-18 10:48:22 +02:00
Dion Moult f72604052b See #4504. Extract material data for linked models. 2024-04-18 10:48:22 +02:00
Dion Moult 760e8014e6 See #4508. Update example code to serialise to obj. 2024-04-18 10:48:22 +02:00
jaymeandretta fa65de051d Updates links to BlenderBIM and IfcOpenShell documentation in README 2024-04-18 10:48:22 +02:00
Andrej730 6bc4e003b4 bim.debug_active_drawing debug operator #4500
Operator can help narrow down failing elements when drawing is failing with "RuntimeError: An unknown error occurred".

it's located in debug section - https://i.imgur.com/b03jmkZ.png

The output is noisy but the results are highlighted:
https://i.imgur.com/0ZA0u60.png
https://i.imgur.com/oXzqIXU.png
https://i.imgur.com/Y0nMRMz.png
2024-04-18 10:48:22 +02:00
Andrej730 d0e1a04fba bim.create_drawing to sync only once if printing multiple drawings
Turned out syncing process takes too much time on large projects, so we can speed up the printing process by syncing just once. Also exposed option not to sync to operator's properties to allow debugging failing elements.

A bit related to #4500
2024-04-18 10:48:22 +02:00
Andrej730 479c244de7 black format, cleanup, notes
bim.generate_global_id - forgot to remove it previously, this operator isn't intended for debug section
2024-04-18 10:48:22 +02:00
Andrej730 1f3d46640f typing 2024-04-18 10:48:22 +02:00
Dion Moult 95bfb5c6a1 Autodetect CSG representation types in shape builder 2024-04-18 10:48:22 +02:00
Dion Moult 9c11626893 Detect binary data types in util.attribute 2024-04-18 10:48:22 +02:00
Massimo Fabbro 6ea9c9444a Qto_Calculator more consistent calculation about the PredefinedType 2024-04-18 10:48:22 +02:00
Massimo Fabbro 7519b66d4e improve the flooring height object quantity calculation 2024-04-18 10:48:22 +02:00
Massimo Fabbro 1132029e1b improve the ceiling height object quantity calculation 2024-04-18 10:48:22 +02:00
Massimo Fabbro 4ec902abf5 fix add ceiling from walls elevation bug 2024-04-18 10:48:22 +02:00
Andrej730 14efd59ff8 log external styles names when they fail to load 2024-04-18 10:48:22 +02:00
Andrej730 af3e2e0cf3 typing 2024-04-18 10:48:22 +02:00
Andrej730 19dcbf5ffb use default shading_styles.json in case if project's file is missing
to make it consistent with how we use in similar cases default styles, symbols, etc
2024-04-18 10:48:22 +02:00
Andrej730 4d1ea7eba5 move override panel methods to tool.Blender
to keep them close, so it will be easier to keep them in sync
2024-04-18 10:48:22 +02:00
Andrej730 100629e104 change .poll for overridden panels instead of creating new classes
Needed to avoid errors disabling addons that have overridden panels
2024-04-18 10:48:22 +02:00
Andrej730 c4d437cce4 move scene panels from different addons to "Blender Properties"
now we also automatically get list of default blender scene panels instead of hardcoding them
2024-04-18 10:48:21 +02:00