Andrej730
284df2e484
update representation item style on editing/removing shape aspect
...
Example - https://imgur.com/a/2SxgSRH
2024-04-16 13:28:46 +02:00
Andrej730
dd27107be8
style.assign_representation_styles to replace previously assigned styles
...
as probably in the most cases user would want 1 style per 1 representation item
After this it's finally possible in BBIM to assign styles to representation items through the materials: https://imgur.com/a/cgiJ1KV
2024-04-16 13:28:46 +02:00
Andrej730
0d251260d8
MaterialCreator - minor refactor for code readibility
2024-04-16 13:28:46 +02:00
Andrej730
8a3934b32b
fix error in data.py occurring if object has no material
2024-04-16 13:28:46 +02:00
Andrej730
05aed7036e
show error message removing material that is used in material sets
...
previously it wasn't showing anything when you would try to remove a material
2024-04-16 13:28:46 +02:00
Andrej730
7966ffa2a4
BBIM - update related representations on assigning style to material
2024-04-16 13:28:46 +02:00
Andrej730
17da72232d
unassign_material_style to handle constituents
2024-04-16 13:28:46 +02:00
Andrej730
c7ca87f9c4
api.unassign_representation_styles
2024-04-16 13:28:46 +02:00
Andrej730
f22369b960
assigning material styles to reuse existing styled item + tests
2024-04-16 13:28:46 +02:00
Andrej730
46eae7a7d2
assign_representation_styles to reuse existing styled item + tests
2024-04-16 13:28:46 +02:00
Andrej730
cb51b8da49
style.assign_material_style small optimization
2024-04-16 13:28:46 +02:00
Andrej730
31e556c0b2
set previous active style and context values editing material's style
2024-04-16 13:28:45 +02:00
Andrej730
ad33794945
descriptive error for missing user or application in ifc2x3 #4340
2024-04-16 13:28:45 +02:00
Andrej730
ec107d2f7f
fixed bug migrating attributes to older ifc version (after 8728fa3)
2024-04-16 13:28:45 +02:00
Andrej730
356c81e80f
black format
2024-04-16 13:28:45 +02:00
Andrej730
0077036716
Fix issues editing work time in ifc4x3 #4295
2024-04-16 13:28:45 +02:00
Andrej730
89da2b3b7d
IFC4.3 test bootstrap
2024-04-16 13:28:45 +02:00
Andrej730
3dc7951a3e
Default Blender filepath hotkeys for .ifc filepath
...
Example - https://i.imgur.com/Mk6mkuP.png
E.g. alt-click now opens .ifc directory and shift-click opens .ifc with default software associated with .ifc files.
Should be cross-platform but tested only on Windows
Added this code to tool.Blender so it can be reused for other operators invoking file browsing window.
2024-04-16 13:28:45 +02:00
Andrej730
45a23d9371
style.assign_material_style to assign style to related shape aspects
2024-04-16 13:28:45 +02:00
Andrej730
c76a5a7ee7
promote get_shape_aspects to util.element method
2024-04-16 13:28:45 +02:00
Andrej730
c918497df2
get material constituents from cache and filter active element material
2024-04-16 13:28:45 +02:00
Andrej730
eebe7d596d
disable editing rep item style if it comes from material constituent through shape aspect
2024-04-16 13:28:45 +02:00
Thomas Krijnen
5c60c2e35b
CMakeLists.txt pre 2.37 compat
2024-04-16 13:28:42 +02:00
Ryan Schultz
09f54709e6
deleted extraneous variables
2024-04-16 13:27:40 +02:00
Ryan Schultz
9bfe417cfb
Select in any order, when assigning relating_product
2024-04-16 13:27:40 +02:00
Thomas Krijnen
e3867a118c
IfcConvert --keep-bounding-boxes option, default is now exluded. #4012 #2138 #2044 #4032
2024-04-16 13:27:16 +02:00
Andrej730
3a9c023d33
Fix issue editing object placement that shares it's axis placement with other placements
...
If multiple object placements were reusing the same IfcAxis2Placement then editing one of them would remove IfcAxis2Placement ignoring it's inverse references making all other object placements invalid.
2024-04-16 11:38:49 +02:00
Andrej730
16eba637f1
fix errors getting layer assignments in ifc2x3 #4330
2024-04-16 11:38:49 +02:00
Andrej730
8b360742a7
sort representation items in ui based on shape aspect
...
- display shape aspect along with the repsentation type
- sort representation items based on shape aspects name, items without shape aspects come last
2024-04-16 11:38:49 +02:00
Andrej730
ae47de8851
Fix #4319
...
StringProperty search keyword was introduced only in Blender 3.3
2024-04-16 11:38:49 +02:00
Gorgious56
27349290b7
Fix section cut planes not working anymore on Blender < 4.0.0
2024-04-16 11:38:49 +02:00
krande
288455416b
add missing typename
2024-04-16 11:38:46 +02:00
Gorgious56
73ae2b7055
#4308 : Fix section cutaway shader links incorrectly linking when removing a section
2024-04-16 11:38:20 +02:00
Gorgious56
fc2009d000
Fix #4308 : Section cutaway shader : Update API for 4.0 breaking changes + draw line decorator for more than one section cutaway
2024-04-16 11:38:20 +02:00
Andrej730
f522e2beb7
some typing
2024-04-16 11:38:20 +02:00
Andrej730
075b9e4775
Fix bug in ExtractElements recipe adding a lot unrelated products
...
if you'd add a type product and it had material that were used in bunch of ther products
example - https://community.osarch.org/discussion/1965/error-extracting-ifcslab-or-ifccolumn
2024-04-16 11:38:20 +02:00
Massimo Fabbro
2f75b7edf8
Minor fix
2024-04-16 11:38:20 +02:00
Andrej730
80dcbb2e46
fix bugs in c5c7363a9
2024-04-16 11:38:20 +02:00
Andrej730
1e4693346a
fix project name for IfcAdvancedHouse
2024-04-16 11:38:20 +02:00
Andrej730
c706ae0292
UI info message when patch execution was finished
2024-04-16 11:38:20 +02:00
Andrej730
f61738112e
ifctester Attribute.filter not to check subtypes attributes
...
if attribute is already found in the super type
2024-04-16 11:38:20 +02:00
Andrej730
e5b63853ef
Fix #4314
...
It was looking for IFC entities with the attribute from Attribute.name but wasn't considering ifc subclasses that inherit from that entity.
2024-04-16 11:38:20 +02:00
Andrej730
41996daaa7
ifctester - some typing
2024-04-16 11:38:20 +02:00
Andrej730
e5810dbc7c
CMake - disable optimization for RelWithDebInfo with ENABLE_BUILD_OPTIMIZATIONS=Off
2024-04-16 11:38:16 +02:00
Andrej730
dea29a3ec7
Fixed #4310
2024-04-16 11:35:32 +02:00
Andrej730
317dbc0ab8
Fix bug removing relating object of IfcRelNests
...
it was unlinking current collection of the related object and related objects were missing after
2024-04-16 11:35:31 +02:00
Andrej730
e289f23c40
root.remove_product - fix some cases producing invalid ifc #4313
...
always remove IfcRelNests
1) if product is RelatingObject
2) if product is the only RelatedObject
2024-04-16 11:35:31 +02:00
Ryan Schultz
53cc393697
proposed fix for #4311
2024-04-16 11:35:31 +02:00
Massimo Fabbro
6c9383d968
See #4007 . Now clone opening works also when a opening hosts a window or a door
2024-04-16 11:35:31 +02:00
Massimo Fabbro
2a52f0fadd
Clone opening now deletes also old opening placement
2024-04-16 11:35:31 +02:00