Dion Moult
6e30cd2ba7
Fix #4638 . You can now filter by parent (in the spatial hierarchy)
2024-06-01 15:10:45 +10:00
Dion Moult
128ffc8fd7
Fix bug where selector didn't handle "not equals" correctly for locations or groups
2024-06-01 14:53:55 +10:00
Dion Moult
8403c32e76
Adjust selector's behaviour to use the elements argument as a filtering subset
...
This was always the original intention, but never worked as designed. This is so that you don't need to filter the entire file (which can be huge).
2024-05-28 17:30:01 +10:00
Dion Moult
37cacfcd06
Fix #4728 . Bug where changing class doesn't work with IfcCSV if it didn't need to change anything.
2024-05-26 21:57:23 +10:00
Andrej730
a8f0c90d47
set_element_value - fix issues with classification, similar to 52ae759
2024-05-17 17:31:01 +05:00
Andrej730
39f550529b
experimental - set_element_value to throw exception for invalid queries
2024-05-17 17:31:01 +05:00
Andrej730
25c1a14e64
set_element_value - pass attr value to the next part of the query #4495
...
E.g. previously set_element_value with query "material.item.Material.Name" would fail with error "Material property is expecting an IFC entity and not a string".
But now it will detect that "Material" property is not a last key in the query and will pass `.Material` value forward and try to set it's `.Name` attribute with value.
The main goal is to make sure get_element_value and set_element_value would have a same result for same queries.
2024-05-17 17:31:01 +05:00
Andrej730
9f7d710119
fix set_element_value bug #4495
2024-05-17 17:31:01 +05:00
Andrej730
ea592775e4
fix set_element_value setting bool attributes with "False" str value
2024-05-17 17:31:01 +05:00
Andrej730
42be4eb064
typing
2024-05-17 17:31:01 +05:00
Dion Moult
b7737cb6d3
Fix #4655 . profiles is now available as a keyword in the selector syntax.
2024-05-11 22:57:16 +10:00
Dion Moult
93639e9e50
Even more cleaning of documentation references
2024-05-07 19:08:13 +10: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
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
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
Andrej730
02aaf1b409
typing
2024-04-05 16:47:13 +05: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
Andrej730
1b1eccb0c1
typing
2024-03-21 15:06:32 +05:00
Andrej730
6d6010be3b
typing
2024-03-21 11:32:53 +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
6881e7d220
utils.filter_elements docs and tests
2024-03-13 15:32:42 +05:00
Dion Moult
2c9e443425
Fix #4300 . You can now select spatial elements by their location too.
2024-03-01 20:02:15 +11:00
Dion Moult
ca8e014647
Fix #4195 . Fix regressions from f840da3 and add support for "contains string" comparisons.
2024-01-13 15:58:57 +11:00
c4rlosdias
f840da3ffd
Added more comparisons in search
2024-01-10 23:21:18 +11:00
Dion Moult
6ea1e378c5
Fix bug where updating type text literals didn't propagate and formatting rounding null values wasn't handled.
2024-01-10 14:42:14 +11:00
Dion Moult
bfabc0db0f
Add support for groups in selection queries
2024-01-09 16:44:40 +11:00
Ryan Schultz
52ae759218
Added classification to selector
2023-12-07 13:39:42 +11:00
Dion Moult
2951721886
Don't strip selector query keys to allow for explicit "mistakes" in key names.
2023-09-12 20:45:24 +10:00
Dion Moult
02902d9a41
Allow optional second arguments to substr formatting.
2023-09-12 17:48:23 +10:00
Dion Moult
763eaf83da
Fix #3733 . Fix round function precision error.
2023-09-08 12:20:52 +10:00
Dion Moult
e897797955
For convenience, rounding to an integer value now also casts to integer.
2023-09-08 11:17:28 +10:00
Dion Moult
ae1ff3f6f7
Fix bug where unedited mesh objects were still tagged as edited which led to unnecessary processing prior to drawing generation or saving.
2023-09-07 22:09:26 +10:00
Dion Moult
9a34b94568
Fix #3682 . You can now tag setout points with dynamic xyz / enh values.
2023-09-07 13:47:54 +10:00
Dion Moult
de27554043
New substr formatting function.
2023-09-07 13:02:45 +10:00
Dion Moult
306ee3dfa4
You can now choose both input and output units for imperial formatting
2023-09-07 12:18:43 +10:00
Dion Moult
ba4610155f
Fix #3705 . Fix ambiguity in using commas in unquoted strings in facet selector.
2023-09-06 16:34:39 +10:00
Dion Moult
13f64fdfe2
Write documentation describing facet selector and element query syntax.
2023-08-27 22:32:41 +10:00
Dion Moult
7baed872c6
Minor fixes, and IfcCSV now uses pandas to import ODS/XLSX for more robust importing.
2023-08-26 18:24:48 +10:00
Dion Moult
9a7a284561
Selector element key queries now allow for regex matching, and single regex matches return that only item, not a list with one item in it.
2023-08-26 16:42:18 +10:00
Dion Moult
e9c24a2656
Fix #3587 . IfcCSV now supports custom formatting functions.
2023-08-26 15:15:34 +10:00
Dion Moult
cf21ae22f1
Fix incorrect implementation of regex matching
2023-08-25 17:15:21 +10:00
Dion Moult
968cceb725
Fix #3627 . Bug where exclude didn't take into account entities are "OR" not "AND". Whoops.
2023-08-24 11:50:48 +10:00
Dion Moult
c1bde09585
IfcCSV now supports grouping and group operations like concat, sum, min, max, etc.
2023-08-22 15:43:31 +10:00
Dion Moult
b8d191ac1c
Now support custom queries for advanced users in the facet selector (similar to old selector). Also support types and count keys. (e.g. filter by objects with zero types, or zero materials, etc).
2023-08-21 23:44:20 +10:00
Dion Moult
57173c7740
You can now get specific container types via util.element or util.selector. E.g. if you wanted to know what building an object is in or what storey an object is on.
2023-08-21 23:07:02 +10:00