Andrej730
68a602573b
ifcopenshell.geom.iterator - more descriptive error in __init__ #6865
2025-07-02 18:14:34 +05:00
Andrej730
94d2d32d18
typing
2025-07-02 18:14:34 +05:00
Thomas Krijnen
bb329affb8
settings: DeferProcessingFirstElement, MaxOffset, MaxOffsetDeviation, ApplyOffset; taxonomy: centroid funcs; iterator get_tasks + items() funcs; geom.map_shape()
2025-07-01 21:10:24 +02:00
Bruno Perdigão
6c4e4e5f91
Partial solution for #6775 .
...
The issue happens when a wall has a "ATPATH" connection and has a
negative direction sense. It mixes the profile points in an incorrect
order. This commit seems to fix it, but maybe there is a better solution.
2025-06-30 19:50:41 -03:00
Andrej730
8cfd6b1754
Unify doc-strings (remove type/rtype)
...
As this information is already provided in type hints and we don't need to maintain it in two places.
2025-06-30 18:55:14 +05:00
Andrej730
fc10915d2b
ifcopenshell.validate - remove simple_spf dependency ( 689289b)
...
Moved it to `TYPE_CHECKING` since it's currently used just for typing.
Was breaking validation in Bonsai since it doesn't provide all submodules with IfcOpenShell https://github.com/IfcOpenShell/IfcOpenShell/issues/6723#issuecomment-3016223786
Also added a simple test so github workflow would catch a simple error like this.
2025-06-30 18:08:34 +05:00
Geert Hesselink
260bc80a4b
update simple_spf submodule
2025-06-30 10:11:40 +02:00
Andrej730
bdcebd0f98
document.add_information - error handling in case project is not found
2025-06-27 18:51:15 +05:00
Andrej730
b3a708c06c
typing
2025-06-27 18:51:15 +05:00
Piotr Smolira
fef6ef76ed
Update code_examples.rst
...
Added example to iterate through entire project.
2025-06-27 11:37:47 +02:00
Piotr Smolira
e39d62b35a
Update code_examples.rst
...
Added example about iterating entire model.
2025-06-27 11:37:47 +02:00
falken10vdl
2698ba69d5
Display TargetScale in Contexts UI / edit target scale denominator ( #6816 )
2025-06-27 05:48:14 +00:00
Andrej730
b4c4efcf5b
unit.unassign_unit - smal doc-string fix
2025-06-24 19:08:43 +05:00
Andrej730
4f77c41bd5
calculate_unit_scale - small optimization
2025-06-24 19:08:42 +05:00
Andrej730
fcaeb920ec
typing
2025-06-24 19:08:40 +05:00
Andrej730
a76af3c2ba
validate IfcApplication.UR2 - check that both version and app name are not None ( 263d238f9)
...
Otherwise it will be caught by regular validation checks
2025-06-23 19:06:15 +05:00
Ryan Schultz
f3c86d7fcc
added a few to ifc_classes_suggestions.json
2025-06-21 08:08:50 -05:00
Andrej730
cd1bda5311
regenerate_wall_representation - remove debug prints
2025-06-20 18:48:38 +05:00
Andrej730
263d238f9c
ifcopenshell.validate - fix IfcApplication.UR2 validation
...
Previously we were checking for just ApplicationFullName, without considering Version.
https://github.com/buildingSMART/IFC4.3.x-development/issues/966
2025-06-20 18:48:37 +05:00
Andrej730
c6fd02869b
ifcopenshell.validate - check json_logger more explicitly
2025-06-20 18:48:37 +05:00
Andrej730
b4d41790a5
ifcopenshell.validate - fix mixed up rule names (IfcApplication.UR)
2025-06-20 18:48:37 +05:00
Andrej730
90ab846a18
typing
2025-06-20 18:48:34 +05:00
Andrej730
934c9e1485
test_edit_organisation - add ifc4x3 tests
2025-06-18 19:12:12 +05:00
Andrej730
bbebdd56ca
owner.edit_application
2025-06-18 19:12:12 +05:00
Andrej730
47da4ef3ae
Fix overlook in 67b539aba
2025-06-18 19:12:11 +05:00
Andrej730
08a8afba5b
ifcopenshell-python - fix 3.9 support (replace match statements)
2025-06-18 19:12:10 +05:00
Andrej730
c68b0c7280
typing
2025-06-18 19:12:10 +05:00
Andrej730
2e3c733c0d
IfcParseWrapper - exclude instances_by_reference
...
As it does exactly the same as get_inverse()
2025-06-17 18:41:19 +05:00
Andrej730
ff09cd0a56
IfcParseWrapper - instance_by_guid -> by_guid
...
It seems they have exactly the same signatures and it makes sense to just rename instance_by_guid to by_guid, instead of implementing it separately.
2025-06-17 18:41:19 +05:00
Andrej730
df91f475c1
entity_instance constructor - skip setting None value
2025-06-17 18:41:19 +05:00
Andrej730
9282ccabb3
typing
2025-06-17 18:41:18 +05:00
Andrej730
15112211c1
add_application not to add deprecated IfcTelecomAddress in ifc4x3 #6806
2025-06-16 19:57:00 +05:00
Andrej730
e3bbec6394
entity_instance constructor and destructor micro optimizations
2025-06-16 19:55:25 +05:00
Andrej730
a75f6a5804
typing
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
9b8357c5ec
entity_instance.__hash__ - reuse id() value for optimization
2025-06-13 19:33:30 +05:00
Andrej730
67b539aba1
remove_representation - optimization
...
In some cases remove_representation got 2x times faster (when there were a lot representation items that are not IfcTessellatedFaceSets).
getattr with attribute that might not be present on the element could be much slower then checking it's class explicitly.
2025-06-13 19:33:29 +05:00
Andrej730
176c5cc0fb
typing
2025-06-13 19:33:29 +05:00
Andrej
d0f4dd00c7
getInverse -> get_inverses_by_declaration
...
Similar to getTotalInverses rename, to prevent confusing with get_inverse.
2025-06-11 19:39:46 +05:00
Andrej
6bb028696d
getTotalInverses -> get_total_inverses_by_id
...
Rename method to avoid confusion with get_total_inverses
2025-06-11 19:39:46 +05:00
Andrej
3499c50d7d
entity_instance.__getattr__ - small optimization for inverse attrs
...
Stop iterating early and don't build a list to make it a bit more optimized.
Though I'm unsure if anyone is really using `unpack_non_aggregate_inverses`
2025-06-11 19:39:46 +05:00
Andrej
cd952d7e54
typing
2025-06-11 19:38:24 +05:00
Andrej
b4bc7ec371
remove_deep2 optimization for cases when the same entity is referenced by multiple other in the subgraph #6784
2025-06-10 18:54:37 +05:00
Andrej
1fecd77121
Fix a typo
2025-06-10 18:54:37 +05:00
Andrej
1608677d40
ifcopenshell.api.run to use explicit kwargs instead of unpacking
2025-06-10 18:54:35 +05:00
Andrej
a37d46ca3d
typing
2025-06-10 18:54:33 +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
3f4656600e
typing
2025-06-09 18:03:15 +05:00