Commit Graph

10330 Commits

Author SHA1 Message Date
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
Andrej730 e8b2ccdd3c override blender ui panels when should_setup_workspace = False
Previously with should_setup_workspace = False it wouldn't override Blender UI scene panels and they would get mixed up with BBIM panels. After fix Blender panels are always moved to "Blender Properties" tab

before - https://i.imgur.com/bPvcAEe.png
now - https://i.imgur.com/lRUox29.png
2024-04-18 10:48:21 +02:00
Dion Moult fea78a8d52 Fix bug when linking in models with no chunks 2024-04-18 10:48:21 +02:00
Andrej730 e5cfe5cf3c ifcopenshell.validate to check unique guids (IfcRoot.UR1) 2024-04-18 10:48:21 +02:00
Andrej730 72011c2fbd typing 2024-04-18 10:48:21 +02:00
Andrej730 5c90b215ca validate.py - black format 2024-04-18 10:48:21 +02:00
Gorgious56 6f520ae457 The button to remove an inherited pset is no longer enabled on instances
Previously it would fail silently if clicked
2024-04-18 10:48:21 +02:00
Andrej730 65838f2033 Return of the missing button for regenerating global id
Was about to implement to find that we already have "bim.generate_global_id" and it just was lost at some point. Returned it to the attributes UI. It also allows Updating guids for all selected elements on Shift+Click.

This also can be useful to solve MergeProject and other guids conflicts, see example issue in https://community.osarch.org/discussion/2062/bbim-mergeproject-patch-not-separating-elements-in-different-buildings

Example - https://imgur.com/a/mvRtyER
2024-04-18 10:48:21 +02:00
Andrej730 345b94fbee RegenerateGlobalIds - tests 2024-04-18 10:48:21 +02:00
Andrej730 d6a72bd2b6 Fix test after cf9a94a79 2024-04-18 10:48:21 +02:00
Andrej730 246441e216 prevent reloading reference annotations on loading .ifc #4478
1) if reference annotation was changed, it would reload discarding the changes
2) even if reference annotation wasn't changed it would still reload them producing noise in .ifc changes
2024-04-18 10:48:21 +02:00
Andrej730 2f19a1bbea typing 2024-04-18 10:48:21 +02:00
Andrej730 73d7728c5f fix typo 2024-04-18 10:48:21 +02:00
Andrej730 bddf423e6c experimental svg to dxf conversion for drawings
Example - https://imgur.com/a/AkvLlbZ
2024-04-18 10:48:21 +02:00
Andrej730 74fa0a106e fix issue with prohibited facets in 0065c5f, add a test 2024-04-18 10:48:21 +02:00
Andrej730 5c398428c3 ifctester.Specification.set_usage convenience method
sets minOccurs and maxOccurs according to the agreement mentioned in the latest ids.xsd
https://github.com/buildingSMART/IDS/blob/6d71cdf3547a0383c6cfbbead81a7cef7521ac3a/Development/ids.xsd#L67-L72
2024-04-18 10:48:21 +02:00
Andrej730 7be396474c typing 2024-04-18 10:48:21 +02:00
Dion Moult 36527d0e9d Whoops. 2024-04-18 10:48:21 +02:00
Dion Moult 4403f75959 Fix #4321. The PurgeData recipe now also works on IFC2X3. 2024-04-18 10:48:21 +02:00
Dion Moult 619f461829 Fix #4060. The colour by property panel now shows the number of results in the legend. 2024-04-18 10:48:21 +02:00
Dion Moult 3793a5dfea Fix #4069. IfcClash Blender interface now uses the new filter UI. 2024-04-18 10:48:21 +02:00
Dion Moult 77465dfd41 Bump IOS. 2024-04-18 10:48:21 +02:00
Dion Moult 7742e4da45 IfcDiff now uses the new selector syntax with the new UI 2024-04-18 10:48:21 +02:00
Dion Moult e2102cd2c7 Fix #4306. Remove superseded selector UI. 2024-04-18 10:48:21 +02:00
Ryan Schultz d7317d27ab added search for styles - in BIM_PT_representation_items 2024-04-18 10:48:21 +02:00
Dion Moult 2905eb637d Fix #4328. Fix incorrect documentation about how to use the imperial_length formatting function. 2024-04-18 10:48:06 +02:00
Dion Moult 33f5db2e26 Use indices instead of WorkTimeDatesInterface
Checking start/end dates are done very, very often in date calculations (often looping through every day in a date range). So I'd prefer more opaque code but less overhead.
2024-04-18 10:48:06 +02:00
Thomas Krijnen c16d49d683 #4450 don't fail on empty bbox in prefiltering 2024-04-18 10:48:06 +02:00
Dion Moult fcf5073726 See #4484. Editing predefined type attributes now enforces valid combinations of userdefined and object/element type 2024-04-18 10:48:06 +02:00
Dion Moult 81fdaea5f2 Fix #4323. Bug where running a filter could fail if you tried to compare values which had incompatible types. 2024-04-18 10:48:06 +02:00