Andrej730
e3228513c0
typing
2025-03-31 19:10:20 +05:00
Andrej730
547506d626
black .
2025-03-31 19:10:20 +05:00
Andrej730
3fe29fa842
Prevent user from trying to assign material style if not style is selected
...
Possibly explains #6462
2025-03-31 14:07:41 +05:00
Andrej730
e18e2caea8
Bonsai - exclude selected non-ifcobjects from type assignment/unsassignment #6454
bonsai-0.8.2-alpha2503310912
2025-03-31 14:07:41 +05:00
Andrej730
1cac12dc53
Use fallback elevation value if default container is missing #6470
...
I guess it's always theoretically possible that user end up without a default container.
bonsai-0.8.2-alpha2503310850
2025-03-31 13:49:18 +05:00
Andrej730
8d530eba68
Fallback to the aggregate if default container is removed #6470
2025-03-31 13:49:18 +05:00
Andrej730
4593e5aea6
Fix ExportHelper not optional filename_ext #6463 ( 4594f59)
bonsai-0.8.2-alpha2503310825
bonsai-0.8.2-alpha2503310752
2025-03-31 12:51:37 +05:00
Andrej730
cba6161043
Fix #6467 ( d35a2dc)
bonsai-0.8.2-alpha2503310711
2025-03-31 12:05:15 +05:00
Richard Brice
42c49af4e3
Implements business to geometry mapping for alignment cant.
...
Also fixes problems that were created by this work in other files
bonsai-0.8.2-alpha2503292239
2025-03-29 15:30:04 -07:00
Andrej730
7bdbfee041
Fix bim.export_cost_schedules #6463 ( 4594f59)
bonsai-0.8.2-alpha2503291841
2025-03-29 23:36:37 +05:00
Thomas Krijnen
f37bda2d7c
Add hybrid-cgal-simple-opencascade to CLI help
2025-03-28 20:43:17 +01:00
Andrej730
0bf065c4bd
Fix issue editing item layer when it had a layer previously ( 13a182c)
bonsai-0.8.2-alpha2503281300
2025-03-28 17:59:08 +05:00
Andrej730
c58b84ddb5
append_asset - fix duplicated applications/organizations/pao
...
Noticed when starting new project with demo library it had 29 duplicated IfcApplications...
2025-03-28 17:59:07 +05:00
Andrej730
81b5fc30c7
template_file - add a note
2025-03-28 17:59:07 +05:00
Andrej730
fd423f21e2
ifcopenshell.validate - validate IfcApplications
2025-03-28 17:59:07 +05:00
Andrej730
4afed8f2f3
typing
2025-03-28 17:59:07 +05:00
Thomas Krijnen
9254601924
Underscores in geom setting to argparse namespace
bonsai-0.8.2-alpha2503281111
2025-03-28 12:11:27 +01:00
Thomas Krijnen
e9460a2c9a
Actually Eigen::Quaterniond arg order is *w* xyz
2025-03-28 12:10:03 +01:00
Andrej730
f08f9ad310
export_mesh_to_tessellation to consider empty material slots #6453
bonsai-0.8.2-alpha2503280701
2025-03-28 12:01:09 +05:00
Andrej730
69ddf52ff0
Add ifc2x3/ifc4/ifc4x3 demo templates as symlinks to repo
...
Example - https://i.imgur.com/d4udENs.png
bonsai-0.8.2-alpha2503280530
2025-03-28 10:29:31 +05:00
Andrej730
2fd02e281d
Add IFC2X3, IFC4X3 demo libraries
bonsai-0.8.2-alpha2503271440
bonsai-0.8.2-alpha2503271432
bonsai-0.8.2-alpha2503271431
2025-03-27 19:31:04 +05:00
Andrej730
fdb283b7af
generate_demo_library - sync guid on regeneration
2025-03-27 19:31:04 +05:00
Andrej730
013d7f6659
generate_demo_library - typing and small refactor
2025-03-27 19:31:03 +05:00
Andrej730
5b33c6018a
spatial decomposition ui - use poll_message_set instead of .enabled
...
To give user more descriptive message about what's wrong.
2025-03-27 19:31:03 +05:00
Andrej730
50324a566f
black .
2025-03-27 19:31:03 +05:00
Andrej730
64b8842055
typing
2025-03-27 19:29:45 +05:00
Massimo Fabbro
05be0f69bd
Fix #6305
...
Fix wrong calculation with blender engine for IfcFooting
bonsai-0.8.2-alpha2503262131
2025-03-26 22:30:56 +01:00
Andrej730
3f823573cf
Fix broken scroll bar in some UI lists #6439
...
Just found that all scroll bars for UIList kept in sync using `list_id` - it's that second argument for `UILayout.template_list` that I forgot exist, since I've never seen set it to anything besides the empty string.
So in #6439 we were reusing same UIList for multiple collection props and since one of the props was empty, it was constantly resetting scroll bar position.
Was about to report it as a bug to Blender but stumbled upon similar issue https://projects.blender.org/blender/blender/issues/124364
So the solution is make sure each UIList has unique `list_id`.
Fyi @Moult @Gorgious56
bonsai-0.8.2-alpha2503261350
2025-03-26 18:49:22 +05:00
Andrej730
a3c5c0ce43
Fix typo in 64f51d7
2025-03-26 18:49:21 +05:00
Andrej730
2e61532919
bim.unassign_material - add description
2025-03-26 18:49:21 +05:00
Andrej730
c3107e37c0
material.remove_material_set to remove usages
...
To prevent them from being invalidated.
Noticed this as a possible issue investigating https://community.osarch.org/discussion/2820/error-message-in-bonsai-bim
2025-03-26 18:49:21 +05:00
Andrej730
c85f9f02ba
Check material override explicitly, not just by name
...
It was inconsistent when it was comparing usage with unnamed layer set and comparing usage with named layer set.
2025-03-26 18:49:21 +05:00
Andrej730
f888a32fa4
reuse get_material_name
2025-03-26 18:49:21 +05:00
Andrej730
d35a2dcf5b
typing
2025-03-26 18:49:21 +05:00
Arjo Nagelhout
244320dd49
add virtual destructor to AbstractKernel base class
...
this fixes a SIGTRAP when destructing the geometry iterator, as that calls delete kernel_.
2025-03-25 20:11:39 +01:00
Andrej730
0d7439c7a5
ifcopenshell.validate to catch invalid entities used in entities attributes #6409
...
Example
```
For instance:
# 1 =IFCCARTESIANPOINT((5.,5.,nan.));
Entity with name 'nan.' not found in schema 'IFC4'
```
2025-03-25 18:15:37 +05:00
Thomas Krijnen
bd92821b2e
Add file offset to instance reference errors so that they are picked up by ifcopenshell.validate
2025-03-25 11:44:46 +01:00
Thomas Krijnen
3744b81ccd
Only accept finite floats #6409
2025-03-25 10:15:24 +01:00
Andrej730
9311f50206
Fix for 4594f596c2
...
Traceback:
```
Error: Python: Traceback (most recent call last):
File "\bonsai\bim\module\project\operator.py", line 127, in execute
self._execute(context)
File "\bonsai\bim\module\project\operator.py", line 143, in _execute
core.create_project(
File "\bonsai\core\project.py", line 108, in create_project
project.append_all_types_from_template(template)
File "\bonsai\tool\project.py", line 55, in append_all_types_from_template
bpy.ops.bim.select_library_file(filepath=filepath.__str__())
File "\Blender\4.4\scripts\modules\bpy\ops.py", line 109, in __call__
ret = _op_call(self.idname_py(), kw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Converting py args to operator properties:: keyword "filepath" unrecognized
```
bonsai-0.8.2-alpha2503250701
2025-03-25 12:00:50 +05:00
Thomas Krijnen
eec8c88e6f
Unique ptrs #6417
2025-03-24 14:09:00 +01:00
shmoodyyy
dd53f9b494
style: keep tab indenting consistency
2025-03-24 13:59:58 +01:00
shmoodyyy
c6e3ac4155
fix: memory leak from missing deletes of raw heap allocations; big issue within create_shape() python lib
2025-03-24 13:59:58 +01:00
Andrej730
4594f596c2
Reuse ImportHelper/ExportHelper everywhere possible for consistency
bonsai-0.8.2-alpha2503241250
bonsai-0.8.2-alpha2503241237
ifcsverchok-0.8.2.250324
bonsai-0.8.2-alpha2503241245
2025-03-24 17:36:27 +05:00
Andrej730
4f091af935
bim.export_ifccsv - clarify description and title
2025-03-24 17:36:27 +05:00
Andrej730
2f34f997dd
Fix api.alignment missing __all__
2025-03-24 17:36:27 +05:00
Andrej730
1600e00295
Fix clash smart groups selection ( 6660ee3)
...
It was using prop `guid` which doesn't exist , so `by_guid(global_id.guid)` would always fail with some exception.
2025-03-24 17:36:26 +05:00
Andrej730
7a55e837f7
typing
2025-03-24 17:36:26 +05:00
Andrej730
595ee3fa47
Provide descriptions to all operators that use fileselect_add #6420
...
I guess all it takes a persistent Blender crash to fill up operators descriptions 😅
bonsai-0.8.2-alpha2503240637
2025-03-24 11:36:40 +05:00
Andrej730
c84f8e55a6
Fix typo
2025-03-24 11:36:40 +05:00
Andrej730
b63d9090a1
black .
2025-03-24 11:36:40 +05:00