Commit Graph

440 Commits

Author SHA1 Message Date
Andrej730 056e0b050d fixed core tests after switch_representation changes 2024-04-16 11:05:23 +02:00
Dion Moult ca1925cc9f You can now specify a name when adding materials 2024-04-16 11:04:29 +02:00
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 91c7fe4628 Fixed tests after selector syntax update 2024-04-16 11:04:29 +02:00
Andrej730 64f1ea9034 Fix tests after 808ff54 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 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
Massimo Fabbro fee390c7ed refactor create spaces from walls 2024-04-16 10:55:57 +02:00
Dion Moult 22ba8ce496 You can now easily create orthographic and perspective model drawings from a preset 2024-04-16 10:55:57 +02:00
Andrej730 739b793cd7 test for model.get_manual_booleans() #3709
added test that model.get_manual_booleans will ignore IfcBooleanClippings until we find some other solution to distinguish automatic and manual clippings. And some refactor along the way.
2024-04-16 10:55:56 +02:00
Dion Moult 74ca102f6a Georeference module now supports IFC2X3 georeferencing / conversion utilities. 2024-04-16 10:55:56 +02:00
Sigma Dimensions (Yass) 2575348c9d change tests due to new class assignment workflow ref commit 808ff54 2024-04-16 10:37:18 +02:00
Dion Moult f6cd6d2591 Splitting by edge now resolved mapped representations, voided, and non-mesh geometries 2024-04-16 10:37:17 +02:00
Massimo Fabbro d3a37bf0eb Add model test about manual booleans 2024-04-16 10:37:17 +02:00
Massimo Fabbro da8cd9daba Add new covering tool. Mock up and initial functions 2024-04-16 10:37:16 +02:00
Massimo Fabbro 4ed901204e Partial spatial tool refactor 2024-04-16 10:37:16 +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
Dion Moult 1fc4b921e6 Fix failing tests and optimise brick tests. 2024-04-16 10:25:02 +02:00
rileywong311 42be4344a1 Update core/test_brick.py 2024-04-16 10:25:01 +02:00
rileywong311 97ee85aa87 Update tool/test_brick.py 2024-04-16 10:25:01 +02:00
rileywong311 fe8e370b8c Fix brick.feature
For one particular, I removed "And I set 'scene.BIMRootProperties.new_brick_relation_type' to 'hasPart'". Although it should really be "https://brickschema.org/schema/Brick#hasPart" to begin with, it was still failing the test. So removing it as a work around.
2024-04-16 10:25:01 +02:00
Dion Moult feec0e2437 Fix more failing tests. 2024-04-16 10:25:01 +02:00
Sigma Dimensions (Yass) b27262f81f Resource Features :
- Adding/removing and edit productivity data is now easier (+ cleaner UI)
- Pressing calculate schedule work on a parent resource will default to calculating its nested resources schedule work.
- Show derived Schedule Work for a parent resource
- Improve apperance of Resource Tree Structure
2024-04-16 10:25:01 +02:00
Andrej730 8856d513f4 test to make sure nothing happened to ifcsverchok 😅 2024-04-16 10:25:00 +02:00
rileywong311 7e5bcd4c49 Update Brick feature tests 2024-04-16 10:25:00 +02:00
Sigma Dimensions (Yass) a2078e8de7 Feature to constrain a resource work or number of used resources 2024-04-16 10:24:59 +02:00
Andrej730 b998e1c927 more work on transitions for MEP
- support transitions from and to circle profiles
- reworked transition length algorithm now it should be more accurate
- added support for creating transitions between profiles that are parallel but not collinear
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass) cb1ab7ec20 Update tests for editing sequence relationships 2024-04-16 10:24:59 +02:00
Dion Moult ae0a341c95 Fix #3551. Project specific pset templates now show up in the pset template editor. 2024-04-16 10:24:58 +02:00
Andrej730 6f17846a87 Fix tests errors after 8689164
Error was AttributeError: module 'blenderbim.bim.handler' has no attribute 'setDefaultProperties'
2024-04-16 10:24:57 +02:00
Andrej730 69daaff3e1 misspelling 😅 2024-04-16 10:24:57 +02:00
Sigma Dimensions (Yass) f0032ec4cf Fix contracting/expanding cost schedule tree and add tests to avoid proof changes 2024-04-16 10:24:55 +02:00
Sigma Dimensions (Yass) f125032d46 Feature to add a camera to extents of the scene objects 2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass) a0768ff408 feature to clear previous 4D Animation (object keyframes & colors) 2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass) 73f81a9bd3 animation settings now use human readable durations to make it less confusing 2024-04-16 10:24:54 +02:00
Andrej730 c2320bb320 small add_constr_type_instance refactor
ifc_class removed as it was never used - ifc_class was always figured either from BIMModelProperties.relating_type_id or operator.relating_type_id
2024-04-16 10:10:50 +02:00
Dion Moult f3df78784a New projects now load with a Views and Types collection with appropriate visibility settings. 2024-04-16 10:05:51 +02:00
Andrej730 7a6ae07f83 Distance subtype for rl1, rl2 and x/y/z (opening dimensions) in BIM Tool 2024-04-16 10:05:50 +02:00
Gorgious56 7aab0ccfd7 Fix Ifc modifier error after #3393064 because of legacy context.object
For some reason in the scene properties context.object returns None even if an object is active  in the viewport, so ifc modifiers would randomly throw errors. AFAIK functionally they are supposed to point to the same thing, but active_object seems to be the superior one and context.object deprecated and kept for legacy reasons. Couldn't find dev quote but I'm sure I saw it at some point
2024-04-16 10:05:49 +02:00
Dion Moult c3c018283b Fix #3275. You can now rename types from the type manager. 2024-04-16 10:05:48 +02:00
Andrej730 5a5e1e9892 disable chaching sound running the bim tests
to save someone's ears (probably mine 😁) from running 10 chaching sounds per second
2024-04-15 13:30:40 +02:00
Trashman247 d2815415df Rework NewBrick and LoadBrick in test_brick.py to fit with new VGC format
- VGC means VersionedGraphCollection.
- BrickStore.schema is now a filepath, so make that the case in the testing also.
2024-04-15 13:29:29 +02:00
Andrej730 bc20b4a899 Fixing tests after 2dc9dc200 2024-04-15 13:25:50 +02:00
Andrej730 7f10eaa14f Fixed tests after a4a6dce 2024-04-15 13:03:00 +02:00
Andrej730 4d3ed81971 Fixed test after b035129 2024-04-15 13:03:00 +02:00
Andrej730 5e019bbc42 Fixed test after c8c0c9a
Taking into account that now we have error messages if user will try to remove the last material layer which would make layer set invalid ifc.

FAILED test/bim/test_feature.py::test_remove_material_set_layer - AssertionError: Failed to run operator bpy.ops.bim.remove_layer(layer=IfcStore.get_file().by_id(93).MaterialLayers[...
2024-04-15 13:03:00 +02:00