Andrej730
21f5363c74
Bonsai - cache get_user and get_application for a speed-up
2025-06-17 18:44:32 +05:00
Andrej730
71d469a271
Bonsai - use main version part to avoid creating too many IfcApplications
2025-06-17 18:41:20 +05:00
Andrej730
96bdda305e
Bonsai - purge unused IfcApplications and IfcOrganizations
2025-06-17 18:41:20 +05:00
Andrej730
1063238479
Bonsai - merge identical IfcOrganizations, IfcApplications
...
Added an utility to merge organizations and application that have exactly the same data. Noticed working with different files that sometimes they have these data duplicated - I guess reasons vary (revit exporter, our bug - c58b84d ), but it's nice to be able to clean up redundant data.
Though still need to add some UI to change IfcApplications, so user could also get rid of them in case if they have small differences.
Feature location - https://files.catbox.moe/pwymx1.png
@theoryshaw in file from #6784 there were 2481 identical organizations and 1234 identical applications 😅
2025-06-17 18:41:20 +05:00
Andrej730
d1337cff02
Refresh applications UI on changes ( bd1871bd4)
2025-06-17 18:41:19 +05:00
Andrej730
f26f2780e9
owner.ui - check props explicitly instead of relying on ifc data update
2025-06-17 18:41:19 +05:00
Andrej730
9282ccabb3
typing
2025-06-17 18:41:18 +05:00
Andrej730
bd1871bd44
Basic IfcApplications UI
...
Just so you can view IfcApplications in the project from UI
Example - https://files.catbox.moe/15a72n.png
2025-06-16 19:55:25 +05:00
Andrej730
a12bb343ca
Fix RUF015 (next() instead of list comprehensions[0])
...
https://docs.astral.sh/ruff/rules/-iterable-allocation-for-first-element/
2025-06-16 19:55:25 +05:00
Andrej730
176c5cc0fb
typing
2025-06-13 19:33:29 +05:00
Andrej
2bb373c1b2
bim.remove_representation - show operator time if it took more than 10 sec #6784
2025-06-10 18:54:37 +05:00
Andrej
c9b41a1499
Warning for joining non-mesh-like representation items #6793
2025-06-10 18:54:36 +05:00
Andrej
b1ae213349
Fix bim.unassign_structural_load_case (redundant argument)
2025-06-10 18:54:36 +05:00
Andrej
1608677d40
ifcopenshell.api.run to use explicit kwargs instead of unpacking
2025-06-10 18:54:35 +05:00
Andrej
24f693e0bb
ExpandedGroups - encapsulate in BIMGroupProperties
2025-06-09 18:03:25 +05:00
Andrej
32088fb95a
Bonsai - fix cjio dependency ( 3d77fc7)
2025-06-09 18:03:22 +05:00
Andrej
8b4683aef1
replace api.run with static methods
2025-06-09 18:03:19 +05:00
Andrej
02d359d0e6
Fix Ruff UP035 (also deprecated annotation symbols)
2025-06-09 18:03:19 +05:00
Andrej
7d4176d105
Fix Ruff UP006 (deprecated annotation symbols)
2025-06-09 18:03:18 +05:00
Andrej
6eb45917fe
fix typo
2025-06-09 18:03:15 +05:00
Andrej
3f4656600e
typing
2025-06-09 18:03:15 +05:00
Massimo Fabbro
8b9927b77b
See #6570 . Better variable name
2025-06-08 10:22:12 +02:00
Andrej
09f6991565
cost items ui - update current index on item deletion
...
To make it less awkward to remove multiple items starting from the last.
Before - https://files.catbox.moe/wce56c.mp4
After - https://files.catbox.moe/wv1jhs.mp4
2025-06-06 19:06:47 +05:00
Andrej
14e8fad841
bim.contract / expand cost items - remove unused prop
2025-06-06 19:06:47 +05:00
Andrej
c76785e02c
tool.cost - refactor expand/contract rates methods
...
So they will be more similar
2025-06-06 19:06:46 +05:00
Andrej
7808dd535d
Fix contracted cost item removal logic
...
It was removing checking for cost item index, though container is storing cost item ids.
2025-06-06 19:06:46 +05:00
Andrej
bf4a3f074f
typing
2025-06-06 19:06:46 +05:00
Andrej
a374a7e3ff
bonsai pyproject.toml - document dev dependencies
2025-06-06 13:11:59 +05:00
Andrej
b6267e4ad1
Fix issue with occurrences when reassigning IfcTypeProduct class #6781 ( 977d814)
2025-06-06 13:11:59 +05:00
Andrej
6de16bf658
bim.reassign_class - add simple test to cover cases like #6781
2025-06-06 13:11:58 +05:00
Andrej
781df9e3d8
Fix incorrect glob separator ( 8c9ccfd)
2025-06-06 11:57:46 +05:00
Andrej
8c9ccfdaae
Fix #6760
2025-06-06 11:22:05 +05:00
Andrej
d0741cd495
Fix error using X hotkey on empty collection #6696
2025-06-05 19:05:27 +05:00
Andrej
0d39f8df28
Safer BlendData access
...
To avoid issues like #6771 when we by accident find an ID data-block from linked .blend file.
2025-06-05 19:05:27 +05:00
Andrej
87265d052b
typing
2025-06-05 19:05:27 +05:00
Andrej
2da183bfa6
bpy._typing -> bpy.stub_internal
...
https://github.com/nutti/fake-bpy-module/issues/362
2025-06-04 19:04:31 +05:00
Andrej
a614fac71a
typing
2025-06-04 19:04:31 +05:00
Andrej
5a211c67eb
black .
2025-06-04 19:04:30 +05:00
Dion Moult
b9b5aefd5e
Fix bSDD to properly use names and codes
2025-06-04 12:11:34 +10:00
Ryan Schultz
e1c1b828ad
Have save/cancel filter on top as well--helps with long filters.
2025-06-03 07:29:19 -05:00
Massimo Fabbro
390349aa7a
See #6570 . Better cost item rate identification
...
Now show cost item rate shows the Identification and not the ID for better understanding
2025-05-31 15:58:42 +02:00
Bruno Perdigão
a531bd8c1f
Fix. Uninstall Bonsai Decorators if they are not selected at start
2025-05-30 16:20:42 -03:00
Andrej
cc60794293
edit style for rep item - fallback in case user has no styles #6764
...
Or if style was removed in the process of editing. And it seems now UI will never appear broken that way.
Previously - https://files.catbox.moe/exhkln.png
Currently - https://files.catbox.moe/r36be8.png
2025-05-30 17:01:11 +05:00
Andrej
4e65c33bae
Bonsai make - use ifcjson master instead of fork
...
https://github.com/IFCJSON-Team/IFC2JSON_python/pull/3 got merged
2025-05-29 19:14:42 +05:00
Andrej
c3652a56ee
dev_environment.py #6754
2025-05-29 19:14:42 +05:00
Andrej
0663c5130a
typing
2025-05-29 19:14:42 +05:00
Andrej
ea7ced738a
Introduce Ruff github CI with some basic linter rules
...
And also to help catching syntax errors on older Python versions.
2025-05-28 18:24:13 +05:00
Andrej
7cde9629f8
Fix Ruff UP034 (extraneous-parentheses)
...
https://docs.astral.sh/ruff/rules/extraneous-parentheses/
2025-05-28 18:24:13 +05:00
Andrej
feebc701fa
Fix Ruff UP008 (super-call-with-parameters)
...
https://docs.astral.sh/ruff/rules/super-call-with-parameters/
2025-05-28 18:24:13 +05:00
Andrej
5ab14f1e4e
Fix Ruff UP022 (replace-stdout-stderr)
...
https://docs.astral.sh/ruff/rules/replace-stdout-stderr/
2025-05-28 18:24:12 +05:00