Andrej730
c50d1ea2fe
typing
2024-05-10 19:18:08 +05:00
Dion Moult
e7eb00eaa3
See #4652 . Fix bug where auto-detection of a false origin could be incorrect
...
We were incorrectly multiplying a shape matrix in SI units with a vertex in project units. We also didn't do a final check whether or not that final resultant coordinate was far away or not (for example, origin and vertex can cancel each other out)
2024-05-10 23:28:37 +10:00
Dion Moult
cd6eac3c8f
See #4652 . Fix bug where using create_mesh won't work if you pass it a triangulation.
2024-05-10 22:39:56 +10:00
Dion Moult
69e21da60c
Minor naming changes in IfcFM to be more true to IFC jargon
2024-05-10 22:13:39 +10:00
Dion Moult
57b905862a
Fix #4650 . When the bbim build hotfixes the bot build, it should replace, not copy over.
blenderbim-240510
2024-05-10 18:20:41 +10:00
Dion Moult
51d3a2b77b
Whoops
2024-05-10 16:16:43 +10:00
Andrej730
b2920996be
remove deprecated api method type.get_related_objects
2024-05-09 18:15:49 +05:00
Andrej730
bdc5a7a01b
more descriptive errors creating entities - setting incorrect attributes
...
example:
```
ifc_file = ifcopenshell.file(schema="IFC4")
entity = ifc_file.create_entity("IfcRoot", "xxx", None, None, None, None)
entity = ifc_file.create_entity("IfcRoot", Location=None)
```
2024-05-09 18:15:49 +05:00
Andrej730
1c6a9e2c49
more descriptive errors settings incorrect data type to attributes
...
Example:
```
ifc_file = ifcopenshell.file(schema="IFC2X3")
entity = ifc_file.create_entity("IfcCostSchedule")
entity.UpdateDate = ifcopenshell.util.date.datetime2ifc(datetime.now(), "IfcDateTime")
```
2024-05-09 18:15:49 +05:00
Andrej730
8ffb77551f
more tests for ifc2x3
2024-05-09 18:15:49 +05:00
Andrej730
2d35869c41
typing
2024-05-09 18:00:17 +05:00
Andrej730
359dab573b
document.remove_information to support ifc2x3 #4636
2024-05-09 14:02:10 +05:00
Andrej730
6e2edbf101
explicitly specify available imported symbols
...
Fix LSP warnings like ""entity_instance" is not exported from module "ifcopenshell"PylancereportPrivateImportUsage" for `ifcopenshell.file`, `ifcopenshell.entity_instance` etc.
After adding py.typed in 722201a1a it's now a typed library and all imported symbols in modules are considered private by default and should be added to `__all__` if they are supposed to be generally available from imported module.
See https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md#library-interface
2024-05-09 13:35:29 +05:00
Dion Moult
4c8f93d737
Add error catching to model loading and let users hide error dialog
2024-05-09 16:33:05 +10:00
Dion Moult
2789bc565a
Write troubleshooting documentation
2024-05-09 16:21:24 +10:00
Dion Moult
a1e0b8858e
Track last actions and friendlier error reporting when something breaks
2024-05-09 13:37:57 +10:00
Dion Moult
f075a6178b
Experimental code for serialising API settings
2024-05-09 13:29:26 +10:00
Dion Moult
5fa385e1e0
Allow for having wildcard listeners in the api
2024-05-09 13:27:08 +10:00
Dion Moult
b57141a80c
New type of IfcTester report which doesn't require audit to be run to see a spreadsheet view of requirements
2024-05-09 10:46:57 +10:00
Dion Moult
d453adb7cf
Forgot to commit IfcTester fix for missing failed entities
blenderbim-240509
2024-05-09 10:36:39 +10:00
Andrej730
c5a7a8680e
fix removing references in ifc2x3 #4636
2024-05-08 18:18:03 +05:00
Andrej730
d4ccadb832
fix circular import after 10d30b0de
2024-05-08 18:18:03 +05:00
Andrej730
cbf04546b8
fix many implicit ifcopenshell.guid imports
...
a bit related to 10d30b0de
2024-05-08 18:18:02 +05:00
Dion Moult
37c0084874
Friendlier error reporting if bbim fails to install
2024-05-08 22:26:54 +10:00
Andrej730
875afd69d5
skip objects without placements importing containers
...
It seems that IFC doesn't specify that IfcRelAggregates.RelatedObjects should necessary have a placement. E.g. FreeCAD is using IfcGroups in RelatedObjects to store hierarchy in IFC.
Example - https://community.osarch.org/discussion/2144/object-information-spatial-container
2024-05-08 13:47:11 +05:00
Andrej730
67f4ed00d0
fix couple silent bugs importing containers
...
1) we were setting OwnerHistory to the "elevation" attribute of SpatialElement (in BIMSpatialProperties.containers)
2) we were setting "elevation" attribute at all when SpatialElement doesn't have "elevation" attribute
Though those bugs were silent since PropertyGroup doesn't alarm when we add a completely new attribute to it.
2024-05-08 13:47:11 +05:00
Dion Moult
10d30b0de7
Document api modules and require explicit imports of API submodules
blenderbim-240508
2024-05-08 17:00:35 +10:00
Dion Moult
984b1212a6
Whoops
2024-05-08 09:45:12 +10:00
Andrej730
bc72c927c1
replace deprecated api call
...
noticed fixing #4632
2024-05-07 21:41:01 +05:00
Andrej730
b8275f2802
fix errors using deprecated api after ab696b9 #4632
2024-05-07 21:39:09 +05:00
Andrej730
267527f3fc
fix issue after removing ifcopenshell.main in d76462ca4
2024-05-07 21:26:48 +05:00
Ryan Schultz
c5b4513f65
fix #4622 - can now reassign IfcWindowStyle and IfcDoorStyle
2024-05-07 09:46:55 -05:00
Dion Moult
5da4fbb39c
Fix #4631 . Fix packaging problem on PyPI for IfcPatch.
2024-05-07 23:36:56 +10: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
722201a1af
Add py.typed for static analysis with mypy
2024-05-07 17:15:58 +10:00
Dion Moult
0a3dddef2f
More Python 2 to Python 3 upgrades
2024-05-07 16:03:07 +10:00
Dion Moult
26434f0331
Fix #4589 . Symlink entire ifcopenshell dir for dev setups.
2024-05-07 15:51:48 +10:00
Dion Moult
f6c2e2c20d
Fix #4530 . Fix various styling issues on docs.
2024-05-07 15:44:06 +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.
blenderbim-240507
2024-05-07 10:32:02 +10:00
Andrej730
28d205b4a3
show info message on saving/loading csv from bbim
2024-05-06 18:56:20 +05:00
Andrej730
dcc52fc4e4
pset.edit_pset not to fail silently on invalid enum values #4608
2024-05-06 18:22:52 +05:00
Andrej730
a9d785c28f
typing
2024-05-06 18:22:52 +05:00
Bruno Postle
54a3730c20
fix d11ec67 mathutils dependency regression
...
mathutils is a blender module, wrap imports in try/except
2024-05-06 13:55:20 +01:00
Andrej730
31d322a28c
descriptions for operators removing classifications/contexts #4614
2024-05-06 17:29:30 +05:00
Andrej730
3b90086109
Fix loading search queries with exclusion #4609
...
It was failing to load queries like "!IfcWall" or "!2Mg7PHubX0xxOfF0DdA9Wd"
2024-05-06 17:06:10 +05:00
Gorgious56
30b870b98d
Fix #4617 : Switching representation in edit mode is no longer possible
2024-05-06 13:20:33 +02:00
Thomas Krijnen
b3e7975b83
Consider material profile set in single material determination
2024-05-06 13:18:05 +02:00