Andrej
3bdce4fbc3
Make zip strict argument optional to support Python 3.9
2025-05-30 18:13:11 +05:00
Andrej
ad7473ff1f
Make dataclasses args optional to support Python 3.9 #6725
2025-05-30 18:13:10 +05:00
Andrej
c23e973575
Fix moved cost.remove_cost_item_value ( b272210)
2025-05-29 19:14:42 +05:00
Andrej
a5801e439f
edit_attributes - fix Python 3.9 support ( 39fd9ce)
2025-05-29 19:14:42 +05:00
Andrej
0663c5130a
typing
2025-05-29 19:14:42 +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
Dion Moult
810e8df6fe
Fix #6640 . Fix invalid association of annotations to grids.
...
There was already some half written code with this intent it seems, so I
just finished it up.
2025-05-26 13:49:06 +10:00
Hannes
1f23e4ba18
Fixed typo in __init__.py
...
See https://github.com/IfcOpenShell/IfcOpenShell/issues/6625
2025-05-13 13:18:24 +02:00
Andrej730
f8799305e1
black .
2025-05-13 13:26:54 +05:00
Richard Brice
686e9c946b
Adds object placement to stationing referent.
2025-05-12 16:14:53 -07:00
Dion Moult
6bf9b8b0c9
Fix bug where appending assets could accidentally create duplicate contexts
2025-05-09 15:24:17 +10:00
Andrej730
41eadf735e
add_representation - more readable error on using panoramic camera
2025-05-07 18:54:56 +05:00
Andrej730
c7a29d5604
Fix invalid IfcGrid cartesian points ( 774a770)
...
They were saved as 4d coordinates, not 2d.
2025-04-30 19:36:22 +05:00
Andrej730
241f7679b0
create_axis_curve - fix typo
2025-04-30 14:24:04 +05:00
Andrej730
ecf461e1e0
typing
2025-04-29 19:26:17 +05:00
Andrej730
10f84537de
typing
2025-04-28 19:14:19 +05:00
Andrej730
476604202a
typing
2025-04-21 19:00:24 +05:00
Andrej730
b59e5b076d
get_pset, get_psets - don't fail on ifc2x3 profile psets and partially handle ifc2x3 material psets #6538
2025-04-14 18:59:47 +05:00
Andrej730
53cd5f834e
add_mesh_representation - reuse shape builder + numpy input support
2025-04-14 16:17:59 +05:00
Andrej730
6dc6fddd0e
add_mesh_representation - expand documentation and typing #6541
2025-04-14 16:17:59 +05:00
Andrej730
53da00a5b7
append_asset - fix possible errors with assume_asset_uniqueness_by_name=False after f43e33b
...
If `assume_asset_uniqueness_by_name` is `False`, then we don't really need `SafeRemovalContext`.
2025-04-11 19:55:25 +05:00
Andrej730
cf1f74e260
typing
2025-04-09 18:26:53 +05:00
Dion Moult
93e7d92076
Fix bug where removing a context (used by representations) left invalid representations
2025-04-01 17:28:22 +11:00
Andrej730
e3228513c0
typing
2025-03-31 19:10:20 +05:00
Andrej730
547506d626
black .
2025-03-31 19:10:20 +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
2025-03-29 15:30:04 -07: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
64b8842055
typing
2025-03-27 19:29:45 +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
d35a2dcf5b
typing
2025-03-26 18:49:21 +05:00
Andrej730
2f34f997dd
Fix api.alignment missing __all__
2025-03-24 17:36:27 +05:00
Andrej730
7a55e837f7
typing
2025-03-24 17:36:26 +05:00
Andrej730
e075c32a5a
typing
2025-03-21 18:39:38 +05:00
Dion Moult
963ba5fc30
See #6404 . See #1227 . Create axis context if it does not exist for walls.
2025-03-21 16:45:29 +11:00
Dion Moult
8e1e0aec79
Fix #6404 . See #1227 . Fix IFC2X3 wall creation with new wall engine.
2025-03-21 16:30:56 +11:00
Richard Brice
09a43f1339
get distance along alignment from station
...
New alignment api function to get the horizontal distance along an alignment from a station value
2025-03-17 09:16:35 -07:00
Richard Brice
04e07db0a3
Import alignment from csv ( #6234 )
...
* Start of the official alignment API
* Import alignment into bonsai model using CSV file
2025-03-14 07:31:50 -07:00
Andrej730
0e8810c1f5
typing
2025-03-14 18:19:02 +05:00
falken10
6517cafd98
Update add_prop_template.py so the properties are sorted
...
This allows to keep the pset properties sorted for easy access
2025-03-13 10:35:40 +11:00
Andrej730
a9f7d4ab3b
get_applicable_types in ifc2x3 to prioritize IfcBuildingElementProxyType
...
for occurrence classes without special type.
E.g. previously:
you select IfcSlab and change it to IfcRoof - since there is not IfcRoofType in IFC2X3 it would figure the matching product type is IfcBeamType and change this slab's type element to IfcBeamType. IfcBuildingElementProxyType seems more generic and fitting.
2025-03-11 18:37:24 +05:00
Andrej730
977d814d39
bim.reassign_class - fix issue in ifc2x3 when selected product class would be ignored
...
E.g. you select IfcSlab and change it to IfcRoof - since there is not IfcRoofType in IFC2X3 it would figure the matching product type is IfcBeamType (which is confusing too but that's another subject) and change this slab's type object to IfcBeamType which consequently change IfcSlab to IfcBeam instead of IfcRoof that was selected originally.
Noticed investigating #5918
2025-03-11 18:37:23 +05:00
Andrej730
ed0b1c5009
typing
2025-03-11 18:37:22 +05:00
Andrej730
c4b57eb903
typing
2025-03-10 18:52:39 +05:00
Dion Moult
41188e26e1
See #1227 . Don't touch manual booleans when regenerating wall body.
2025-03-10 22:54:42 +11:00
Dion Moult
4109b19c3a
See #1227 . Slightly more defensive to make sure ATPATH is between START and END
2025-03-09 18:31:49 +11:00
Dion Moult
e78127d54f
See #1227 . Don't move any child at all when regenerating wall body.
2025-03-09 18:00:13 +11:00
Dion Moult
e5027e0be8
See #1227 . Implement updating of object position.
2025-03-09 08:52:05 +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
Andrej730
590288496e
typing
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