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
Andrej730
8f7f6223de
unlink pasted blender objects if there is no active ifc file #4619
2024-05-06 15:03:27 +05:00
Dion Moult
6c313dd25c
Fix for static analysis of ifcopenshell.api submodules. See #2693 .
2024-05-06 18:39:13 +10:00
Bruno Postle
b718bd19bd
fix TypeError
...
File "/usr/lib64/python3.12/site-packages/ifcopenshell/api/project/assign_declaration.py", line 126, in execute
related_definitions = set(has_context.RelatedDefinitions) - objects_with_contexts
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
TypeError: unsupported operand type(s) for -: 'set' and 'list'
2024-05-06 09:05:56 +01:00
Dion Moult
ab5ea4c853
Implement listener wrapper for new API functions. See #2693 .
2024-05-06 14:43:43 +10:00
Dion Moult
d11ec67129
Generate functions for all API usecases for better static code features. See #2693 .
2024-05-06 14:43:43 +10:00
Ryan Schultz
10f894e2ea
Find the "Types" Collection regardless of the IfcProject.Name
2024-05-05 20:46:07 -05:00
Ryan Schultz
34bbc8f1ea
for 'Add Fitting' changed the hot key from Shift+F to Shift+Y. per https://community.osarch.org/discussion/2124/ui-discussion-around-add-fitting-and-add-bend
...
Also added Shift+F (bim.flip_object) to all profile-based objects
blenderbim-240506
2024-05-05 19:20:13 -05:00
Dion Moult
a213ab6760
Fix docstrings to reference datatype as it would be used for users
2024-05-06 08:39:48 +10:00
Ryan Schultz
d694d8fcc2
fix #4610 : bim.select_type() from type launcher throws error
2024-05-05 13:16:30 -05:00
ppaawweeuu
5f2d451c5e
Update selector_syntax.rst ( #4618 )
...
info about 'Must contain..' and 'Must not contain..' comparisons added
2024-05-05 23:40:32 +10:00
Dion Moult
ab696b980a
See #2693 . Expose static functions of IfcOpenShell API.
blenderbim-240505
2024-05-05 16:26:41 +10:00