Commit Graph

7862 Commits

Author SHA1 Message Date
Andrej730 ed1f35c09c restoring selection on bim.override_mode_set_edit if nothing worked
it was a bit confusing when you're trying to edit some object, you get error message but you also lose object selection
2024-04-15 09:37:48 +02:00
Andrej730 1ebb018187 Fixed bug with roof created in projects with milimeters units
the problem was that operators were converting angle using SI and angle was set to 10000
2024-04-15 09:37:48 +02:00
Andrej730 e3a64788ef Fixed error in PLAN_LEVEL elevation value in printed svgs #2961
Also added more precision to inPerFoot in helper.format_distance to avoid this a bit annoying precision problem where format function keeps adding 1/256"

Without precision - https://i.imgur.com/D9WYjvJ.png
With precision - https://i.imgur.com/3XgOFSH.png
2024-04-15 09:37:48 +02:00
Andrej730 c20f9eaffd Changed roof preview colors and it's now transparent
Changed roof preview colors to the same as openings
2024-04-15 09:37:48 +02:00
Andrej730 5707d8245f fixed mistake in tool.Blender.apply_bmesh
was resulting in error when you apply roof path
2024-04-15 09:37:48 +02:00
Andrej730 37949a0d80 Added checkboxes to drawing list to mark multiple selected drawings
Checkboxes affect the drawings that will be used when you shift click "Create drawing", "Open Drawing", "Remove Drawing". Previously those opeartors were always applying the action to all drawings.

Also added option to remove selected drawings with shift+click to "Remove Drawing" and added new operator "Select all drawings" to select drawings in one click (you can shift click it to delsect all drawings).

Example - https://i.imgur.com/GAGghu5.png
2024-04-15 09:37:48 +02:00
Dion Moult 759a5a6b86 Fix bug where invalidly mapped representations shouldn't be edited. 2024-04-15 09:37:48 +02:00
Thomas Krijnen 7a82dbeaf4 Some small fixes for rule compliance in template.py 2024-04-15 09:34:22 +02:00
Dion Moult a9817d83c3 Fix #2947. Embarrassing bug where slabs didn't consider the total thickness. 2024-04-15 09:25:51 +02:00
Dion Moult d021871904 Fix #2948. Bug where IFC array tool didn't track undo properly causing crashes. 2024-04-15 09:25:51 +02:00
Dion Moult e898e91ad6 See #2516. Titleblocks dropdown now also shows project titleblocks. 2024-04-15 09:25:51 +02:00
Dion Moult ba8e6288bc Fix #2955. You can now store default paths in a project pset. 2024-04-15 09:25:51 +02:00
Dion Moult 401021ac23 See #2516. Fix issue where getting sheet layout URIs were not explicit. 2024-04-15 09:25:51 +02:00
Trashman247 d3b6802589 Reformat parametrized "Save" in IFC project (again) 2024-04-15 09:25:51 +02:00
Trashman247 ab02ac3dda Reformat parametrized "Save" in IFC project 2024-04-15 09:25:51 +02:00
Trashman247 69b74cb4c5 Add dynamic tool tip for parametrized "Save" in IFC project 2024-04-15 09:25:51 +02:00
Thomas Krijnen fdf0596e42 Property transfer ownership of schema from py to c++ upon register_schema() 2024-04-15 09:25:51 +02:00
Thomas Krijnen b7ded0eb79 Attempt load schema from cwd (IS THIS DANGEROUS?) 2024-04-15 09:25:50 +02:00
Thomas Krijnen 7981eb473b Don't fail on unmapped attribute types (IFC4.4) 2024-04-15 09:25:50 +02:00
Andrej730 ffdaa8c417 Fixed error on disabling BlenderBIM addon
Error was occuring because macros doesn't have `is_registered` attribute.

Error: Traceback (most recent call last):
  File "C:\Software\Steam\steamapps\common\Blender\3.5\scripts\modules\addon_utils.py", line 421, in disable
    mod.unregister()
  File "\scripts\addons\blenderbim\__init__.py", line 45, in unregister
    blenderbim.bim.unregister()
  File "\scripts\addons\blenderbim\bim\__init__.py", line 192, in unregister
    if cls.is_registered is not False:
AttributeError: type object 'OverrideDuplicateMoveMacro' has no attribute 'is_registered'

Still getting some other error on disabling the addon, seems to happen due ongoing drawing system restructure.
Error: Traceback (most recent call last):
  File "C:\Software\Steam\steamapps\common\Blender\3.5\scripts\modules\addon_utils.py", line 421, in disable
    mod.unregister()
  File "\addons\blenderbim\__init__.py", line 45, in unregister
    blenderbim.bim.unregister()
  File "\addons\blenderbim\bim\__init__.py", line 177, in unregister
    if bpy.data.scenes['Scene'].BIMProperties.module_visibility['drawing'].is_visible:
KeyError: 'bpy_prop_collection[key]: key "drawing" not found'
2024-04-15 09:25:50 +02:00
Dion Moult 4e94d0dc10 Fix #2516. Add/build/remove/view/rename/copy sheet/drawing/schedule now all references and updates user configurable relative paths. 2024-04-15 09:25:50 +02:00
Dion Moult fd989733c7 Fix bug where unassigning a document was too aggressive and deleted relationships where it shouldn't. 2024-04-15 09:25:50 +02:00
CyrilWaechter f8923709f6 Add ifczip and ifcxml to x-ifc mime-type 2024-04-15 09:25:50 +02:00
Nathan Hild ec1af01545 Correct tooltip messages for enabling and disabling edit buttons 2024-04-15 09:25:50 +02:00
Andrej730 6f5e39849a Including/Excluding IfcAnnotations from drawing #2903
Including or excluding elements from the drawing using EPset_Drawing.Include/Exclude now also works for IfcAnnotation elements. Both in viewport (on "activate view") and on svg print.

Related change - annotation decorations are now hidden in viewport if their object is hidden.
2024-04-15 09:25:50 +02:00
Andrej730 deacc91470 Fixed errors from 9bca705 2024-04-15 09:25:50 +02:00
Andrej730 113a7ab7dd Make BIM Tool alignment buttons clickable and some hotkeys code cleanup 2024-04-15 09:25:50 +02:00
Dion Moult c881ed655c Fix #2960. 2024-04-15 09:25:50 +02:00
Massimo Fabbro ff97aa00ed Better fix about cls without is_registered method 2024-04-15 09:25:50 +02:00
Massimo Fabbro 17fc46a732 Fix bug related to operators without is_registered method 2024-04-15 09:25:50 +02:00
Dion Moult d1e8b4a4a0 Document list now shows description and locations instead of names as names are inherited. 2024-04-15 09:25:50 +02:00
Dion Moult 47709662b9 See #2516. References to titleblocks, layouts, and published sheets are now explicitly stored. Titleblock paths are now configurable. Generated filenames are sanitised. 2024-04-15 09:25:50 +02:00
Andrej730 1bcda4c05a Prevent flickering for SectionLevel and Grid decorators 2024-04-15 09:25:50 +02:00
Dion Moult f1c8e7d984 Fix #2959. Oversight when disabling mesh edit mode. Edit grid axes should be allowed. 2024-04-15 09:25:50 +02:00
Dion Moult 2e466ead37 See #2516. WARNING: breaking changes! Restructure drawing system to use relative paths based on IfcDocumentReference Locations. 2024-04-15 09:25:50 +02:00
Andrej730 5864873945 Solved producing orphan objects data on drawing deletion 2024-04-15 09:25:50 +02:00
Andrej730 cc34e16c6b Updating sheet name from UI #2950 2024-04-15 09:25:50 +02:00
Thomas Krijnen 788f1154da #2685 Fix AttributeError 2024-04-15 09:25:50 +02:00
Andrej730 638eb34680 annotation and gizmo shaders rework for smoothed lines without bgl #2897
Reworked annotation and gizmo shaders to work without `bgl` and support smooth lines.

Moved LIB_GLSL and DEF_GLSL to shaders module since it's basically the same code and this way it'll be easier to keep track of it.
2024-04-15 09:25:50 +02:00
Dion Moult 5e9e666484 Minor improvement to add error message when mirror elements called without a mirror axis. 2024-04-15 09:25:50 +02:00
Bruno Perdigão 7b1c2ef3d4 minor fix, sets a minimum to 'count' 2024-04-15 09:25:50 +02:00
Bruno Perdigão b1538cbb25 Fix #2937. IFC Array now have the option to sync children 2024-04-15 09:25:50 +02:00
Sigma Dimensions 827b0fe6ac BBIM 4D Features to:
- Display nested task resources/task inputs of the active task
- Show list of tasks related to the current object selection
- Highlight, in the WorkSchedule panel, tasks  related to the current object selection
2024-04-15 09:25:50 +02:00
Kristoffer Andersen 365de4054f conda daily pin occt version 2024-04-15 09:25:50 +02:00
Dion Moult a1eff64aec Fix #2935. Duplicating objects clear any parametric array relationships. 2024-04-15 09:25:50 +02:00
Massimo Fabbro 6873de45a8 Fix bug #2825 2024-04-15 09:25:50 +02:00
Dion Moult 9707a2b2f6 Fix #2945. Selector should expand enumerated list properties so that you can match any of them. 2024-04-15 09:25:50 +02:00
Andrej730 6e8a9c8f13 Warning when user loading sheets and some svgs are missing
Added this warning because missing svgs can lead to errors later on.
2024-04-15 09:25:50 +02:00
Andrej730 963d464e73 ChangeSheetTitleBlock operator
Added operator to change title block of currently selected sheet, it's located right after "Add sheet" button.
The way it works - you select the sheet, select the desired titleblock from dropdown menu and it overrides current titleblock from the sheet with the new one.
2024-04-15 09:25:50 +02:00
Bruno Perdigão b201bb5c3b ifc array modifier: get cursor position in relation to the object local axes 2024-04-15 09:25:50 +02:00