Andrej730
69481c2d63
bim.override_mesh_separate - fix bug separating elements ( 7bc4b51)
...
`obj` variable was used but never passed to `separate_element`
```
Error: Python: Traceback (most recent call last):
File "\bonsai\bim\ifc.py", line 458, in execute_ifc_operator
result = getattr(operator, "_execute")(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\bonsai\bim\module\geometry\operator.py", line 105, in _execute
self.separate_element(element)
File "\bonsai\bim\module\geometry\operator.py", line 175, in separate_element
new_objs = [obj]
^^^
NameError: name 'obj' is not defined
```
2025-04-22 20:05:31 +05:00
Andrej730
671c887201
bim.override_mesh_separate - invoke menu if called without argument
...
Mimicking default mesh.separate behaviour.
@Gorgious56 I don't know if you've seen this before, but you might be interested - I've found a way to figure if operator wasn't called without any arguments.
2025-04-22 20:05:30 +05:00
Andrej730
0a6fbeccb0
bim.override_mesh_separate - use original Blender enum and description
2025-04-22 20:05:30 +05:00
Andrej730
4b3ca11c12
typing
2025-04-22 20:05:30 +05:00
Andrej730
f9bf8897bc
Fix error linking ifc files with relative filepaths going upwards
...
Mentioned in https://github.com/IfcOpenShell/IfcOpenShell/pull/6540#issuecomment-2820938852
2025-04-22 16:37:05 +05:00
Andrej730
932939099a
Add target_view prop to camera
...
This property was already set in 50b41f5 but Blender property was missing. Though nowit's not very useful as it just writes value to pset.
2025-04-22 16:37:05 +05:00
Andrej730
8d31d93531
typing
2025-04-22 16:37:05 +05:00
Andrej730
f87c694432
Fix issue with custom diagram scale ( 1d5891f)
...
It was referring to non-existent prop "custom_diagram_scale"
2025-04-21 19:00:25 +05:00
Andrej730
38eedffd80
tool.Ifc - add some doc-strings
2025-04-21 19:00:25 +05:00
Andrej730
305439d27e
Link.name - fix description
...
After f8828d3 we store linked filepath in .ifc project, so we don't support path relative to .blend anymore.
2025-04-21 19:00:24 +05:00
Andrej730
068814c095
bim.assign_document - add to documents UI
2025-04-21 19:00:24 +05:00
Andrej730
476604202a
typing
2025-04-21 19:00:24 +05:00
Andrej730
50e7728f95
Bump IOS build in Bonsai
...
New build resolves #6529 #6576
2025-04-21 13:57:25 +05:00
Andrej730
4e00a8d596
bonsai Makefile - specify shell explicitly
...
To avoid Windows trying to use cmd
2025-04-21 13:57:25 +05:00
Andrej730
311f9b96e7
black .
2025-04-21 12:45:40 +05:00
Dion Moult
56bfe80b3b
Fix #6501 . Fix #6104 . Fix #6189 . You can now change wall offset convention after drawing walls.
...
People kept on getting confused with the align tool thinking it changed
the baseline to reference line offset whereas it actually just aligned
the object bodies. This tool now does exactly that.
Also start refactoring the "DumbWall" classes into the tools so we can
test them properly.
2025-04-21 17:17:09 +10:00
Dion Moult
2db6b860b2
See #6501 . Fix bug where wall alignment didn't strictly check for poll requirements prior to executing operator.
2025-04-21 15:38:26 +10:00
Ryan Schultz
5af2c3914a
When \n stopped the world. fix previous commit.
...
```
os: Windows
os_version: 10.0.19045
python_version: 3.11.7
architecture: ('64bit', 'WindowsPE')
machine: AMD64
processor: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
blender_version: 4.2.1 LTS
bonsai_version: 0.0.0
bonsai_commit_hash: f8ebc2d
bonsai_commit_date: 2025-04-20T10:30:03-05:00
last_actions:
last_error: Traceback (most recent call last):
File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\bonsai\bim\module\project\operator.py", line 1003, in finish_loading_project
bpy.ops.bim.load_project_elements()
File "c:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py", line 109, in __call__
ret = _op_call(self.idname_py(), kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Python: Traceback (most recent call last):
File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\bonsai\bim\module\project\operator.py", line 1063, in execute
bonsai.bim.schema.reload(self.file.schema_identifier)
File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\bonsai\bim\schema.py", line 67, in reload
ifc = IfcSchema(schema_identifier)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\bonsai\bim\schema.py", line 43, in __init__
self.load_pset_templates()
File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\bonsai\bim\schema.py", line 57, in load_pset_templates
self.psetqto.templates.append(ifcopenshell.open(path))
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\ifcopenshell\__init__.py", line 183, in open
return file(f)
^^^^^^^
File "C:\Users\Ryan Schultz\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\.local\lib\python3.11\site-packages\ifcopenshell\file.py", line 295, in __init__
raise exc(msg)
ifcopenshell.Error: Syntax error during parse, check logs
Location: c:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\bpy\ops.py:109
ifc: projection lines.ifc
schema: IFC4
preprocessor_version: IfcOpenShell 0.0.0
originating_system: Bonsai 0.8.3-alpha250417-f3228c3
```
2025-04-20 11:20:05 -05:00
Ryan Schultz
f8ebc2d156
Property in EPset_Drawing for SVG classes that 'rise to the top'. per: https://community.osarch.org/discussion/comment/22689/#Comment_22689
2025-04-20 10:30:03 -05:00
Dion Moult
86d481f4f8
Revert "Fix #4130 . Skip invalid topology."
...
This reverts commit bb598d848a .
2025-04-20 15:07:45 +10:00
Ryan Schultz
05f79c844a
For cut lines through terrain. I still plan to make these a preference, however.
2025-04-19 12:46:52 -05:00
Massimo Fabbro
e54acd83f8
See #5149
...
Now it is possible to assign a resource also to a cost item in a schedule of rates
2025-04-19 16:40:47 +02:00
Massimo Fabbro
f8e52c8a12
See #6570 . Add a button to refresh an imported csv file
...
Now the imported csv filepath is stored so it is possible to refresh the cost schedule without the need of reimporting it
2025-04-19 16:40:24 +02:00
Dion Moult
0608f92bc4
See #4699 . Potentially fix crashes by only loading IFC data once and caching in decorator.
2025-04-19 21:19:18 +10:00
Dion Moult
df18108406
Add tests for sheet creation and drawing / sheet generation
2025-04-19 17:36:21 +10:00
Dion Moult
d1493b4234
Fix #5571 . No longer create "RASTER" document references. Process all images at sheet creation time.
...
I think this was overengineered and a bad decision. RASTER is a
technical detail, not a semantic label (in contrast with whether it's a
title or a drawing).
2025-04-19 16:53:14 +10:00
Dion Moult
fb34af9162
Fix #6575 . Regression in moving aggregates.
2025-04-19 15:30:46 +10:00
Dion Moult
bb598d848a
Fix #4130 . Skip invalid topology.
2025-04-19 15:25:13 +10:00
Dion Moult
502cf6f439
Standalone script to generate drawings for debugging
2025-04-19 14:59:54 +10:00
Dion Moult
9875fce579
Revert "See #6574 . Bump IOS."
...
This reverts commit 90198115b6 .
2025-04-19 14:58:07 +10:00
Dion Moult
90198115b6
See #6574 . Bump IOS.
2025-04-19 14:29:20 +10:00
Dion Moult
4896a69981
Add test cases for drawing duplication and shapely fill mode.
2025-04-19 13:42:36 +10:00
Dion Moult
3390f58c88
Fix failing tests
2025-04-19 08:19:25 +10:00
Andrej730
ff90396bcf
typing
2025-04-18 19:25:46 +05:00
Dion Moult
a030b84fc5
Typo
2025-04-18 19:50:03 +10:00
Dion Moult
0b1c049e81
Fix #5137 . Fix bug where duplicated drawings didn't duplicate properly. Duplicating drawings now shares code with regular object duplication.
...
Previously code wasn't shared and duplication was reimplemented in an
incomplete way. Now it's shared which means that it's also more
sophisticated (i.e. does all the linked aggregate magic).
Also the duplicate code seems super complicated especially with arrays
and linked aggregates. Moving it into a tool makes it more reusable and
we can test it more granularly in the future.
2025-04-18 19:47:54 +10:00
Dion Moult
74390c0529
Fix bug where duplication outside IFC projects didn't use native Blender operators.
...
Historically we overrode the operator, so we had to reinvent native
functionality. Now we only override the hotkey, so we can reuse native
functionality. This also means that things we failed to reinvent like
duplicating unlinked animation data now works properly. This bit me when
I was doing animation work and Bonsai's duplicate messed things up.
2025-04-18 18:28:15 +10:00
Andrej730
c5f4b53555
bim.export_cost_schedules - fix bug with overridden prop value
...
E.g. if you would call this operator for 1 specific cost schedule, Blender would remember it's value and would keep on using it even if operator is going to be called outside this schedule
2025-04-17 18:55:42 +05:00
Andrej730
016cfa94d2
export_cost_schedules - fix confusing filename
...
Mentioned in #6545
Override filename to be always empty, so user won't have an expectation that csvs will be saved as a single file (currently they're always saved to a directory).
2025-04-17 18:55:41 +05:00
Andrej730
576a206d5b
Fix typo
2025-04-17 18:55:41 +05:00
Andrej730
37a0b3f6a9
Csv2Ifc - move arguments to init for a simpler setup
2025-04-17 18:55:41 +05:00
Andrej730
95f754d2df
black .
2025-04-17 18:55:40 +05:00
Dion Moult
e16d8907f3
See #5676 . Shapely fill calculation on drawings is 100x faster due to Blender raycasting instead of tree.select_ray.
2025-04-17 22:31:23 +10:00
Dion Moult
52cada180b
Fix #4107 . Bug where shapely used incorrect raycast coordinates causing fills to not show.
...
This has been around for 2 years, either it was never noticed or
something changed?
2025-04-17 19:38:31 +10:00
Gorgious56
1999216ea5
Use utilities to fetch collection hierarchy
...
I don't think this offers a noticeable performance gain but feels more idiomatic since it is available with the API.
2025-04-17 09:10:28 +02:00
Dion Moult
5a6476a57f
Fix #3673 . Bug where a split wall broke flipped doors.
...
Instead of regenerating fills upon splitting walls, placements are
preserved exactly.
2025-04-17 16:28:05 +10:00
Bruno Perdigão
c45e3b0099
See #6537 . Fix how OverrideMove works when dealing with multiple levels of aggregates.
2025-04-16 20:46:39 -03:00
Bruno Perdigão
c9fc543e91
See #6537 . Improve how aggregate mode behaves when dealing with multiple levels of aggregates.
2025-04-16 20:23:18 -03:00
Andrej730
ecee3781e4
Fix more missing Blender descriptions leading to crashes #6420
2025-04-15 19:43:38 +05:00
Andrej730
52f949b2dc
assign_class - avoid empty geometries and assigning shape reprs to structural items
2025-04-15 19:43:38 +05:00