Andrej730
6913060f0c
bim.expand_target_view - remove trailing space from description
2025-04-23 19:22:31 +05:00
Andrej730
4427c73816
bim.override_mesh_separate - handle possible mode mismatch more gracefully
...
Other options LOOSE_PARTS and MATERIAL do support object mode.
bonsai-0.8.3-alpha2504221506
2025-04-22 20:05:32 +05:00
Andrej730
d188155fac
bim.override_mesh_separate - fix bug with skip_save
...
Previously you would use bim.override_mesh_separate from UI with any of the available `type` options, then running operator separately would leading to running this operator from F3 to always choose this options (possibly leading to errors in objects mode)
2025-04-22 20:05:31 +05:00
Andrej730
598dfd75e7
bim.override_origin_set - use operator_enum for menu
2025-04-22 20:05:31 +05:00
Andrej730
5c63cd7981
bim.override_mesh_separate - use operator_enum, hide Blender Separate
...
as it's now integrated in IFC separate and using Blender Separate for ifc elements is not safe
2025-04-22 20:05:31 +05:00
Andrej730
0b22333b69
bim.override_mesh_separate - integrate mesh.separate
...
mesh.separate will be used for all other selected non-ifc objects.
Included some code to support multple objects but there are still a few issue with it, I'll look into soon.
2025-04-22 20:05:31 +05:00
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
bonsai-0.8.3-alpha2504221137
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
5c4f157624
readable_ifc_duration - add doc-string and note
bonsai-0.8.3-alpha2504211401
2025-04-21 19:00:25 +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
908bf02098
ifc5d - strip " Cost" suffix when importing csv
...
" Cost" is a suffix is added on export, so it makes to get rid of it on import.
2025-04-21 19:00:24 +05:00
Andrej730
c6176d364f
ifc5d - use filename for imported schedule name
...
So it will be in sync with how export works.
Removed non_sor_fields is unrelated - forgot to remove before.
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
558bda1aea
black .
2025-04-21 19:00:23 +05:00
Dion Moult
426f1b91f2
See #2783 . Don't show 0 durations for clarity.
bonsai-0.8.3-alpha2504211259
2025-04-21 22:59:14 +10:00
Dion Moult
d1b1b08174
See #2783 . Duration parsing no longer uses isodate to remain faithful to formatting.
bonsai-0.8.3-alpha2504211239
2025-04-21 22:39:23 +10:00
Thomas Krijnen
c1513190d4
Debug build_win.yml
2025-04-21 13:17:14 +02:00
Andrej730
50e7728f95
Bump IOS build in Bonsai
...
New build resolves #6529 #6576
bonsai-0.8.3-alpha2504210858
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
Massimo Fabbro
266cc32336
Add calculating functions for earthworks
bonsai-0.8.3-alpha2504210848
2025-04-21 10:48:00 +02:00
Andrej730
f8ad05cb54
Use isodate to parse iso durations #2783
...
Related #6585
Co-Authored-By: sboddy <12862430+sboddy@users.noreply.github.com >
bonsai-0.8.3-alpha2504210813
bonsai-0.8.3-alpha2504210746
2025-04-21 12:45:40 +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.
bonsai-0.8.3-alpha2504210717
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.
bonsai-0.8.3-alpha2504210538
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
```
bonsai-0.8.3-alpha2504201620
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
bonsai-0.8.3-alpha2504201530
2025-04-20 10:30:03 -05:00
Thomas Krijnen
f3228c31f8
Debug build_win.yml
2025-04-20 08:42:03 +02:00
Dion Moult
86d481f4f8
Revert "Fix #4130 . Skip invalid topology."
...
This reverts commit bb598d848a .
bonsai-0.8.3-alpha2504200508
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.
bonsai-0.8.3-alpha2504191747
2025-04-19 12:46:52 -05:00
Thomas Krijnen
b87a7b3d0a
cgal kernel - conditionally reorient extrusion basis #6529
2025-04-19 18:50:51 +02:00
Massimo Fabbro
e54acd83f8
See #5149
...
Now it is possible to assign a resource also to a cost item in a schedule of rates
bonsai-0.8.3-alpha2504191441
bonsai-0.8.3-alpha2504191440
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.
bonsai-0.8.3-alpha2504191119
2025-04-19 21:19:18 +10:00
Dion Moult
df18108406
Add tests for sheet creation and drawing / sheet generation
bonsai-0.8.3-alpha2504190736
2025-04-19 17:36:21 +10:00
Thomas Krijnen
b64dcfd4b8
Fix compilation on schemas prior to ifc4 #6549
2025-04-19 09:21:22 +02: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).
bonsai-0.8.3-alpha2504190653
2025-04-19 16:53:14 +10:00
Dion Moult
fb34af9162
Fix #6575 . Regression in moving aggregates.
bonsai-0.8.3-alpha2504190531
2025-04-19 15:30:46 +10:00
Dion Moult
bb598d848a
Fix #4130 . Skip invalid topology.
bonsai-0.8.3-alpha2504190525
2025-04-19 15:25:13 +10:00
Dion Moult
502cf6f439
Standalone script to generate drawings for debugging
bonsai-0.8.3-alpha2504190500
bonsai-0.8.3-alpha2504190458
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.
bonsai-0.8.3-alpha2504190429
2025-04-19 14:29:20 +10:00
Dion Moult
4896a69981
Add test cases for drawing duplication and shapely fill mode.
bonsai-0.8.3-alpha2504190343
2025-04-19 13:42:36 +10:00