Commit Graph

8573 Commits

Author SHA1 Message Date
Dion Moult 562c775da2 Integrate brickschema undo system into BlenderBIM Add-on undo system wrapper 2024-04-16 10:05:08 +02:00
Andrej730 88defa07ce Fixed #3412
After 949a2bb printing happens not fron N-panel (which is part of viewport) but from scene properties - so current context doesn't have region_3d anymore.

PS The same issue was there all along if you'd try to print the drawing from Camera Properties tab.
2024-04-16 10:05:08 +02:00
Andrej730 37f3ecc8c5 allow to call select/color by attribute by providing arguments
instead of always checking scene.BIMSearchProperties. This allows to add different setups of selections to quick favorites
2024-04-16 10:05:08 +02:00
Dion Moult e451844e13 Implement Ctrl-Tab in properties to conveniently toggle between two tabs. 2024-04-16 10:05:08 +02:00
Dion Moult e72396585f Move built-in scene panels to a dedicated "Blender Properties" tab instead of unregistering permanently. 2024-04-16 10:05:08 +02:00
Andrej730 01ebb649d9 Library for US AISC15 Steel Profiles #3203 2024-04-16 10:05:08 +02:00
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
Dion Moult 3e7afbed08 Minor doc improvements and SQL/stream code cleanup 2024-04-15 13:30:42 +02:00
Dion Moult bb7a73feac Fix #3394. Fix bug where railing and roof type names were hardcoded. Also improve UI of create type form so you can actually read the fields. 2024-04-15 13:30:42 +02:00
Dion Moult cb412c78b5 Fix #3213. Internally, we should always use Unix path separators. 2024-04-15 13:30:42 +02:00
Dion Moult 7d83eb114a The user can now toggle between rotate before / after translating in OffsetObjectPlacements 2024-04-15 13:30:42 +02:00
Dion Moult c45b28e78a Fix #3016. Drawing styles that set the shading style will change shading style upon activating the style. 2024-04-15 13:30:42 +02:00
Dion Moult 8896a74d1b Fix #3121. Merge equivalent contexts when merging projects in MergeProject Ifcpatch recipe. 2024-04-15 13:30:42 +02:00
Dion Moult fac527b0fe Fix failing tests since Github test runner only has IFC4X3_ADD1 not TC1 compiled in. 2024-04-15 13:30:42 +02:00
Trashman247 73d2146a6c Remove binding namespace new project (already in schema) 2024-04-15 13:30:41 +02:00
Trashman247 0c5a8bea4e remove import BrickStore in props 2024-04-15 13:30:41 +02:00
Trashman247 301800d8ed Add brick operator accepts label parameter & add toggle for namespace editing 2024-04-15 13:30:41 +02:00
Trashman247 a28b8c1cd4 Add filter to listed namespaces (need add more aliases) 2024-04-15 13:30:41 +02:00