Commit Graph

13373 Commits

Author SHA1 Message Date
Gorgious56 f2dd6a6fc1 Trying to edit a railing modifier path while modifying the parameters is now prevented and user is informed with a tooltip 2024-04-16 10:05:08 +02:00
Gorgious56 332db04aa5 Fix IfcRailing modifier support spacing <= 0 would throw an error, and deactivate support spacing field if manual support is selected 2024-04-16 10:05:08 +02:00
Thomas Krijnen 4940f95d7a 2dc4bbf8cd Apply same logic for derived attributes 2024-04-16 10:05:08 +02:00
Dion Moult d29f0f171c Override Ctrl-N new file menu to make it easier to start new projects and new IFC icon. 2024-04-16 10:05:08 +02:00
Andrej730 acc5ca339f Using EPset_Drawing data instead of camera props on drawing print #3396
Previously if you change `HasUnderlay` in pset it caused errors because camera properties `has_underlay` wasn't updated.
Still some work need to be done for updating keep camera properties in sync with pset - probably we can should call something like `tool.Drawing.import_drawing()` on EPset_Drawing edit
2024-04-16 10:05:08 +02:00
Dion Moult 4359769d54 See #3411. Sheets are now sorted alphabetically by default. 2024-04-16 10:05:08 +02:00
Dion Moult 4eba6bd6c0 See #3016. Scene shading styles are now stored as part of the drawing style. 2024-04-16 10:05:08 +02:00
Dion Moult a81a48dc75 Update splash image to be centered 2024-04-16 10:05:07 +02:00
Dion Moult ac0f432190 Fix #3410. Minor regression when moving UI to properties panel. 2024-04-16 10:05:07 +02:00
Dion Moult a99f1e15cb Add support for Point representations too, not just point cloud. 2024-04-16 10:05:07 +02:00
Dion Moult 4ed1eedbfc Fix bug where all grouped annotations were excluded when opening models, whereas we only want drawing annotations to be excluded. 2024-04-16 10:05:07 +02:00
Massimo Fabbro d68294d420 Fix bug where drawing decimal places couldn't be 0. Now it's possible to define 0 as value 2024-04-16 10:05:07 +02:00
Dion Moult 8f555db5a4 Forgot to commit updated IfcTester test suite 2024-04-16 10:05:07 +02:00
Dion Moult 52ef8a6042 Fix critical undo sync bug related to invoking instead of executing. See notes.
Currently, the undo system works by wrapping the execute operator. What was not considered was that execute() isn't the only entry point to operators. Operators can be invoked. If an invoked operator calls a bpy.ops.bim.something in its invoke() function, then bpy.ops.bim.something will start and finish its own transaction, and then when the invoke finishes and finally runs execute(), another transaction will be started and finished. This means that we get at least one extra transaction logged (one per any call to bpy.ops.bim.foo in invoke()).

This mismatch of number of transactions and undo stack means that when the user presses ctrl-z, the undo doesn't actually occur. This leads to a sync bug.

To be safe, all IFC invokes must be wrapped. This will take some time to review so expect another commit soon.
2024-04-16 10:05:07 +02:00
Dion Moult 05a3a33a9a Drawing panels now moved to the drawings and documents "tab" 2024-04-16 10:05:07 +02:00
Dion Moult ea44fa8b89 Update IfcTester to comply with latest modifications to IDS XSD. 2024-04-16 10:05:07 +02:00
Dion Moult 2dbb566072 Visual clean up of annotation tool to only activate when a drawing is active and have a type manager similar to the BIM tool. 2024-04-16 10:05:07 +02:00
Dion Moult 17d9ddd57d Update tool icons to all use the same underlying "cube" shape and add bracing for structural icon and background walls for spatial icon. 2024-04-16 10:05:07 +02:00
Bruno Perdigão 81504ebb29 recreate decompositions in Refresh operator 2024-04-16 10:05:07 +02:00
Bruno Perdigão 9b89263ad6 changed keymap 2024-04-16 10:05:07 +02:00
Bruno Perdigão e580269c75 clear BIMObjectPropertis.collection after duplication 2024-04-16 10:05:07 +02:00
Bruno Perdigão d25fcb8fbf initial commit 2024-04-16 10:05:07 +02:00
Dion Moult daf3c6dffc Fix #3390. Type products should not be set in the model interface. 2024-04-16 10:05:07 +02:00
Thomas Krijnen d6250aaf2a #3189 proposal (#3190) 2024-04-16 10:05:07 +02:00
Bruno Perdigão 8b71db92e2 removed total_items from the operator 2024-04-16 10:05:07 +02:00
Bruno Perdigão a4c90d8b53 implementation of #3332 2024-04-16 10:05:07 +02:00
Dion Moult 02bca5a622 Fix #3402. Activate drawing no longer affects the visibility of non-IFC objects. 2024-04-16 10:05:07 +02:00
Dion Moult 8977d37ccd Fix #3403. Templates must be specific to the version you are creating. 2024-04-16 10:05:07 +02:00
Dion Moult 8c1214e8c4 Start mocking up our own property "tabs" with the intention to use this new tab system instead of Blender property tabs
Blender property tabs are hardcoded and we cannot customise them. IFC data only "somewhat" maps to Blender property tabs, and some things fail to map causing user confusion. For example material and styles are very confusing. Also scene and object properties are crazy overpopulated (see how many times IFCArchitect bulk collapses things). And this also causes things to be spread out and lost (e.g. some random panels in viewport N menu). This should give us a lot more control to organise panels exactly how we want them.
2024-04-16 10:05:07 +02:00
Dion Moult 387bf6aa58 Workspace inspired by IFCArchitect's layout is now setup by default and irrelevant Blender scene panels are hidden. You can disable this behaviour for advanced users, or use your own workspace layout but at least now there is a better "BIM-optimised" layout.
The layout uses three columns with a focus on a larger outliner (important as BIM models have lots of objects and complex hierarchies!) and properties, and removes the mostly irrelevant timeline for beginners.
2024-04-16 10:05:07 +02:00
Dion Moult 44ff5b12cd You can now create, open, and save projects from the file menu, with simple project presets. Also the scene is cleared so no more manual cube / light / camera deletion. Also poll prior to saving. No more import / export menu to confuse users.
https://imgur.com/a/EIt2H5b
2024-04-16 10:05:07 +02:00
Dion Moult 8e053de4e5 Delete old annotation panel in favour of annotation tool 2024-04-16 10:05:07 +02:00
luzpaz 1819a45e4c Fix various typos in src/ifcgeom* subdirs 2024-04-16 10:05:04 +02:00
Andrej730 3b6f79cc75 black format 2024-04-16 12:18:05 +05:00
Dion Moult 1e41561fe8 Fix #4345. Removing grid axes are now handled specially. 2024-04-16 16:43:02 +10:00
Dion Moult 23abf674f3 Minor fix blenderbim-240416 2024-04-16 14:54:36 +10:00
Dion Moult ac64d0c400 Fix #3581. Invalid new document references. 2024-04-16 08:06:10 +10:00
Richard Brice e946e34823 Apparent fix to cant placement matrix 2024-04-15 12:41:36 -07:00
Dion Moult 0983f9e66d Fix bug where saved drawing filters didn't load in the UI. 2024-04-15 23:33:10 +10:00
Dion Moult 5725ed867f Don't unnecessarily update NTS or scale pset data 2024-04-15 23:33:10 +10:00
Dion Moult 4174a78bb5 #4553 2024-04-15 23:33:10 +10:00
Andrej730 96b0a241d9 add tests for get_referenced_structures 2024-04-15 17:24:31 +05:00
Andrej730 ff76850a54 ifcopenshell.util.element.get_structure_referenced_elements 2024-04-15 17:24:31 +05:00
Andrej730 9954e073fa constraint.assign_constraint to handle owner history 2024-04-15 17:24:31 +05:00
Andrej730 5da68721d6 document.unassign_document - support batching #4474 2024-04-15 17:24:31 +05:00
Andrej730 097f44284f document.assign_document - support batching #4474 2024-04-15 17:24:31 +05:00
Andrej730 1f605484d9 library.unassign_reference - support batching #4474 2024-04-15 17:24:31 +05:00
Andrej730 81dcad6a14 library.assign_reference - support batching #4474 2024-04-15 17:24:31 +05:00
Andrej730 03af1013a0 add tests for util.element.get_referenced_elements 2024-04-15 17:23:25 +05:00
Andrej730 144831f9ee classification.remove_reference - support batching #4474 2024-04-15 17:23:24 +05:00