Commit Graph

2454 Commits

Author SHA1 Message Date
Dion Moult ada978ed1f Toggle between full schema (i.e. all tables for every declaration) and partial schema dump into SQL 2024-04-15 11:44:55 +02:00
Bruno Postle 84cd96a48d BlenderBIM operator to delete a Git remote (#3096) 2024-04-15 11:44:55 +02:00
Bruno Postle 567ad3bf63 BlenderBIM fix warning writing .git/config (#3096) 2024-04-15 11:44:55 +02:00
Andrej730 8ac1bc6900 IfcGitData update to ifcgit operators poll() methods
Added loading IfcGitData to ifcgit operator's poll() methods because it was getting a bit spammy in console if you don't use git.

Traceback (most recent call last):
  File "\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 255, in poll
    if IfcGitData.data["ifcmerge_exe"]:
KeyError: 'ifcmerge_exe'
Traceback (most recent call last):
  File "\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 147, in poll
    repo = IfcGitData.data["repo"]
KeyError: 'repo'
Traceback (most recent call last):
  File "\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 18, in poll
    path_ifc = IfcGitData.data["path_ifc"]
KeyError: 'path_ifc'
Traceback (most recent call last):
  File "\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 45, in poll
    path_ifc = IfcGitData.data["path_ifc"]
KeyError: 'path_ifc'
Traceback (most recent call last):
  File "\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 190, in poll
    repo = IfcGitData.data["repo"]
KeyError: 'repo'
Traceback (most recent call last):
  File "\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 111, in poll
    repo = IfcGitData.data["repo"]
KeyError: 'repo'
2024-04-15 11:44:55 +02:00
Andrej730 dfe7421dab External Styles
Added support for external blender styles that will be saved to ifc.
What it basically means that you can append material from external .blend file as a style that can be loaded in your blender material anytime.

1) External style can be added in Material Tab
https://i.imgur.com/BYfesi5.png

Note that you select material name at the right side of file selecting panel:
https://i.imgur.com/mvqaaod.png

2) After adding external style you can switch between external and other surface styles:
https://i.imgur.com/YtCz8an.png

3) There is also option to switch styles to External for all objects in the scene:
https://i.imgur.com/u3zTcX9.png

Some other changes:
- some ui adjustments
- moved functions that create blender shaders to tool.Loader (they also reset shader graph now so it's possible to use them on non-default blender materials)
- some new tools for copying node graph from one material to another, appending data blocks
- new operator for browsing external styles can be reused later to append other data blocks
2024-04-15 11:44:55 +02:00
Dion Moult a4224b104d Experimental support for storage of IFC in MySQL and SQLite 2024-04-15 11:44:55 +02:00
Nelson Henrique f31132b24e implements fileselect to export_cost_schedules 2024-04-15 11:17:03 +02:00
Andrej730 66bd1d0d5f Fixed small error on disabling editing extrusion axis 2024-04-15 11:17:02 +02:00
Dion Moult 2c4227384d Fix bug where you couldn't unassign inherited materials. 2024-04-15 11:07:37 +02:00
Dion Moult 408115b94b Fix sync bug where unused styles would be purged when reloading a blender file. 2024-04-15 11:07:37 +02:00
Bruno Postle 6c45936118 BlenderBIM fix Git error on simple merge (#3096)
Running git commit after a simple merge (that hasn't required conflict
resolution) is a noop, but generates an annoying message anyway.
2024-04-15 11:07:37 +02:00
Dion Moult 1eb1ba604e Fix #3272. See #3069. Fix incorrect refactoring when I was decoupling collections. 2024-04-15 11:07:37 +02:00
Gorgious56 e5003651ed Fix error when going out of edit mode with TAB when editing an arbitrary profile 2024-04-15 11:07:37 +02:00
Gorgious56 2008868e0e Fix profile based geometry not re-generating properly when exiting edit mode and the profile geometry wasn't modified 2024-04-15 11:07:37 +02:00
Martin15135215 d3ea921165 Update author in CITATION.cff 2024-04-15 11:07:37 +02:00
Martin15135215 e32de7350d CITATION.cff file for BlenderBIM 2024-04-15 11:07:37 +02:00
Andrej730 374f411b59 ids/classes namespaces for drawings in the sheet #3047
Now we add some prefix based on drawing id to each id in the drawing and also add this prefix as a class and add it to all css selectors.
Reason for that so each drawing on the sheet can have it's own set of styles that won't be affecting other drawings.
Example - https://i.imgur.com/kqRCwJW.png
2024-04-15 11:04:27 +02:00
Dion Moult 2896c23143 Add support for Pandas DataFrames in IfcCSV and clean up function signatures 2024-04-15 11:04:26 +02:00
Bruno Postle 482f97961d BlenderBIM fix Git merge log history (#3096)
The GitPython commit() method isn't suitable for completing a merge as
it only sets one parent, losing all history from the merged branch.
2024-04-15 11:04:26 +02:00
Gorgious56 9ec43b7d9e Revert unselect non-ifc object using TAB 2024-04-15 10:59:03 +02:00
Gorgious56 4def4c2445 Fix wall mounted handrail railing modifier not regenerating properly when going out of edit mode with the tab key if the path wasn't modified 2024-04-15 10:59:03 +02:00
Dion Moult 7437f0d20c Fix #3226. There is now a faster deletion mode that kicks in for large models and large geometry deletions. 2024-04-15 10:59:03 +02:00
Andrej730 c94adb7980 Fixed #3259 2024-04-15 10:59:03 +02:00
Bruno Postle 641962f0e0 BlenderBIM use git shortlog to summarise merge log 2024-04-15 10:59:03 +02:00
Gorgious56 9180fdce5a Edit profile based representations with TAB (#3142)
* You can now edit profile based representations with TAB

* Minor fix

* Minor fix

* You can now edit parametric railing paths with TAB
Still not sure about the implementation though

* use shortcut instead of direct link to railing edition

* Add utility to check if a mesh is profile based or its representation is a swept solid

* Fix bug when trying to edit an empty object

* Prevent editing door, window and stair modifiers since they're fully parameterized by the modifier properties

* You can now edit roof modifier, railing modifier and various profile based objects

* You can now edit axis profile based objects
2024-04-15 10:59:03 +02:00
Andrej730 940d999bf4 Solved #3219 2024-04-15 10:59:03 +02:00
Andrej730 2db82371bd Display units for more pset/qset props #3235
Now current project units displayed for area and volume properties too.
https://i.imgur.com/7dgl1pC.png
Also added support for imperial units symbols.
2024-04-15 10:59:03 +02:00
Andrej730 0874320935 small note for unsupported pset prop types 2024-04-15 10:59:03 +02:00
Andrej730 6665dd7e92 Add to scene properties whether we use relative path to .ifc #3251
Previously it was stored as operator's prop which is (turned out) reseted on reopening .blend.
2024-04-15 10:59:03 +02:00
Andrej730 4d171c17a8 Small fix for 1f43ec870
Was getting this error at project start:

Traceback (most recent call last):
  File "\scripts\addons\blenderbim\bim\module\project\operator.py", line 332, in execute
    return IfcStore.execute_ifc_operator(self, context)
  File "\scripts\addons\blenderbim\bim\ifc.py", line 410, in execute_ifc_operator
    result = getattr(operator, "_execute")(context)
  File "\scripts\addons\blenderbim\bim\module\project\operator.py", line 345, in _execute
    self.import_type_from_ifc(element, context)
  File "\scripts\addons\blenderbim\bim\module\project\operator.py", line 374, in import_type_from_ifc
    collection_obj = collection.BIMCollectionProperties.obj
AttributeError: 'LayerCollection' object has no attribute 'BIMCollectionProperties'
2024-04-15 10:59:03 +02:00
Andrej730 47ed33cba0 small fix for syntax warning after 4865b62ea
SyntaxWarning: "is not" with a literal. Did you mean "!="?
2024-04-15 10:59:03 +02:00
Andrej730 8933478137 Spatial/Structural Tools icons 2024-04-15 10:59:03 +02:00
Andrej730 2ab4213e01 Moving operators to Spatial Tool
Changes:
- Moved Shift A "Add boundary" from BIM Tool to Spatial Tool
- Moved Alt B "Show boundaries" from BIM Tool to Spatial Tool
2024-04-15 10:59:03 +02:00
Massimo Fabbro e7509ccc3f Fix create spaces from walls z-value (#3248)
Co-authored-by: Dion Moult <dion@thinkmoult.com>
2024-04-15 10:59:03 +02:00
Massimo Fabbro 98ba75ef52 New toggle space visibility button 2024-04-15 10:59:03 +02:00
Dion Moult b5c4b87238 Fix #3069. (Again) review all occurrences of users_collection and collection.name 2024-04-15 10:59:03 +02:00
Trashman247 e4ec8c40f0 Keep dist-info in compiling brickschema and add persistence extras 2024-04-15 10:59:03 +02:00
Bruno Postle c995d70ae1 Include commit summary of merged branches (#3096)
Git merges usually transfer the commit history, but when we resolve a
conflict with a 'mergetool' (ie. ifcmerge), this history is lost,
everything is squashed into a single commit. Now a summary of the
merged changes is appended to the merge message.
2024-04-15 10:59:03 +02:00
Bruno Postle b2568fd343 Display multi-line commit and tag messages (#3096) 2024-04-15 10:59:03 +02:00
Bruno Postle 2738aa571a Operator to delete a Git tag (#3096) 2024-04-15 10:59:03 +02:00
Bruno Postle 3bdf1a170a Operator to view selected object Git history #3096
A new BlenderBIM > Git History side-panel to show the raw Git log
for the step entity of the selected object
2024-04-15 10:59:03 +02:00
Sigma Dimensions f8f1ba0ae8 Prototype Building Storey Manager #3246 2024-04-15 10:59:02 +02:00
Sigma Dimensions 607172c51d fix draw_project_not_saved_ui for BIM documentation 2024-04-15 10:59:02 +02:00
Sigma Dimensions 157d7d3c02 You can now review and assign currencies from the Cost Schedule Panel 2024-04-15 10:59:02 +02:00
Sigma Dimensions 1d13edd747 Display currency on cost item values and total cost 2024-04-15 10:59:02 +02:00
Andrej730 f4344b9e75 Placeholders for spatial and structural tools 2024-04-15 10:59:02 +02:00
Andrej730 a57f9e984b Tests for external svg references 2024-04-15 10:59:02 +02:00
Trashman247 7a2c6c4b5f Update Makefile 2024-04-15 10:59:02 +02:00
Sigma Dimensions 9c707977a3 auto refresh tasks assigned to products when filtering by active schedule 2024-04-15 10:59:02 +02:00
Sigma Dimensions 6e3acd8c4a BBIM 5D: Various Cost Schedule UI Improvemements 2024-04-15 10:59:02 +02:00