Andrej730
34a4e3f37a
util.doc - use release schema version for IFC4X3
...
As it will be more like to be available in the ifcopenshell package. Related to #4565
2024-04-22 17:30:25 +05:00
Andrej730
889c9a9e9f
typing
2024-04-22 17:30:25 +05:00
Andrej730
9e79499532
small optimization
2024-04-22 17:30:24 +05:00
Andrej730
60a70f5236
support IfcAxis1Placement and warn on IfcAxis2PlacementLinear #4565
2024-04-19 17:11:56 +05:00
Andrej730
757a010172
typing
2024-04-19 16:18:57 +05:00
Andrej730
447625bffd
fix failing test in util.selector.format with imperial_length
...
the error is below, not sure how I haven't noticed it before 🤔
assert subject.format('imperial_length(1, 1)') == "1'"
> raise VisitError(tree.data, tree, e)
E lark.exceptions.VisitError: Error trying to process rule "imperial_length":
E
E cannot access local variable 'output_unit' where it is not associated with a value
2024-04-19 16:18:46 +05:00
Andrej730
9da4215bac
ifcopenshell.util.selector.filter_elements - inherited predefined types
...
mentioned by @theoryshaw on osarch - https://community.osarch.org/discussion/comment/20126/#Comment_20126
2024-04-19 16:05:33 +05:00
Andrej730
81608b0cee
ifcopenshell.util.get_constrained_elements
2024-04-16 15:17:49 +05:00
Andrej730
02ae838c45
util.constraint - typing and docs
2024-04-16 15:17:49 +05:00
Dion Moult
23abf674f3
Minor fix
2024-04-16 14:54:36 +10:00
Andrej730
ff76850a54
ifcopenshell.util.element.get_structure_referenced_elements
2024-04-15 17:24:31 +05:00
Andrej730
75c854da01
ifcopenshell.util.get_referenced_elements
2024-04-15 17:21:10 +05:00
Andrej730
01ddf8e769
util.classification small optimization
2024-04-15 14:47:32 +05:00
Dion Moult
8a62558575
Fix #4484 . Clarify inheritance rules of predefined types.
2024-04-15 09:27:58 +10:00
Andrej730
fa0dbac914
new util method ifcopenshell.util.element.get_groups
2024-04-11 17:50:30 +05:00
Andrej730
239ab5b587
get_pset() fix bug getting inherited psets with psets_only/qtos_only = True
2024-04-10 18:45:37 +05:00
Andrej730
37a33d62d5
further ifcopenshell.util.element optimization
...
and readibility for props addressed by the index
2024-04-10 18:45:37 +05:00
Andrej730
13c6fdd3c6
maintain verbosity getting complex property subproperties
2024-04-10 18:45:36 +05:00
Andrej730
e69597f72b
typing
2024-04-10 18:45:36 +05:00
Dion Moult
de744dddda
Fix #4290 . You can now format custom thousands separators and decimal separators in IfcCSV.
2024-04-10 17:32:39 +10:00
Dion Moult
bee1e21f0e
Fix #4490 . Fix fundamental bug where get_pset would return none for inherited props with a boolean False value.
2024-04-10 12:57:52 +10:00
Andrej730
153389fe4a
ifcopenshell.util.element optimization
...
Tried to reduce amount of IFC attributes retrieved by reusing already retrieved values.
E.g. previously get_nest() was retrieving same attribute 3 times on each call, now it does it only once and it's 2 times faster (2.4 ms -> 1.2 ms).
2024-04-09 18:36:55 +05:00
Andrej730
d1bcec7a6a
typing
2024-04-09 18:33:25 +05:00
Dion Moult
8e2f9d2bb5
Fix #4509 . Don't show scary error message if you haven't specified a filter query.
2024-04-08 17:19:17 +10:00
Dion Moult
63b541917e
Minor fix in doc utility for entities which have no predefined types
2024-04-06 23:48:14 +11:00
sebphi
5d6119e542
Fix import of ifcopenshell.util.unit in Python <3.10 #4520
2024-04-05 17:46:55 +02:00
Andrej730
02aaf1b409
typing
2024-04-05 16:47:13 +05:00
Dion Moult
635ddce93d
Autodetect CSG representation types in shape builder
2024-04-04 18:28:26 +11:00
Dion Moult
24e807cac7
Detect binary data types in util.attribute
2024-04-04 18:28:26 +11:00
Dion Moult
0bc83fedae
Use indices instead of WorkTimeDatesInterface
...
Checking start/end dates are done very, very often in date calculations (often looping through every day in a date range). So I'd prefer more opaque code but less overhead.
2024-03-31 22:11:17 +11:00
Dion Moult
c8af51cfd2
Fix #4323 . Bug where running a filter could fail if you tried to compare values which had incompatible types.
2024-03-30 23:07:06 +11:00
Dion Moult
8d7b293381
Fix #4305 . Bug where importing spreadsheets into IFC didn't intelligently cast attribute data types
2024-03-29 20:37:34 +11:00
Dion Moult
ccfe7ab80a
Optimise property / quantity checks for IDS and other purposes
2024-03-27 16:09:13 +11:00
Andrej730
06d823b9d8
typing
2024-03-26 15:54:45 +05:00
Andrej730
7132c4e9bf
typing and small refactor
2024-03-22 16:54:42 +05:00
Andrej730
1b1eccb0c1
typing
2024-03-21 15:06:32 +05:00
Andrej730
6d6010be3b
typing
2024-03-21 11:32:53 +05:00
Andrej730
09da42d649
typing
2024-03-20 17:30:58 +05:00
Andrej730
c35cdcfcad
util.selector.set_element_value to work w/o preassigned placement #4439
2024-03-19 17:45:21 +05:00
Andrej730
205da63d8e
util.selector.set_element_value ignore values within tolerance #4439
2024-03-19 17:45:21 +05:00
Andrej730
812389bce2
ifccsv - support for assigning x/y/z coordinates from csv
2024-03-18 17:06:00 +05:00
Andrej730
b67b5e8d9f
typing
2024-03-18 17:05:55 +05:00
Andrej730
f20fd3357f
typing
2024-03-14 14:50:34 +05:00
Andrej730
6881e7d220
utils.filter_elements docs and tests
2024-03-13 15:32:42 +05:00
Andrej730
0576914e07
small fixes after d209cc9ff, added a test
2024-03-11 15:15:17 +05:00
Andrej730
8e502c9bb7
util.unit.py - black format
2024-03-11 15:15:17 +05:00
Andrej730
4d23706145
more typing
2024-03-11 15:15:17 +05:00
Geert Hesselink
6e8de292c6
Redundant closing symbol ' ( #4413 )
...
* scale placeangleunit
* add radian si_conversions
* return conversion value of planeangleunit
* Update unit.py
* redundant closing
* redundant closing
2024-03-11 11:12:23 +01:00
Geert Hesselink
d209cc9ff4
Scale placeangelunit unit type ( #4406 )
...
* scale placeangleunit
* add radian si_conversions
* return conversion value of planeangleunit
* Update unit.py
2024-03-11 08:54:20 +01:00
Andrej730
a3d970e014
shape_builder.create_axis2_placement_3d utility method and docs
2024-03-06 17:30:55 +05:00