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
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
31e556c0b2
set previous active style and context values editing material's style
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
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
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
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
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
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
Massimo Fabbro
2f75b7edf8
Minor fix
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
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
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
Massimo Fabbro
65a5c2c1f5
Small refactor clone opening operator in order to better understand and reuse it rebase
2024-04-16 11:35:31 +02:00
Gorgious56
1f10b2415e
Assigning an ifc class to an object now displays a message if the object is not in OBJECT mode
2024-04-16 11:35:31 +02:00
Andrej730
10ef4293f3
fixed bug removing representation item
...
if you'd click on "remove item" button for some item it wouldn't remove the corresponding item but would go for removing active item instead
2024-04-16 11:29:00 +02:00
Andrej730
ad76c3ae82
some refactor for bbim drawings svg serialization
...
Made some changes to svg serialization code by moving chunks of code so `.generate_linework()` will be easier to read
- moved gathering linework contexts to a separate method
- moved common code for elements serialization to a function
- replaced self.yield_from_iterator(it) with it.__iter__
Functionally code is exactly the same.
2024-04-16 11:28:59 +02:00
Andrej730
7d31791034
Fixed error adding a boolean
...
It occured if active object was IFC object and second selected object was just Blender object.
2024-04-16 11:28:59 +02:00
Andrej730
6d07a157a9
black format
2024-04-16 11:28:59 +02:00
Andrej730
cdf866dc81
Fix test Model.get_manual_booleans after we added pset to store them
2024-04-16 11:28:59 +02:00
Andrej730
5d020f36d3
Fix #4267 and add tests
...
Crash was caused by unmark_manual_booleans accessing boolean element after they were deleted from IFC
2024-04-16 11:28:59 +02:00
Andrej730
af593b6663
Update ui.py
2024-04-16 11:28:59 +02:00
Andrej730
1e96df4311
display active representation presentation layer in UI
...
example - https://i.imgur.com/mpnoqPH.png
2024-04-16 11:28:59 +02:00
Andrej730
a4d6b2cab3
Small presentation layers UI fixes
2024-04-16 11:28:59 +02:00
Andrej730
8091b25fcd
access layer assignments from inverse attribute instead of going through representation inverses
2024-04-16 11:28:59 +02:00
Andrej730
fd48196bcb
test for removing representation items
2024-04-16 11:28:59 +02:00
Andrej730
de63a8086b
UI to remove representation items
...
example - https://i.imgur.com/jJDpIQP.png
2024-04-16 11:28:59 +02:00
Andrej730
5de1dc115c
tests for creating shape aspects and adding items
2024-04-16 11:28:59 +02:00
Andrej730
caa1181c02
create new shape aspects from UI
...
example - https://i.imgur.com/BJJZWrC.png
2024-04-16 11:28:59 +02:00
Andrej730
fcbbeffc01
edit shape aspect attributes from UI
...
example - https://i.imgur.com/SzUEn6r.png
2024-04-16 11:28:59 +02:00
Andrej730
fb9f830cf0
Fix #4262 after 0da3270c7
2024-04-16 11:28:59 +02:00
Andrej730
ab704aeb01
UI for changing representation item's shape aspect
...
Example - https://imgur.com/a/tN7hCYz
2024-04-16 11:28:59 +02:00
Andrej730
70472787bf
operator to remove representation item from shape aspect
2024-04-16 11:28:59 +02:00
Andrej730
bd5c650774
Simple UI to display repr item shape aspect
...
Example - https://i.imgur.com/YEAE9zU.png
2024-04-16 11:28:59 +02:00
Andrej730
7cb08a93a8
BBIM to print console errors in case IFC file is failed to load
2024-04-16 11:28:59 +02:00
Andrej730
947ae02ab9
black format
2024-04-16 11:28:59 +02:00
Bruno Postle
1136ef374c
IfcGit avoid leaving stray .git/config.lock files
2024-04-16 11:28:59 +02:00