Commit Graph

3258 Commits

Author SHA1 Message Date
Andrej730 1c142a34bc Some UI to mark booleans as manual #3709
Currently it allows only to either set all object's booleans to be marked as manual or all of them marked as automatic, can't change some specific boolean.

Short demo - https://imgur.com/a/bczv35N
2024-04-16 11:04:28 +02:00
Andrej730 6a7f8f65c7 move to tools methods for working with manual booleans #3709
Also fixed a bug adding boolean when pset is already added and representation type in add_boolean

```
  File "\addons\blenderbim\tool\ifc.py", line 201, in execute
    IfcStore.execute_ifc_operator(self, context)
  File "\addons\blenderbim\bim\ifc.py", line 336, in execute_ifc_operator
    result = getattr(operator, "_execute")(context)
  File "\addons\blenderbim\bim\module\model\opening.py", line 534, in _execute
    data = json.loads(pset["Data"])
  File "\addons\blenderbim\libs\site\packages\ifcopenshell\entity_instance.py", line 248, in __getitem__
    if key < 0 or key >= len(self):
TypeError: '<' not supported between instances of 'str' and 'int'
```
2024-04-16 11:04:28 +02:00
Andrej730 df745345d5 refresh_aggregate to show time it took
since this can get very time consuming on large projects
2024-04-16 11:04:28 +02:00
Andrej730 cef9ba6001 Fix poll error after 3de9915
The error was
Traceback (most recent call last):
  File "\blenderbim\bim\module\model\covering.py", line 64, in poll
    return element.is_a("IfcCovering")
AttributeError: 'NoneType' object has no attribute 'is_a'
2024-04-16 11:04:28 +02:00
Andrej730 dcc600805c small fix f38952dc5 #3898 😬 2024-04-16 11:03:55 +02:00
Andrej730 3804b4912e small refactor 2024-04-16 11:03:55 +02:00
Andrej730 f8a2946355 Support other voiding IfcFeatureElementSubtraction elements #3889
Support other voiding IfcFeatureElementSubtraction besides IfcOpeningElement.
2024-04-16 11:03:55 +02:00
Andrej730 ede7776a28 black formatting 2024-04-16 10:56:22 +02:00
Andrej730 e1b64fba00 Keep placement axes recalculating profiles #3879 2024-04-16 10:56:22 +02:00
Ryan Schultz 3ae42a074f Add a preference for particular app to open sheet layout 2024-04-16 10:56:22 +02:00
Bruno Postle 4375a39726 BlenderBIM minor fix after 7107a91 2024-04-16 10:56:22 +02:00
Dion Moult 12000c5aa5 Fix #3870. Bug where element filtering wasn't initialised properly when loading a camera for the first time.
Raster_x/y would only be set after the handler triggers. This is no longer necessary with the new explicit width / height properties.
2024-04-16 10:56:22 +02:00
Bruno Postle 8d25bfca18 BlenderBIM keep camera position on git switch
New 'zoom extents' behaviour on IFC load is unwanted when switching
between git revisions
2024-04-16 10:56:22 +02:00
Massimo Fabbro 21078a80dd Fix bug in covering/space tool with matrix global and local 2024-04-16 10:56:22 +02:00
Dion Moult e4adfb863b See #3884. Rewrite native geometry handling with a much more robust approach fixing a number of invalid coordinates and simplifying things. 2024-04-16 10:56:22 +02:00
Dion Moult 2c80342676 Fix bug where native meshes had normal smoothing enabled by default 2024-04-16 10:56:22 +02:00
Dion Moult a3acc0540a First draft of style manager panel 2024-04-16 10:55:58 +02:00
Dion Moult 30850e79b0 Material manager panel now moved to geometry tab 2024-04-16 10:55:58 +02:00
Dion Moult 648d6dfdb9 Representation items panel now shows styles and layers 2024-04-16 10:55:58 +02:00
Dion Moult 89339f807f Accommodate bug in Revit where mapped representations were missing... well, a representation map. 2024-04-16 10:55:58 +02:00
Dion Moult 1237d82d13 Minor bug fixes with error message when selecting objects in layers without objects 2024-04-16 10:55:58 +02:00
Massimo Fabbro 7863585cce better UI for covering tool 2024-04-16 10:55:58 +02:00
Massimo Fabbro 15233c4a21 fix generate space and covering where objects weren't created in the right location 2024-04-16 10:55:58 +02:00
Dion Moult f14df7f523 Begin drafting out a new representation items panel for managing styles and layers properly 2024-04-16 10:55:58 +02:00
Massimo Fabbro dd9be46212 Add generate flooring from cursor and regen (#3874) 2024-04-16 10:55:58 +02:00
Dion Moult f8439ed728 Fix #3873. Regression due to new importing logic. 2024-04-16 10:55:58 +02:00
Dion Moult c4fc00ab50 See #1619. Fix issue where copying non-templated properties didn't work. 2024-04-16 10:55:58 +02:00
Ryan Schultz 48f57c6999 Further clarify the bim.link_ifc command 2024-04-16 10:55:57 +02:00
Dion Moult b75dc6a056 Minor fix 2024-04-16 10:55:57 +02:00
Dion Moult 00239234ff Manual booleans are now tracked via a Pset instead of arbitrary class conventions which should fix a bunch of issues. 2024-04-16 10:55:57 +02:00
Dion Moult 7170d9f06f See #3817. WARNING: fundamental change. Standardise prioritisation of all context permutations when loading occurrences and types. 2024-04-16 10:55:57 +02:00
Dion Moult 83a43725f9 You can now federate FM spreadsheets using the Blender UI 2024-04-16 10:55:57 +02:00
Ryan Schultz a6ef2d6152 Adding "Manually Save Representation" and bim.get_representation_ifc_parameters back to Representation Utilities panel
from: https://github.com/IfcOpenShell/IfcOpenShell/commit/3a812a9ec156818061c01bd5b2ac2c2bee09faf1#r123820129
2024-04-16 10:55:57 +02:00
Andrej730 8de37b7df4 Minor fix #3862 2024-04-16 10:55:57 +02:00
Ryan Schultz 865c037474 fixed error when creating new walltype in IFC2x3 2024-04-16 10:55:57 +02:00
Massimo Fabbro 698ccceda2 Minor spatial refactor 2024-04-16 10:55:57 +02:00
Massimo Fabbro bbfd42cf19 Refactor create_space operator and better UI for covering tool 2024-04-16 10:55:57 +02:00
Massimo Fabbro fee390c7ed refactor create spaces from walls 2024-04-16 10:55:57 +02:00
Massimo Fabbro e10b5f6f44 Add predefined type to AuthoringData 2024-04-16 10:55:57 +02:00
Bruno Postle 1c12f2cbf8 BlenderBIM make fca90e9 optional
setup_viewport_camera() does a 'zoom extents' on IFC import.
Create a should_setup_viewport_camera option (default True)
2024-04-16 10:55:57 +02:00
Andrej730 531d3b56ed fixed issue with placing end port for a bend 2024-04-16 10:55:57 +02:00
Andrej730 a101d7e9a0 system decorations - indicate both directions flow 2024-04-16 10:55:57 +02:00
Dion Moult 6ab6567905 Fix #3843. Regression where IfcMaterialList UI didn't show list of materials. 2024-04-16 10:55:57 +02:00
Andrej730 9f1afdd905 Minor fix after b9a9abd30 2024-04-16 10:55:57 +02:00
Andrej730 f08cbec747 revert flow directions icons to arrows 2024-04-16 10:55:57 +02:00
Andrej730 5922d08322 Minor fix after 78c748df5
RuntimeError: Error: Registering panel class: parent 'BIM_PT_tab_placement' for 'BIM_PT_placement' not found
2024-04-16 10:55:57 +02:00
Andrej730 9a88c4235d Fixed adding opening to meshes of all occurences for non material based representations
Mentioned in #3817
2024-04-16 10:55:57 +02:00
Andrej730 ca4d4e026c Moving some code to tool.Geometry 2024-04-16 10:55:57 +02:00
Dion Moult be928347c5 You can now select coloured objects in a colourscheme. 2024-04-16 10:55:57 +02:00
Dion Moult f574a3f65b New placement panel to consolidate placement data in geometry tab 2024-04-16 10:55:57 +02:00