Dion Moult
47d11daa15
See #1227 . Small clean up of old sketch-wall based code which we no longer support.
bonsai-0.8.2-alpha2503080026
2025-03-08 11:26:27 +11:00
Dion Moult
01ec750814
See #1227 . New connect wall API function since this can be done generically.
...
This will supersede the butt/mitre join functions we used to have.
2025-03-08 11:25:07 +11:00
Dion Moult
8c9a657a8c
See #1227 . Check layer set direction when slicing.
bonsai-0.8.2-alpha2503080014
bonsai-0.8.2-alpha2503080013
2025-03-08 11:13:26 +11:00
Bruno Perdigão
48acfad8bb
Fix #6213 . Adjust wall clipping from slabs to account for slab offset and direction sense.
bonsai-0.8.2-alpha2503071857
2025-03-07 15:49:32 -03:00
Bruno Perdigão
01b63d87d0
Fix issue with updating slab offset with negative direction sense.
2025-03-07 15:42:09 -03:00
Bruno Perdigão
36744d391e
Fix #6236 . Product preview properties were not being cleared when data is empty.
2025-03-07 14:14:28 -03:00
Andrej730
f0e5430daa
bonsai_translations - allow .po files going out of sync
...
We had Chinese translation for Bonsai and some stub file for German and translation.py generation was failing with the error below. Chinese translation is more recent so it has some keys that German file hadn't and some keys were gone in the more recent version. In theory we should make all .po file in sync but let's skip it for now to keep things going.
```
Traceback (most recent call last):
File "/home/runner/work/IfcOpenShell/IfcOpenShell/src/bonsai/scripts/bonsai_translations.py", line 379, in <module>
update_translations_from_po(po_directory=Path(args.input), translations_module=Path(args.output))
File "/home/runner/work/IfcOpenShell/IfcOpenShell/src/bonsai/scripts/bonsai_translations.py", line 203, in update_translations_from_po
if (msgstr := msg.translations[lang]) in (None, ""):
~~~~~~~~~~~~~~~~^^^^^^
KeyError: 'de_DE'
```
bonsai-0.8.2-alpha2503071549
2025-03-07 20:48:44 +05:00
Andrej730
197281eb5a
bonsai_translations - use utf-8 for opening files
...
Critical on Windows as it's not using utf-8 by default
2025-03-07 20:48:44 +05:00
Andrej730
7b370e6142
Fix operators missing execute after a663216
2025-03-07 17:13:00 +05:00
Andrej730
71a7d0c086
Fix missing IfcDistributionCircuit and IfcElectricalCircuit #6202
...
When checking if element is assignable to the system.
2025-03-07 17:12:59 +05:00
Andrej730
b86e735530
Fix breaking Systems UI with IfcElectricalCircuits
2025-03-07 17:12:59 +05:00
Andrej730
46104f5bf5
Update Profiles UI profile editing arbitrary profile #6284
2025-03-07 17:12:59 +05:00
Andrej730
d68068a84b
bim.load_profiles - try not to check all inverses for optimization
2025-03-07 17:12:59 +05:00
Andrej730
fc7dd3b234
Preserve ProfileName editing arbitrary profile #6284
2025-03-07 17:12:59 +05:00
Andrej730
85fc97eb84
Profiles UI - add safety check for missing profiles #6284
...
Example - https://imgur.com/a/bVdV5oB
2025-03-07 17:12:59 +05:00
Andrej730
9076deddbc
Consider ifc2x3 in a358cff1b7 #6255
...
In ifc2x3 position is not optional, so we should reset it's coordinates instead.
2025-03-07 17:12:59 +05:00
Andrej730
eb0d3c38b2
ifcopenshell.util - make ifc_file argument optional if it can be deduced from ifc element
2025-03-07 17:12:59 +05:00
Andrej730
590288496e
typing
2025-03-07 17:12:58 +05:00
Andrej730
269e137ea2
black .
2025-03-07 17:12:58 +05:00
Dion Moult
ed722c6f13
See #1227 . Refactor out test waldo script into API function.
2025-03-07 19:05:24 +11:00
Dion Moult
2b9e3d2a2e
See #1227 . Enable layerset slicing.
2025-03-07 19:03:45 +11:00
Dion Moult
7dee888ecf
See #1227 . New util function in shape builder to do an X axis intersection.
2025-03-07 19:00:18 +11:00
Dion Moult
a67927ae67
Automatically merge excessive styles when loading models
...
Came across this problem with some models from 12D
bonsai-0.8.2-alpha2503070602
2025-03-07 17:02:05 +11:00
Dion Moult
1271e4b7e3
New IfcPatch recipe to merge identical styles
2025-03-07 17:01:14 +11:00
Andrej730
a44d0e713a
Bump Blender build and fix dead url
bonsai-0.8.2-alpha2503061412
2025-03-06 19:11:46 +05:00
Andrej730
a358cff1b7
Fix extrusion position update on OffsetFromReferenceLine changed #6255
...
Also fixed an issue when previously there was an offset and now it was set to 0 but slab did not reset it's position.
bonsai-0.8.2-alpha2503061344
2025-03-06 18:43:54 +05:00
Andrej730
188ca3e402
Fix bim.profiles_ui_select button in profiles set ui
...
It was using IfcMaterialProfile id instead of IfcProfileDef id, so profile was never selected
Example - https://imgur.com/a/Sf1ghPO
2025-03-06 18:43:54 +05:00
Andrej730
b5260d3005
copy_class to prevent duplicating profiles #6261
2025-03-06 18:43:54 +05:00
Andrej730
79940641b2
typing
2025-03-06 18:43:54 +05:00
Andrej730
7458040949
Fix ifcpatch unit conversion for lists of ifc entities #6280
bonsai-0.8.2-alpha2503061115
2025-03-06 16:14:02 +05:00
Andrej730
14eb543662
TestConvertFileLengthUnits - add attributes conversion tests
2025-03-06 16:14:02 +05:00
Andrej730
e786687882
ConvertFileLengthUnits - unify tests, add ifc4x3 tests
2025-03-06 16:14:02 +05:00
Andrej730
37e131193b
edit_georeferencing - add note on MapUnit data type
2025-03-06 16:14:02 +05:00
Andrej730
dfb00f27bb
Fix georeferencing docs url
2025-03-06 16:14:02 +05:00
Dion Moult
53dea65d8b
See #1227 . Implement joins for sloped walls.
bonsai-0.8.2-alpha2503060839
2025-03-06 19:38:46 +11:00
Andrej730
2c16839de7
Fix parametric stairs/railings/roofs not updating ifc link after representation update #6264
...
Related to 3107fd9
bonsai-0.8.2-alpha2503051354
2025-03-05 18:53:57 +05:00
Andrej730
c4f2d556f1
Uncomment use of get_edges_representation_item_ids
...
as build was updated awhile ago
2025-03-05 18:53:57 +05:00
Andrej730
74900193ee
merge_identical_objects to use quicker version of get_info
2025-03-05 18:53:57 +05:00
Andrej730
2987d38a31
append_asset - check unique styles based on their name #6269
2025-03-05 18:53:56 +05:00
Andrej730
08b50bb9ea
Library UI - recognize already appended styles
...
Example - https://i.imgur.com/XCXHY4C.png
Noticed investigating #6269
2025-03-05 18:53:56 +05:00
Andrej730
1257eb0872
append_asset - allow using same name for different ifcpresentationstyle types
...
Since they are not used interchangeably typically.
2025-03-05 18:53:56 +05:00
Andrej730
1c8ef176b1
typing
2025-03-05 18:53:56 +05:00
Andrej730
e1e51cbf26
black .
2025-03-05 18:53:56 +05:00
Andrej730
4c97cc8a41
import_ifc - not to break completely on facing breaking mesh #6270
...
create_mesh returns None only in case if it meets some exception and it prints logs in that case, but atleast some breaking mesh won't be in the way of users trying to open some model
2025-03-05 18:53:09 +05:00
Dion Moult
7c6e124fe9
See #1227 . Basic implementation of sloped walls (joins not yet considered)
bonsai-0.8.2-alpha2503051111
2025-03-05 22:10:33 +11:00
Andrej730
3fc312752b
Show an error for unsupport curve types #6259
bonsai-0.8.2-alpha2503041311
2025-03-04 18:10:42 +05:00
Andrej730
d0cb5456b3
Fix importing IfcPolylines always assuming they're closed
...
Resolved issue during import in #6259 but doesn't completely resolves the issue.
2025-03-04 18:10:42 +05:00
Andrej730
86072079de
draw_image_for_ifc_profile - optimizations using numpy
2025-03-04 18:10:42 +05:00
Andrej730
9440096106
Fix #6260 after 2f6ae17
2025-03-04 18:10:42 +05:00
Andrej730
649a913bbc
add_profile_representation - add test
2025-03-04 18:10:42 +05:00