Ryan Schultz
0f835ca739
removed unnecessary code
2024-05-28 18:43:13 -05:00
Ryan Schultz
87442f549f
Update src/blenderbim/blenderbim/bim/module/model/prop.py
...
Co-authored-by: Bruno Perdigão <57102715+brunoperdigao@users.noreply.github.com >
2024-05-28 11:02:23 -05:00
Ryan Schultz
bf27e41275
Update src/blenderbim/blenderbim/bim/module/model/array.py
...
Co-authored-by: Bruno Perdigão <57102715+brunoperdigao@users.noreply.github.com >
2024-05-28 11:02:09 -05:00
Ryan Schultz
66cf06c990
Update src/blenderbim/blenderbim/bim/module/model/array.py
...
Co-authored-by: Bruno Perdigão <57102715+brunoperdigao@users.noreply.github.com >
2024-05-27 16:10:20 -05:00
Ryan Schultz
5757a62b6f
Update src/blenderbim/blenderbim/bim/module/model/prop.py
...
Co-authored-by: Bruno Perdigão <57102715+brunoperdigao@users.noreply.github.com >
2024-05-27 16:09:28 -05:00
Ryan Schultz
e2552e3d46
Update src/blenderbim/blenderbim/bim/module/model/prop.py
...
Co-authored-by: Bruno Perdigão <57102715+brunoperdigao@users.noreply.github.com >
2024-05-27 16:09:22 -05:00
Ryan Schultz
1b91540c96
Update src/blenderbim/blenderbim/bim/module/model/prop.py
...
Co-authored-by: Bruno Perdigão <57102715+brunoperdigao@users.noreply.github.com >
2024-05-27 16:09:15 -05:00
Ryan Schultz
274b12e5a0
Update src/blenderbim/blenderbim/bim/module/model/prop.py
...
Co-authored-by: Bruno Perdigão <57102715+brunoperdigao@users.noreply.github.com >
2024-05-27 16:09:01 -05:00
Ryan Schultz
496ba6f22d
fix #3802 - Copy array attributes from another array
2024-05-26 13:56:52 -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
55026ca996
Fix #4616 . You can now create a new representation based off any other object. This makes it easy to custom model whatever you want as a starting point.
2024-05-11 22:29:39 +10:00
Dion Moult
3fa573e3c1
Fix #4615 . Report to user if they are attempting to create an incompatible context-representation combination.
2024-05-11 20:48:38 +10:00
Dion Moult
00ae6809a9
See #4657 . Fallback to copying cache if moving cache fails due to permission error.
2024-05-11 19:59:39 +10:00
Dion Moult
c3fbb11093
See #4657 . Restrict annotation psets to their particular predefined type.
2024-05-11 19:38:22 +10:00
Kurt Battisti
a0d27c3f1c
Make Whole status UI message clearer ( #4658 )
...
Replace UI text "No Aggregate" with "No Whole relation defined" to avoid misinterpretation when instance is a whole with parts.
2024-05-11 19:04:35 +10:00
Dion Moult
811a908cc3
More segfault fixes in test suite (maybe order matters only on Linux?)
2024-05-11 19:01:57 +10:00
Dion Moult
94e5baf48a
Fix #4647 . Better error reporting if the user tries to activate a drawing that isn't available.
2024-05-11 19:01:21 +10:00
Dion Moult
cd2570cdbb
Fix #4649 . Bug where editing property set template enumerations didn't clean up properly.
2024-05-11 15:18:18 +10:00
Dion Moult
6df6553935
Notify user if duration parsing not available in util.date
2024-05-11 15:14:39 +10:00
Dion Moult
8e6c372a4f
Fix ability to run tests and segfaulting test
blenderbim-240511
2024-05-11 15:00:30 +10:00
Andrej730
371e11de9b
root.remove_product to consider IfcRelConnectsPortToElement
2024-05-10 19:18:09 +05:00
Andrej730
d2a708fcc4
fix bug in ifc2x3 tests bootstrap
...
it was creating new applications and users every time `ifcopenshell.api.owner.settings.get_user` or `ifcopenshell.api.owner.settings.get_application` was called
2024-05-10 19:18:09 +05: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
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