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
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
d6e69bd6e9
classification.add_reference - support batching #4474
2024-04-15 17:23:14 +05:00
Andrej730
59cc9c0a16
material.assign_material - support batching #4474
2024-04-12 17:41:37 +05:00
Andrej730
df4943205a
type.assign_type - support batching #4474
2024-04-10 18:58:44 +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
Andrej730
cd11d2de27
aggregate.assign_object - support batching #4474
2024-04-08 17:49:48 +05:00
Andrej730
109787d869
spatial.assign_container - support batching #4474
2024-04-05 17:28:30 +05: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
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
a755ec99f9
small fix
2024-03-18 17:08:39 +05:00
Andrej730
812389bce2
ifccsv - support for assigning x/y/z coordinates from csv
2024-03-18 17:06:00 +05:00
Andrej730
6881e7d220
utils.filter_elements docs and tests
2024-03-13 15:32:42 +05: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
Dion Moult
05f6f4efab
Manual booleans are now tracked via a Pset instead of arbitrary class conventions which should fix a bunch of issues.
2023-10-10 17:33:00 +11:00
Dion Moult
62bf8c2287
Fix crash where IFCTester read directly from IFC in the UI
2023-09-19 18:17:24 +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
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
e9c24a2656
Fix #3587 . IfcCSV now supports custom formatting functions.
2023-08-26 15:15:34 +10:00
Dion Moult
f523870b57
Fix #3584 . Support matching enumerated properties in new facet selector.
2023-08-15 09:59:50 +10:00
Dion Moult
1b71f4f569
Implement guid facet in facet selector
2023-07-20 19:42:34 +10:00
Dion Moult
452089596e
New facet based selector syntax. Proposed to supersede existing selector syntax.
2023-07-20 19:22:15 +10:00
Dion Moult
f2c757b1bb
Fix #3113 . Support regex in selector filter values.
2023-05-31 13:23:51 +10:00
Dion Moult
3d441b4ad3
Fix #3038 . Fix #3039 . Selector should default to none instead for throwing errors if the query doesn't have a result.
2023-04-20 17:41:52 +10:00
Dion Moult
6c5acfc8bb
Fix #2945 . Selector should expand enumerated list properties so that you can match any of them.
2023-04-06 19:21:22 +10:00
Dion Moult
a1acdc0977
See #2881 . Allow indices in the selector instead of relying on external evaluations.
2023-04-04 09:58:23 +10:00
Dion Moult
c87911f00e
IFC selector now uses "class" as a keyword to get the IFC class to disambiguate between "type" and "class".
2023-03-27 21:47:11 +11:00
Dion Moult
b9c99b35a5
Fix #2881 . Support added for referencing nested relationships and material set items.
2023-03-25 22:07:18 +11:00
Dion Moult
1250a20e35
Fix #2858 . Fix #2856 . BlenderBIM Add-on drawings and IfcCSV now support the new quoted and escaped selector capabilities.
2023-03-13 11:09:56 +11:00
Dion Moult
4ebcf8133c
Fix #2435 . The selector now supports regex filtering.
2023-03-09 11:07:28 +11:00
Dion Moult
a43a3d1ecd
Fix #2745 . You can now quote and escape complex pset names in the selector.
2023-03-06 17:47:03 +11:00
Dion Moult
0844d6f52e
Fix #2354 - add support for selector queries for enumerated properties
2022-08-19 20:10:54 +10:00
Vukas Pajic
ce6d4ea59a
match elements when attribute is none and negation used
2022-07-20 09:33:58 +02:00
Vukas Pajic
29594b50b5
test when value does not exist
2022-07-20 09:06:04 +02:00
Vukas Pajic
2a2da56a0e
added test to check non standard characters
2022-07-20 08:32:36 +02:00
Dion Moult
9ea6499b5a
#2082 You can now filter by metadata existence in the selector syntax
2022-04-27 22:20:12 +10:00
Dion Moult
c072554f21
You can now use the selector with a prefiltered list of elements
2022-03-22 11:32:40 +11:00
Dion Moult
18c9a57bea
Using the selector now supports recursive decomposition in the spatial hierarchy
2022-03-22 11:23:13 +11:00
Dion Moult
eaa3301b8f
New support for filtering elements by checking values against an enumeration
2022-03-22 10:49:48 +11:00
Dion Moult
efb89acfa3
You can now use a "not" operator when selecting elements
2022-03-22 10:40:05 +11:00
Dion Moult
fa6ec25a39
#2082 . You can now use the selector to filter by strict data types.
2022-03-21 18:03:25 +11:00
Dion Moult
44afa0df5d
Selector now uses classmethods to make it easier for scriptwriters to use
2022-03-21 17:28:16 +11:00