Andrej730
e87faa167c
typing
...
also small optimization in MaterialCreator.create to address ifc a couple times less
2024-09-09 17:28:24 +05:00
Andrej730
871cd45f53
selector.set_element_value to support 'predefined_type' keyword
...
See more details in https://community.osarch.org/discussion/comment/22134/#Comment_22134
2024-09-06 18:11:24 +05:00
Andrej730
008e2c01c3
selector.set_element_value - temporarily skip 'predefined_type'
...
to avoid issues importing csvs that used it to extract correct predefined type
Example warning:
WARNING. Assigning 'predefined_type' is not yet supported. Skipping value 'ELECTRICACTUATOR' for element: '#89=IfcActuator('1RjCen6XL6WAdhz7HumLFU',$,'Actuator.002',$,$,#179,$,$,.ELECTRICACTUATOR.)'.
2024-09-06 15:18:15 +05:00
Ryan Schultz
ab97f23b47
Fix #5039 - Assure count is an integer
2024-07-20 10:36:26 -05:00
Dion Moult
4e78de6ce9
You can now select group and system data in selectors
2024-07-10 17:30:38 +10:00
Dion Moult
07060fc769
Replace all ifcopenshell.api.run with ifcopenshell.api static functions.
2024-06-28 12:36:31 +10:00
Dion Moult
f0a19cb054
Fix #4815 . Purge deprecated old selector syntax.
2024-06-07 20:08:11 +10:00
Dion Moult
c5d1801e1e
Fix #4786 . Speed up parent filter.
2024-06-02 17:39:23 +10:00
Ryan Schultz
e2dc5f4a48
small tweak
2024-06-01 08:19:41 -05:00
Dion Moult
70064359c3
Whoops x2
2024-06-01 20:52:05 +10:00
Dion Moult
d8b74cf125
Whoops
2024-06-01 20:30:32 +10:00
Dion Moult
00c13c5ea4
Fix #4756 . You can now use parent as a key in a selector key.
2024-06-01 17:30:21 +10:00
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