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
Andrej730
9f2df7fb9d
preview external shading style as material is selected from other .blend file
...
previously it required to save external style attributes to preview the changes, now it's couple clicks saved if you want to preview different blender materials for your styles
2024-05-03 17:55:30 +05:00
Andrej730
9e5c3ff675
fix bug appending blender material when style.Location isn't .blend
...
it wasn't considering that .Location could be either None or not a .blend file and was failing in those cases
2024-05-03 17:38:04 +05:00
Andrej730
a67108e6c1
Reload current shading style after editing it #4567
...
Examples:
1) active shading type = EXTERNAL, now after changing it's SHADING attributes and accepting the changes, it will reload EXTERNAL shading back since it's the one that's active.
2) active shading type = SHADING, after adding EXTERNAL shader will reload SHADING style to the material.
2024-05-03 17:36:14 +05:00
Andrej730
b1706f2eac
fix error launching type manager in empty project
2024-05-03 16:28:10 +05:00
Andrej730
ac29e152bb
project.unassign_declaration - support batching #4474
2024-05-03 16:28:10 +05:00