Dion Moult
48d058a32a
Fix #4921 . When upgrading to IFC4X3, preprocess the file to remove deprecated style assignments
2024-06-27 11:49:12 +10:00
Dion Moult
2d5be6cf89
Search replace 0.7.0 with 0.8.0
2024-06-27 11:49:12 +10:00
Andrej730
c56a4a6c9d
Fix console errors from Representations UI if non-product element is selected
2024-06-26 17:17:34 +05:00
Andrej730
832dce462e
spatial manager - fix bug with elevation not converted to si
...
Leading to issues if you would change it in non-meters project.
2024-06-26 17:17:34 +05:00
Andrej730
6f45373edd
move switch_shading method from prop to tool
2024-06-26 17:06:30 +05:00
Andrej730
d5613e0e26
typing
2024-06-26 17:06:30 +05:00
Andrej730
d0ec4fe345
core tests - print unprocessed calls in pytest verbose mode
...
e.g. if you start test with pytest test_style.py -vv it will be easier to guess why it couldn't find a call
```
E Exception: <class 'abc.Ifc'> was not called with run:
E - {'type': 'SHOULD_BE_CALLED', 'number': None, 'call': {'name': 'run', 'args': ('style.add_surface_style',), 'kwargs': {'style': 'style', 'ifc_class': 'IfcSurfaceStyleShading', 'attributes': 'attributes'}}}
E Unprocessed calls:
E - {'name': 'run', 'args': ('style.add_style',), 'kwargs': {'name': 'name'}}
E - {'name': 'link', 'args': ('element', 'obj'), 'kwargs': {}}
E - {'name': 'run', 'args': ('style.add_surface_style',), 'kwargs': {'style': 'element', 'ifc_class': 'IfcSurfaceStyleShading', 'attributes': 'attributes'}}
```
2024-06-26 16:14:00 +05:00
Andrej730
665bf00f8b
fix core.style tests #4843
2024-06-26 16:14:00 +05:00
Andrej730
2d2ca64a72
Do not use tool.Ifc.Operator if no ifc data is changed
2024-06-26 16:14:00 +05:00
Andrej730
60cb41a428
remove some props from Material.BIMStyleProperties as deprecated #4843
2024-06-26 16:13:59 +05:00
Andrej730
a69f3e8da9
remove unnecessary linking in IfcImporter.create_style #4843
...
As it's already linked by `self.link_element(style, blender_material)`
2024-06-26 16:13:59 +05:00
Andrej730
2f81cab5f1
deprecate Material.BIMMaterialProperties #4843
...
As it now stored just 1 property and it's now moved to the BIMStyleProperties.
2024-06-26 16:13:59 +05:00
Andrej730
78e81542d9
fix couple issues after ce9e4f285 #4843
...
1) BBIM was failing to unregister properly.
2) Failed to link materials on load.
3) Failed to purge IFC file.
4) Error changing style name
2024-06-26 16:13:59 +05:00
Dion Moult
de00429df6
Make version in bot build download dynamic
2024-06-26 17:14:57 +10:00
Dion Moult
3aba82f608
Ensure all project feature tests pass
2024-06-26 17:14:39 +10:00
Dion Moult
cb85b690e7
Bump bot build
2024-06-26 17:09:58 +10:00
Vanuan
527742ca93
Basic IFC concepts
2024-06-26 14:50:32 +10:00
Dion Moult
d892ad956c
See #4826 . Fix Qto calculator which assumes that openings have a predefined type (in IFC2X3 they don't)
2024-06-26 12:03:08 +10:00
Vanuan
ac42ed7bab
Blender docs: More stubs, walls, doors, windows
2024-06-26 11:55:02 +10:00
Dion Moult
bf677b839d
Only get bot build binaries and use latest python to fix latest install issues
2024-06-26 10:24:32 +10:00
Dion Moult
464815b045
Update drawing generator to use v0.8.0 settings syntax
2024-06-26 09:20:46 +10:00
Andrej730
f364643d7e
fix assigning material usages / reloading reprs after c4ae9578e #4843
2024-06-25 18:30:52 +05:00
Andrej730
ef9bbd8de6
deprecate shading_checksum #4843
...
Changing diffuse color for Blender material now won't change the linked IFC style.
Since now all style parameters for styles are changed through styles UI and users shouldn't use Blender materials tab unless they want to do something advanced (though they are still currently can use it to assign material styles to the specific faces).
PS 1 less thing to sync 🥳
2024-06-25 18:30:52 +05:00
Andrej730
8172096a5b
Do not directly access IfcStore.edited_objs
2024-06-25 18:30:52 +05:00
Andrej730
46d3d3afe1
calculate materials checksum in a common method
2024-06-25 18:30:52 +05:00
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
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
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
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
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
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