Andrej730
ebd03e9290
typing
2024-05-13 18:01:17 +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
6df6553935
Notify user if duration parsing not available in util.date
2024-05-11 15:14:39 +10:00
Andrej730
845d772a08
move sequence.get_related_products to util module
2024-05-10 19:18:09 +05:00
Andrej730
1e630ede08
ifc2x3 tests
2024-05-10 19:18:09 +05:00
Andrej730
2d35869c41
typing
2024-05-09 18:00:17 +05:00
Dion Moult
d453adb7cf
Forgot to commit IfcTester fix for missing failed entities
2024-05-09 10:36:39 +10:00
Andrej730
cbf04546b8
fix many implicit ifcopenshell.guid imports
...
a bit related to 10d30b0de
2024-05-08 18:18:02 +05:00
Dion Moult
93639e9e50
Even more cleaning of documentation references
2024-05-07 19:08:13 +10:00
Dion Moult
d76462ca42
Write more documentation
...
Sphinx autoapi also now only shows subpackages 1 level deep. This prevents us having a huge long list. Also don't show private or special members. Also show imported members so ifcopenshell.file and ifcopenshell.entity_instance works in docs too.
2024-05-07 17:32:47 +10:00
Dion Moult
424a06f6c8
More cleaning up of forward type hints to fix import errors
2024-05-07 14:58:12 +10:00
Dion Moult
89c4cbeb05
Drop support for Python 2.
2024-05-07 12:17:46 +10:00
Dion Moult
7e13ed746e
Don't rely on util for basic ifcopenshell module capabilities. Keep util as an optional module for users to load.
2024-05-07 10:32:02 +10:00
Andrej730
8dde98f543
fix #4592 (after 0da3270)
...
Before IFC4 Shape Aspects counldn't be part of IfcRepresentationMap
2024-04-29 15:22:26 +05:00
Andrej730
640320f70d
shape_builder - create non-optional position for profiles in ifc2x3
2024-04-25 18:05:47 +05:00
Andrej730
5b877b549a
fix numpy typing #4579
...
On older numpy versions, np.ndarray was less forgiving and wasn't allowing passing 1 argument instead of required 2.
And turned out numpy doesn't yet have typing for shapes (https://github.com/numpy/numpy/issues/16544 ), so all matrices and other shapes specified as `npt.NDArray[np.float64]`.
Fixed type discrepancies for `get_edges` and `get_faces` and also had to fix `import_ifc` as Blender apparently has problems with storing np.int32 in custom attributes (https://projects.blender.org/blender/blender/issues/121072 ), tested that Blender is okay with np.int32 in other cases we had (addressing BMesh.verts[i] where `i` is np.int32).
2024-04-25 18:05:47 +05:00
Andrej730
721466c429
typing
2024-04-25 18:05:47 +05:00
Andrej730
f1037de14d
small fix for 60a70f523
2024-04-25 18:05:46 +05:00
Andrej730
716a33f347
convert_file_length_units - fix issue converting to imperial units
...
ifcpatch ConvertLengthUnit - change used units from plural to singular names, to make it consistent across the api
more test coverage - test converting to more units and back from them
2024-04-24 15:15:30 +05:00
Andrej730
1c729a74d1
util.unit to support converting aggregate of aggregates
2024-04-24 14:12:13 +05:00
Andrej730
db31574103
typing
2024-04-24 14:12:13 +05:00
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