Andrej730
fa29c42887
common method for setting up Blender listeners for objects
2024-10-23 18:34:01 +05:00
Andrej730
86edd52894
Unlinking elements to clear Blender listeners
...
to prevent unnecessary callbacks
2024-10-23 18:34:01 +05:00
Andrej730
db0a72c794
Add min/max values for roof angle/percentage
...
That way those props should be easier to edit, previously dragging "percentage" would go to infinity very quickly.
2024-10-23 18:34:01 +05:00
Andrej730
d68dee148b
Fix infinite recursion with angle/percentage roof properties in 2597827
...
Probably was harmless, it was just flooding the console with errors such as:
object address : 000002485A776380
object refcount : 2
object type : 00007FFBD1249050
object type name: RecursionError
object repr :
lost sys.stderr
File "\bonsai\bim\module\model\prop.py", line 707, in <lambda>
object address : 000002485A774520
object refcount : 2
object type : 00007FFBD1249050
object type name: RecursionError
object repr :
lost sys.stderr
File "\bonsai\bim\module\model\prop.py", line 713, in <lambda>
2024-10-23 18:34:01 +05:00
Andrej730
a1134e83a4
Fix test after 8372e12f8
2024-10-23 18:34:00 +05:00
Andrej730
b61927b460
deprecate Style.get_style
...
In favor of Ifc.get_entity
2024-10-23 18:34:00 +05:00
Andrej730
863633f2dc
Prevent adding name callback to non-ifc blender materials
...
Also removing one more artifact from #4843
2024-10-23 18:34:00 +05:00
Andrej730
b7dfeaee37
typing
2024-10-23 18:34:00 +05:00
Andrej730
2771465996
black .
2024-10-23 18:34:00 +05:00
Ryan Schultz
f62b1ed326
Have svg tags with IfcColumn/IfcBeam classes always on top.
...
discussion: https://community.osarch.org/discussion/2572/a-clever-way-to-get-a-column-buried-in-a-wall-to-still-read-when-you-print-a-drawing
bonsai-0.8.1-alpha2410222345
2024-10-22 18:45:19 -05:00
Bruno Perdigão
0c0225543b
Add polyline tool for slabs.
...
No preview yet.
bonsai-0.8.1-alpha2410222041
2024-10-22 17:39:19 -03:00
Bruno Perdigão
ffe8d4fad2
Make wall preview decorator work only with IfcWallType.
2024-10-22 17:32:48 -03:00
Andrej730
c18d2e8c17
ifcopenshell.file - store default history_size in class instead of instance
bonsai-0.8.1-alpha2410221321
2024-10-22 18:20:29 +05:00
Andrej730
70521b1020
IfcStore.edited_objs - document issues
2024-10-22 18:20:29 +05:00
Andrej730
a777d67252
bim.generate_space - add a test
2024-10-22 18:20:29 +05:00
Andrej730
7544053f0b
bim.generate_space not to fail silently
2024-10-22 18:20:29 +05:00
Andrej730
7bebd2f7ce
bim.generate_space - fix missing undo step
2024-10-22 18:20:29 +05:00
Andrej730
64fe2240e6
bim.generate_space - not to produce orphaned ifc mesh
...
Orphaned mesh was also linked to IFC which could have lead to some hard to debug issues.
2024-10-22 18:20:28 +05:00
Andrej730
54b104b822
fix not working bim.generate_space because of the units mismatch
...
Not sure when this occurred but get_bmesh_from_polygon was expecting Polygon in project units but it was SI. Since it's probably better to move everything to SI, added an option to specify whether polygon is in SI or not.
2024-10-22 18:20:28 +05:00
Andrej730
abd7c93c35
bim.generate_space - document
2024-10-22 18:20:28 +05:00
Andrej730
5c56ea6343
spatial tool ui - sync shift-a hotkey UI with hotkey_S_A
...
Previously it was always showing two S_A operators
2024-10-22 18:20:28 +05:00
Andrej730
e8a2f3aed2
remove recalculate_dumb_wall_origin and don't mark aligned walls as edited
...
Since 5677768 recalculate_dumb_wall_origin is never used and bim.align_wall is either just changing the location (align_centerline) or might change object's representation but it's already saved to ifc (exterior/interior).
2024-10-22 18:20:27 +05:00
Andrej730
931e945044
Fix broken centerline alignment hotkey after e8f66ab
...
Ping @trhyder just in case
2024-10-22 18:20:27 +05:00
Andrej730
5eeea23774
bim.align_product - document
2024-10-22 18:20:27 +05:00
Andrej730
2a44af57d2
bim.align_product.align_type to use enum
...
to make it less error prone
2024-10-22 18:20:27 +05:00
Andrej730
035b6d00c5
bim.align_wall.align_type - use enum
2024-10-22 18:20:27 +05:00
Andrej730
8372e12f88
deprecate geometry.is_edited
...
in favor of ifc.is_edited
2024-10-22 18:20:26 +05:00
Andrej730
76869b0b02
deprecate misc.mark_object_as_edited
...
in favor of ifc.edit
2024-10-22 18:20:26 +05:00
Andrej730
5c08b8f22d
bim.resize_to_storey - document
2024-10-22 18:20:26 +05:00
Andrej730
bcf54b643d
Hide scale warning for non ifc objects
2024-10-22 18:20:26 +05:00
Andrej730
71c5e83fa0
typing
2024-10-22 18:20:25 +05:00
Andrej730
9eaecdb0a4
black .
2024-10-22 18:20:25 +05:00
Bruno Perdigão
3077687c59
Move product preview logic to its own decorator.
bonsai-0.8.1-alpha2410221302
2024-10-22 10:01:50 -03:00
Bruno Perdigão
71997d37c0
Add support for cardinal point in beam and column preview.
bonsai-0.8.1-alpha2410220054
2024-10-21 21:51:27 -03:00
Bruno Perdigão
acc9e7f706
Adds beam and columns to insertion point product preview.
2024-10-21 16:29:23 -03:00
Bruno Perdigão
5fa5b28484
Allow AddOccurence to use default container elevation value.
bonsai-0.8.1-alpha2410211412
2024-10-21 11:10:10 -03:00
Bruno Perdigão
745c8e173a
Small fix after 14917d2c3
bonsai-0.8.1-alpha2410211347
2024-10-21 10:46:26 -03:00
Bruno Perdigão
14917d2c31
Windows and Doors preview now get the wall rotation.
2024-10-21 10:34:42 -03:00
Bruno Perdigão
340916a5a4
Refactor snapping point selection to add the object name.
2024-10-21 10:34:42 -03:00
Bruno Perdigão
734ac2ba70
Fix issue with using shift + mousewheel while polyline is active.
2024-10-21 10:34:42 -03:00
Andrej730
dbfe3ea3c4
bim.update_representation - error message for objects with openings
bonsai-0.8.1-alpha2410211312
bonsai-0.8.1-alpha2410211311
2024-10-21 18:05:27 +05:00
Andrej730
c581946fa8
railing, roof - save representation to ifc instead of marking it as edited #5610
2024-10-21 18:05:27 +05:00
Andrej730
492df2310d
parametric stair - don't mark object as edited
...
As representation already saved to IFC and edited_objs seems to be getting less reliable because of the openings.
2024-10-21 18:05:27 +05:00
Andrej730
e8eb3972a1
Support styles without shading styles after 189bcd5
...
Noticed that after 189bcd5 some representations were missing styles - the ones that are using IfcSurfaceStyle with just IfcExternallyDefinedSurfaceStyle.
Ping @aothms just in case
2024-10-21 16:45:50 +05:00
Andrej730
45b3008b99
bim.edit_style to update representations if Side was edited
...
Mentioned in #5604 . Since IfcSurfaceStyle.Side is used during representation generation, we need to regenerate them if the value was changed. Previously it would require manual update / project reload.
2024-10-21 16:45:50 +05:00
Andrej730
ce6c56cab4
model.workspace - cache is_representation_item
...
To avoid accessing IFC on every draw call
2024-10-21 14:40:39 +05:00
Andrej730
1d90665c3a
split_by_loose_parts to preserve the objects selection
...
Noticed that bim.assign_class started to loose the objects selection after 29d6d2b
2024-10-21 14:40:39 +05:00
Andrej730
6bfbcb8f92
typing
2024-10-21 14:40:38 +05:00
Andrej730
4acdd7c960
Fix assigning cost item to resource after 97393eb #5601
...
fyi @myoualid
bonsai-0.8.1-alpha2410210627
2024-10-21 11:26:09 +05:00
Richard Brice
647e379c69
Fixes problem with evaluating point on vertical alignment
...
Fixes evaluation of IfcLine parent curve for IfcGradientCurve. See https://github.com/IfcOpenShell/IfcOpenShell/discussions/5587
2024-10-20 08:19:49 -07:00