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
Thomas Krijnen
18d5957424
Defensiveness against invalid syntax #5608
2024-10-20 14:17:13 +02:00
Chris Mayo
65ecb92c03
python: Fix ifcopenshell.guid.new()
...
pyException:
<class 'AttributeError'>: module 'ifcopenshell' has no attribute 'guid'
bonsai-0.8.1-alpha2410201201
2024-10-20 14:01:34 +02:00
Bruno Perdigão
b8d98b7512
Black format
bonsai-0.8.1-alpha2410191416
2024-10-19 11:15:30 -03:00
Bruno Perdigão
97ed3bb0d5
Add product preview for mesh type objects when insertion point is active.
...
Currently works with doors, windows and furnitures.
bonsai-0.8.1-alpha2410191359
2024-10-19 10:57:06 -03:00
Bruno Perdigão
217ada0993
Refactor wall preview for polyline tool.
2024-10-19 10:25:03 -03:00
Chris Mayo
dcd6acb1f4
Install cityjson_converter lib and exe
...
Fixes:
$ IfcConvert
IfcConvert: error while loading shared libraries: libcityjson_converter.so: cannot open shared object file: No such file or directory
2024-10-19 13:48:17 +02:00
Andrej730
122ec6fb0a
Use clever Blender length props for editing representation item extrusion depth
...
Example - https://imgchest.com/p/ljyqzpmwoy2
bonsai-0.8.1-alpha2410181312
2024-10-18 18:12:00 +05:00
Andrej730
60837b9512
Operator to save pset as a template
...
Mentioned in #5596
Example - https://imgchest.com/p/5xy235xvj4l
Adds 2 things:
1) UI indicator whether pset is based on template or not
2) When pset is not based on a template, indicator becomes clickable and works as a shortcut for creating pset template based on the current pset.
2024-10-18 18:11:59 +05:00
Andrej730
ada4a8884b
tool.PsetTemplate
2024-10-18 18:11:59 +05:00
Andrej730
a27bdc4e3e
Add description to pset template props
...
As name doesn't seem to be displayed in the enum tooltip
2024-10-18 18:11:59 +05:00
Andrej730
43cecf6c5e
Hide 'remove pset template/file' operator when there are no templates/files
2024-10-18 18:11:59 +05:00