Andrej730
582476cabe
Fix LoadGroupDecorationData data item name for consistency
2025-01-23 18:14:16 +05:00
Andrej730
8f9417a59a
Fix UI errors in Structural Analysis panel when project has no IfcStructuralAnalysisModel
2025-01-23 18:14:16 +05:00
Andrej730
e18475e1ef
Use cancel icon for disabling operators for consistency
2025-01-23 18:14:16 +05:00
Andrej730
d38608ea04
Fix UI errors with not unset active library id after disabling editing
...
It lead to UI errors when library was removed and Bonsai was still trying to get it from active_library_id.
2025-01-23 18:14:16 +05:00
Andrej730
42d01ac222
Fix append_asset conversion issue after 3ffc0bc #6012
...
Custom file.add wasn't considering IfcLengthMeasure attributes...
2025-01-23 18:14:16 +05:00
Andrej730
5bc91ec4e4
append_asset - fix bug identifying None profiles as equivalent
2025-01-23 18:14:16 +05:00
Andrej730
ad99990f17
typing
2025-01-23 18:14:15 +05:00
Andrej730
8dce7b9f68
black .
2025-01-23 18:14:15 +05:00
Bruno Perdigão
d8342134a0
Wall polyline tool - refactor offset functionality
2025-01-23 09:31:28 -03:00
Bruno Perdigão
8b678309fd
Refactor polyline tool instructions.
...
Follows 8fc0d7a808
2025-01-23 09:31:28 -03:00
Bruno Perdigão
88dc9d7633
Enable "shift + mouse wheel" to function before locking angle.
2025-01-23 09:31:28 -03:00
Bruno Perdigão
09dbae7c56
Replace hard-coded unit scale with ifcopenshell.util.unit.calculate_unit_scale
2025-01-23 09:31:28 -03:00
Dion Moult
c6b64baccb
Fix #6028 . Deprecate schema dir as it's basically just data.
2025-01-23 23:10:40 +11:00
Dion Moult
15bc968179
Remove dead code from schema.py
...
Slowly getting to a point where we can completely delete this legacy
file.
2025-01-23 22:59:41 +11:00
Dion Moult
b7e4904905
Change gitkeep into gitignore and move ignore up to root gitignore
...
I kept on getting confused on why things were being ignored in the data
dir and didn't know where to look.
2025-01-23 22:48:25 +11:00
Kipre
039b7ef4ca
Fix issue with eliminate_touching_operands
2025-01-23 11:23:34 +01:00
Dion Moult
e2f10a5784
Minor UI improvement to keep the right alignment of total elements in the material manager
2025-01-23 20:54:43 +11:00
Dion Moult
adff44febd
Snaps are on by default
...
Users can still turn them off. We are a precision modeling app after all
:)
2025-01-23 20:44:20 +11:00
Dion Moult
35d2791657
Fix warning when aggregate decorator cannot be drawn on the screen.
2025-01-23 20:29:21 +11:00
Scott Lecher
a7a9fcc73a
adds calculations for projected_length of gradient curve segments ( #6006 )
2025-01-22 15:37:29 -08:00
Andrej730
5c3045b4db
Temporarily disable 3ffc0bc due to a bug with units conversion
2025-01-22 20:45:06 +05:00
Andrej730
b812d21282
Fix non-existent name argument in add_si_unit docs
2025-01-22 19:07:44 +05:00
Andrej730
083aa4da85
Fix error after 5e93097
2025-01-22 19:07:44 +05:00
Andrej730
605a29786c
Fix tests after 7b62b03
...
Since calculate_unit_scale now requires a project.
def calculate_unit_scale(ifc_file: ifcopenshell.file, unit_type: str = "LENGTHUNIT") -> float:
"""Returns a unit scale factor to convert to and from IFC project units and SI units.
Example:
.. code:: python
ifc_project_length * unit_scale = si_meters
si_meters / unit_scale = ifc_project_length
:param ifc_file: The IFC file.
:param unit_type: The type of SI unit, defaults to "LENGTHUNIT"
:returns: The scale factor
"""
> if not (units := ifc_file.by_type("IfcProject")[0].UnitsInContext):
E IndexError: list index out of range
2025-01-22 18:24:52 +05:00
Dion Moult
3dfc7097b2
Fix #6013 . Fix bug where Blender object names weren't updated when using copy attributes.
2025-01-22 22:54:58 +11:00
Andrej730
4adca79301
Fix edit_attributes triggering name_callback and adding indices to names #6013
...
It was triggering name_callback, adding indices to the names and writing the name with index to ifc.
Also now check previous and new object name explicitly instead of relying on `obj.name` as it may have Blender indices (Blender doesn't support multiple objects sharing the same name).
2025-01-22 16:35:23 +05:00
Andrej730
a8672bc5cb
root.set_object_name to reuse loader.get_name
2025-01-22 16:35:23 +05:00
Andrej730
882bacf91a
bim.copy_attribute_to_selection - add info message
...
It's important to have somewhere information on how many elements were actually affected since some of the selected objects may not support the used attribute.
Example - https://i.imgur.com/UrLNWcF.png
2025-01-22 16:35:23 +05:00
Andrej730
23a6721f8e
Fix bim.copy_attribute_to_selection missing undo
2025-01-22 16:35:23 +05:00
Andrej730
db93ca1067
bim.inspect_from_object - support representation items
2025-01-22 16:35:22 +05:00
Andrej730
f02fd69934
Bonsai - deprecate bpy.app.version checks
...
As we support only Blender 4.2+
2025-01-22 16:35:22 +05:00
Andrej730
74a9669fa8
Fix error tabbing into IfcRevolvedAreaSolid with a boolean + add resolve_base_items
...
resolve_items couldn't find IfcRevolvedAreaSolid inside a boolean result
2025-01-22 16:35:22 +05:00
Andrej730
6ce4b5d0e8
Fix error selecting boolean (RepresentationItemObject missing ifc_definition_id)
2025-01-22 16:35:22 +05:00
Andrej730
391091ad12
typing
2025-01-22 16:34:58 +05:00
Andrej730
a774a75509
black .
2025-01-22 16:00:11 +05:00
Andrej730
06f25b9846
bim.select_boolean - fix operator name
2025-01-22 11:50:49 +05:00
Andrej730
b752f798bd
bim.enable_editing_booleans - add poll message
2025-01-22 11:50:48 +05:00
Andrej730
5ca615114f
Also support changing profile for other sweptsolids
...
E.g. changing it for IfcRevolvedAreaSolid - https://imgur.com/a/jHOC8rt
2025-01-22 11:50:48 +05:00
Bruno Perdigão
c72f17068c
Add support for direction sense and offset in slabs with x_angle
2025-01-21 10:49:29 -03:00
Bruno Perdigão
372654267c
Fix issues with add/remove layer handler when using "Quick Create Type".
2025-01-21 10:49:29 -03:00
Bruno Perdigão
5cf4740f8e
Add direction sense and offset support for slabs
2025-01-21 10:49:29 -03:00
Bruno Perdigão
3740b86678
Add handlers to update layer when adding and removing material layer
2025-01-21 10:49:29 -03:00
Bruno Perdigão
325d6138d3
Add more options to Bonsai snap target. Follow 5649708ca4
2025-01-21 10:10:57 -03:00
Gorgious56
fc58b1769c
Improve logic for https://github.com/IfcOpenShell/IfcOpenShell/commit/bced62bd5c6615ec1ff8c3a6af3334e469e5f9fa
2025-01-21 13:56:32 +01:00
Dion Moult
82fbec68d1
Fix #5973 . You can now select the item from the item panel.
2025-01-21 23:52:33 +11:00
Andrej730
bb1ec569bc
Option to name existing used unnamed profiles
...
Example - https://imgur.com/a/IhMbs6K
2025-01-21 17:31:21 +05:00
Andrej730
5a766e79bd
Show error message trying to edit not supported type of profile
...
E.g. previously if you would tab into editing IfcExtrudedAreaSolid that was using not supported profile type (e.g. IFCCSHAPEPROFILEDEF) it would import it as empty geometry and tabbing out then would save it corrupting the original profile. Now there is an error message that it's not yet supported - https://i.imgur.com/NzksYVP.png
2025-01-21 17:31:21 +05:00
Andrej730
ff337bc849
Change currently edited item's profile
...
Example - https://imgur.com/a/2yiVIW5
2025-01-21 17:31:20 +05:00
Andrej730
992424c748
Update item decorator when moving item in viewport
...
Before this fix - https://imgur.com/a/mhpBvCG
2025-01-21 17:31:20 +05:00
Andrej730
0268f140ad
typing
2025-01-21 17:31:20 +05:00