Andrej730
221dd9a7a2
typing
2024-05-21 17:53:42 +05:00
Andrej730
1b74a99667
use delete_ifc_object removing a type
...
It was acting a bit different - e.g. leaving mesh representation from type on occurrences leaving to lots of errors. Though there is still #3931
2024-05-21 17:07:32 +05:00
Dion Moult
9122f006c7
Deprecate material attributes panel in favour of new material manager.
2024-05-20 23:21:13 +10:00
Andrej730
f84adf67cd
typing
2024-05-20 17:19:00 +05:00
Andrej730
cacb38a251
maintain "bim." as operators bl_idname prefix for BlenderBIM
...
1) removed unused operator import_ifc.bim
2) marked export_ifc.bim as deprecated
2024-05-20 17:19:00 +05:00
Andrej730
4e462a3cf7
use .alert in fatal loading error UI to draw more attention ( 3320acc)
...
https://i.imgur.com/5ZukO0b.png
we probably will need to use 1 method for both error UIs at some point 😅
2024-05-20 12:47:09 +05:00
Andrej730
e7f4c6c9cc
update error UI similar to 7bf8c0bbf
2024-05-20 12:34:56 +05:00
Dion Moult
7bf8c0bbfb
Fix #4686 . Automatically derive correct download URI if add-on fails to install.
2024-05-20 16:32:42 +10:00
E Shattow
16285e0625
Update installation.rst refering to System not Import-Export
...
Blender BIM addon is listed by Blender 4.1 as `System: BlenderBIM`
2024-05-20 10:57:38 +05:00
Dion Moult
a07d3b9669
Fix #4633 . Only update the text value of the object, not try to be clever with types and occurrences.
...
Previously, we were clever in detecting types and occurrences because if you edited a type, you wanted all occurrences to be updated. Now, we no longer need to be clever because like any other UI element, the annotations shown in the active view are updated after every IFC operation.
2024-05-20 14:12:03 +10:00
Dion Moult
2d0b356203
See #4690 . User can now configure font and font-scaling in schedules.
2024-05-20 12:00:59 +10:00
Dion Moult
f666053b63
Use pip instead of hardcoding bcf packages during build. See #4640 .
2024-05-19 23:50:57 +10:00
Dion Moult
3bdc969efb
Fix #4690 . User can now configure the font used to render viewport text.
2024-05-19 23:36:38 +10:00
Andrej730
cb255a18b9
fix error editing pset templates when you just opened ifc file
...
It was failing with an error below if you'd try to edit any property since `primary_measure_type()` returned `[]` because it was executed before `pset_templates()` and `IfcStore.pset_template_file` wasn't yet set.
```python
Error: Python: Traceback (most recent call last):
File "\blenderbim\bim\module\pset_template\operator.py", line 146, in execute
props.active_prop_template.primary_measure_type = template.PrimaryMeasureType
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: bpy_struct: item.attr = val: enum "IfcLabel" not found in ()
```
2024-05-18 11:24:10 +05:00
Andrej730
183028570e
bump xsdata in blenderbim after 87c9bbe2a #4640
2024-05-18 01:49:56 +05:00
Andrej730
fe68e16ca3
bim.update_representation - error if add_representation didn't worked
2024-05-17 17:31:01 +05:00
Andrej730
42be4eb064
typing
2024-05-17 17:31:01 +05:00
Andrej730
a66ee06e3d
dev environment - add bcf
2024-05-17 11:42:06 +05:00
Andrej730
9969de58cb
add a console toggle to error message section
2024-05-16 18:14:07 +05:00
Andrej730
6995cafe63
bim.split_along_edge fixes #4675
...
1) description to emphasize that active object will be the one that's cutting
2) skip non-ifc elements, previously they failed to process with error `AttributeError: 'NoneType' object has no attribute 'RepresentationType'`. Also skip objects without representations.
3) add an info message at the end
Here's a short gif in case if anyone doesn't about that feature: https://imgur.com/a/338w7jx
2024-05-16 18:14:06 +05:00
Andrej730
eaa80ad08a
fix issue getting styles if object had empty mat slots
...
Occurred only with only_assigned_to_faces = True
A bit related to #4675
Error was
styles = [style for style, usage in zip(styles, usage_count, strict=True) if usage > 0]
ValueError: zip() argument 2 is longer than argument 1
2024-05-16 18:14:06 +05:00
Andrej730
d001180082
remove unused code
2024-05-16 18:14:06 +05:00
Andrej730
3884403231
typing
2024-05-16 18:14:06 +05:00
Andrej730
8d4b5d83e1
same as e1250f217
2024-05-16 16:13:22 +05:00
Andrej730
e1250f2177
fix saving debug info to clipboard #4675
...
now we just rely on blender to make it crossplatform
2024-05-16 16:00:38 +05:00
Andrej730
fdbe74a432
maintain snake in api calls
...
there were only two methods using camel case for arguments
2024-05-15 17:18:34 +05:00
Andrej730
bb8e84e5ec
typing
2024-05-15 17:18:33 +05:00
Andrej730
2fa30be0d0
small optimization for da1bdc802
...
On large projects predict dense mesh stage can take 20s+ and reusing attribute value can save up to half of this time.
Using indices also helps but it's not that significant and sometimes it's the same time as using attribute names.
2024-05-14 18:19:13 +05:00
Bruno Perdigão
c50149ad87
added 'product' parameter to a few usages of 'pset.remove_pset' after ebd03e9
2024-05-14 17:48:05 +05:00
Dion Moult
da1bdc802d
Accommodate invalid models coming from Cadwork
2024-05-14 16:16:18 +10:00
Andrej730
865dbab3ec
fix error removing array pset after c50d1ea2f
2024-05-13 18:01:17 +05:00
Gorgious56
3320accc7a
The error box is now drawn in red to draw attention to it
2024-05-13 12:00:01 +02:00
Gorgious56
ac686db298
Prevent error when user deletes all spatial structure elements and the spatial manager panel is expanded
2024-05-13 11:57:48 +02:00
Dion Moult
aca26c7597
Fix #4659 .
2024-05-12 17:16:50 +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
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
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
57b905862a
Fix #4650 . When the bbim build hotfixes the bot build, it should replace, not copy over.
2024-05-10 18:20:41 +10: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
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