Andrej730
39cd4187ea
Remove unused BIMMaterailProperties props #4843
...
attributes were deprecated in d219856
is_external and name were deprecated awhile ago in 3fe5c88 😁
2024-06-25 18:30:51 +05:00
Andrej730
d6a3bc3556
remove dead code for loading materials from external blend files
...
External blender materials are now supported from
2024-06-25 18:30:51 +05:00
Andrej730
ce9e4f2854
remove BIMObjectProperties from bpy.types.Material as deprecated #4843
2024-06-25 18:30:51 +05:00
Andrej730
7700e8016b
ifcopenshell.geom.create_shape - document all return types
2024-06-25 18:30:51 +05:00
Andrej730
6e1ebb02ac
file and entity - avoid infinite recursion if they fail to initialize
...
Example of the error:
Traceback (most recent call last):
File "\test.py", line 133, in <module>
ifc_file = ifcopenshell.file.from_string(ifc_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\ifcopenshell\file.py", line 648, in from_string
return file(ifcopenshell_wrapper.read(s))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\ifcopenshell\file.py", line 264, in __init__
raise exc(msg)
ifcopenshell.SchemaError: Unsupported schema: IFC2X3
Exception ignored in: <function file.__del__ at 0x00000250896EB740>
Traceback (most recent call last):
File "\ifcopenshell\file.py", line 282, in __del__
del file_dict[self.file_pointer()]
^^^^^^^^^^^^^^^^^
File "\ifcopenshell\file.py", line 424, in __getattr__
return getattr(self.wrapped_data, attr)
^^^^^^^^^^^^^^^^^
File "\ifcopenshell\file.py", line 424, in __getattr__
return getattr(self.wrapped_data, attr)
^^^^^^^^^^^^^^^^^
File "\ifcopenshell\file.py", line 424, in __getattr__
return getattr(self.wrapped_data, attr)
^^^^^^^^^^^^^^^^^
[Previous line repeated 996 more times]
RecursionError: maximum recursion depth exceeded
Simple way to trigger those recursions was:
import ifcopenshell
ifcopenshell.file(schema="IFC4x3_RC4_43c3555")
ifcopenshell.entity_instance(("IFC4X3", "IfcPresentationStyleAssignment"))
2024-06-25 18:30:51 +05:00
Andrej730
d2e7e3daaf
move ifc file handling logic to ifcopenshell.file
...
to reuse the same logic for both ifcopenshell.open and ifcopenshell.file.from_string()
2024-06-25 18:30:51 +05:00
Andrej730
5d6215d889
bim.unlink_object - add description
2024-06-25 18:30:51 +05:00
Andrej730
17eb45fb4e
Object metadata to double check element belongs to the current project
...
Just to be safe if it got from other Blender session and there is an IFC element with the same id in the current project. I guess we can't check it anywhere but information in "Object metadata" should very accurate as here user might decide to unlink it.
2024-06-25 18:30:51 +05:00
Andrej730
0a06d58c42
typing
2024-06-25 18:30:50 +05:00
Andrej730
a65c6b6d3f
bim.unlink_object to skip popup if element is not found
...
If element is not found then it should always use `should_delete == False`, so we can just hide the popup in that case so users won't get confused about what should they choose.
2024-06-25 18:30:50 +05:00
Andrej730
c5262274eb
bim.unlink_style - fix issue saving project after unlinking
2024-06-25 18:30:50 +05:00
Andrej730
65f94bcc0c
Fix for console errors in a0e5d350b when no material active
2024-06-25 18:30:50 +05:00
Ziad-I
804bbc47c3
fix exception when global id is not included in csv data
blenderbim-0.7.9.240625
2024-06-25 23:15:58 +10:00
Ziad-I
a967665cbd
slight html/js/css changes
2024-06-25 23:15:58 +10:00
Ziad-I
cbd017aceb
now sets active object too when selecting from web UI
2024-06-25 23:15:58 +10:00
Ziad-I
8d9d142bc2
reorganize JS code to be outside of document.ready
2024-06-25 23:15:58 +10:00
Ziad-I
f6c30f2ddf
improved send function logic to make there be 1 function only
2024-06-25 23:15:58 +10:00
Ziad-I
d2a27999ba
add handling for web operator selection
...
where if user click on item in the table it gets selected in blender
2024-06-25 23:15:58 +10:00
Ziad-I
2738b280a1
now shows ifc file name before table
2024-06-25 23:15:58 +10:00
Ziad-I
c8946a19f2
edit html/js/css to use tabulator to show csv data
2024-06-25 23:15:58 +10:00
Ziad-I
6b1932c8d9
add event listeners in sioserver.py
...
added event listeners for sending csv data from blender and receiving operator data from web UI
2024-06-25 23:15:58 +10:00
Ziad-I
a133b51dcc
add new output format "web". might need to...
...
might need to rewrite the logic for the output format "web" at a later date if there is a better way
2024-06-25 23:15:58 +10:00
Ziad-I
6155edef0d
made sending data take the event and namespace names as args
2024-06-25 23:15:58 +10:00
Thomas Krijnen
439595f04c
Update build-all.py #3927
2024-06-25 11:44:26 +02:00
Thomas Krijnen
c1fa9fe28e
Option to read VERSION file in cmake #3927
2024-06-25 11:40:42 +02:00
Thomas Krijnen
54a0a5b454
Some more python mapping wrapping experiments
2024-06-24 21:57:16 +02:00
Thomas Krijnen
bace73f854
Switch back to minkowski dilation for the time being
2024-06-24 21:56:57 +02:00
Thomas Krijnen
8da68f599b
Move print() to header, distinguish properly between curve_sense and edge orientation, unwrap trimmed curves as edge bases, don't mutated cached edge in oriented edge processing, etc. #4895
2024-06-24 21:56:27 +02:00
Thomas Krijnen
278524ee3e
Uninitialized use of context
2024-06-24 21:52:31 +02:00
Thomas Krijnen
a9912f351f
Don't dereference empty unit assignment list
2024-06-24 21:52:08 +02:00
Thomas Krijnen
1e5c51e5b2
Update main.py
2024-06-24 21:48:54 +02:00
Dion Moult
44100f3c46
Fix isolating drawing camera now that we have a new collection structure
2024-06-24 23:41:00 +10:00
Dion Moult
713e9c8e14
Minor fix in IfcFM to derive occurrences from types (and make it easier to override)
2024-06-24 23:41:00 +10:00
Dion Moult
e6238a1f75
Georeference UI now lets you edit either a decimal degrees angle or an abscissa ordinate and calculates on the fly
...
Seriously no normal person uses abscissa and ordinate
2024-06-24 23:41:00 +10:00
Dion Moult
cfd440dae9
Remove georeferencing orientation calculator UI because it's superseded by built-in angle calculators
2024-06-24 23:41:00 +10:00
Andrej730
a0e5d350bd
Small UI in Blender material properties tab with unlinking #4843
...
Example - https://i.imgur.com/7VqIowz.png
This tab is needed only to indicate whether style is linked to some IFC element and to unlink it. Unlinking from Blender material makes much more sense as you can see from this tab what you're actually unlinking.
Unlinking for styles now works very similar to how it works for objects.
2024-06-24 18:37:55 +05:00
Andrej730
c37240cf96
pyproject.toml - disable pyright setting that conflicts with Blender api
...
See https://github.com/microsoft/pylance-release/issues/5457
2024-06-24 18:34:01 +05:00
Andrej730
115844279f
fix removing objects with materials after c4ae9578e #4843
...
temporary fix, we probably should indeed just get rid of that listener
2024-06-24 18:34:00 +05:00
Andrej730
cbb7c5620d
Fix unlinking objects with should_delete=False after 75f8e75
...
It was keeping a reference to that object in IfcStore which could lead to issues.
2024-06-24 18:34:00 +05:00
Andrej730
6d5d15793b
record material checksum if styles were changed during material assignment
...
previously they wasn't recorded leading to the applying them to the representation items on save
2024-06-24 18:34:00 +05:00
Andrej730
8ac6f59394
typing
2024-06-24 18:34:00 +05:00
Andrej730
5d8addf1f8
remove optimization option deprecated after e3cb811
2024-06-24 18:34:00 +05:00
Andrej730
9b9301cbb0
ifc4x3 docs parser - use release ifc4x3 version
2024-06-24 15:22:02 +05:00
Andrej730
4d9b461776
Update ifc4x3 docs with ifc4x3_add2 release version
2024-06-24 15:22:02 +05:00
Andrej730
36f7cdacbd
ifc4x3 docs - temporary fix for issue upstream
...
see https://github.com/buildingSMART/IFC4.3.x-development/issues/754
2024-06-24 15:22:02 +05:00
Andrej730
feb0e46257
More readable error if express file is missing
2024-06-24 15:22:02 +05:00
Andrej730
0b901bff5f
typing
2024-06-24 15:22:02 +05:00
Dion Moult
b45b0f2c81
There is now an explicit "remove true north" button to make it consistent with other buttons like remove georeferencing
blenderbim-0.7.9.240624
2024-06-24 18:21:06 +10:00
Dion Moult
7a36c05c30
Implement WCS consideration in XYZ <-> ENH conversions.
2024-06-24 18:21:06 +10:00
Dion Moult
ac58e6b8b2
Minor fix to new collection organisation for drawings
2024-06-24 18:21:06 +10:00