Commit Graph

3281 Commits

Author SHA1 Message Date
Andrej730 fb650a8516 option to set active system
Now it's possible to set in UI active system (currently it's done "select" button next to the system).

Also changed the elements that are going to be decorated with system decorator. Previously it was decorating all the mep elements in the projects which was very performance heavy on large projects.
2024-04-16 11:04:29 +02:00
Andrej730 424042474b Merge systems UI into one
We had two very similar systems panels that were part of the old UI.
2024-04-16 11:04:29 +02:00
Dion Moult 5bb04010ae Fix #3095. Very basic implementation of a new zones panel. 2024-04-16 11:04:29 +02:00
Andrej730 91c7fe4628 Fixed tests after selector syntax update 2024-04-16 11:04:29 +02:00
Dion Moult eff68dda38 Fix #3903. Bug where stairs started off with an empty mesh and had a representation added, resulting in an invalid empty point cloud.
Now stairs have should_add_representation=False when creating the IfcStairFlight, and the representation is updated explicitly, similar to how parametric doors and windows etc have their representations updated.
2024-04-16 11:04:29 +02:00
Dion Moult afd3ac1881 Fix regression from 744c08e where type products cannot have an instance specified in create_shape 2024-04-16 11:04:29 +02:00
Dion Moult b5253556a9 Adding / editing shading / rendering styles in the style manager now updates Blender materials 2024-04-16 11:04:29 +02:00
Andrej730 5d051b5bdd Fixed issue unlinking mesh objects
After d67eae5 delete_ifc_object is removing the meshes and it end up invalidating the unlinked object. Now mesh is copied before running delete_ifc_object
2024-04-16 11:04:29 +02:00
Andrej730 64f1ea9034 Fix tests after 808ff54 2024-04-16 11:04:29 +02:00
Andrej730 a5e667230d Minor fix after a47c57c 2024-04-16 11:04:29 +02:00
Andrej730 6297afa04c Fixed test after c34a9c5
Also fixed bug in the sheeter
2024-04-16 11:04:29 +02:00
Andrej730 219a5bbcf7 Fixed test after 418444a 2024-04-16 11:04:29 +02:00
Andrej730 ab39983d26 Fixed test after 90b40ff 2024-04-16 11:04:29 +02:00
Andrej730 52d67052bd Fixed test after 88d96f7 2024-04-16 11:04:29 +02:00
Andrej730 834bde2b63 Fixed test after 6e9639446 2024-04-16 11:04:29 +02:00
Andrej730 ec97b04bde Fixed #3907 after dd7a6a80e 2024-04-16 11:04:29 +02:00
Dion Moult 9c99085413 You can now edit rendering styles in the style manager 2024-04-16 11:04:28 +02:00
Andrej730 526dbd9e44 Added IfcZone to systems UI in IFC2X3 #3905
In IFC2X3 IfcZone is a subtype of IfcGroup but not subtype of IfcSystem (it become one after IFC4), therefore IfcZone wasn't presented anywhere in BBIM UI.
It's a bit confusing though to include IfcZone in systems when it's not actually a IfcSystem but having it in IfcGroups would be confusing too.
2024-04-16 11:04:28 +02:00
Andrej730 c8e9acce8c ifcfm symlink to dev environment setup script 2024-04-16 11:04:28 +02:00
Andrej730 ea2120aa00 bim.switch_representation to switch to exact representation
previously it was switching to the first representation that matches the context, so it wasn't possible to switch to the second one if you had more than 1 representation in the same context

using always both element and representation in `geometry.import_representation` so it will import the exact representation and not the first one found by `ifcopenshell.geom.create_shape`
2024-04-16 11:04:28 +02:00
Andrej730 915a892479 activate_drawing to prioritize already active representation
If there are multiple representations in the same subcontext, when it was searching for the representation for some specific subcontext, it would previously always switch to the first representation from the list, now it's going to prioritize the one that's already active.
2024-04-16 11:04:28 +02:00
Andrej730 b83732a92e bim.create_all_shapes info message 2024-04-16 11:04:28 +02:00
Andrej730 0a309e191d Bump build version to fix #3889 2024-04-16 11:04:28 +02:00
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