Andrej730
4e5659efad
Annotation Tool
...
Added Annotation Tool that allows you create annotation types and their occurences. It will also allow us to get rid of "Annotation" panel in N-panel.
I've recorded bunch of short videos to demonstrate the features:
- bulk tagging - currently works only for "Text" and "Stair arrow" type of annotations, adds annotations to all selected objects, automatically assigns products to the annotations
https://user-images.githubusercontent.com/9417531/231968358-28cbb762-3349-470a-beef-d1ab21882769.mp4
- creating annotation type with representation - all occurences will share the same representation which makes bulk tagging really powerful if you use variables like {{PredefinedType}}, {{GlobalId}}, {{Name}}, {{Description}}, {{ObjectType}}, {{Tag}}
https://user-images.githubusercontent.com/9417531/231970500-333514c6-6406-4ef5-a9e7-fddfcc9a2436.mp4
- creating annotation type without representation - it allows occurences to have unique text or line geometry but still share the same classes from inherited property set
Examples:
creating text type without representation to create title case annotations
https://user-images.githubusercontent.com/9417531/231969361-bda5f924-a8c8-4f5a-ba61-461aa7101f73.mp4
creating type for oblique dimension annotations
https://user-images.githubusercontent.com/9417531/231969902-38e8c3f4-45a6-4c98-bba4-2956288ce10a.mp4
- readjusting - if you created some annotations using bulk tagging but the products were changed / moved afterwards now you can select those annotations and "readjust" them according to new product's position / measurements
https://user-images.githubusercontent.com/9417531/231968975-ee8d6589-60ee-4575-9be2-b0ce68d43ffa.mp4
PS In this commit I've also moved all icons to 1 .blend file and added instructions how to regenerate them.
2023-04-14 12:40:53 +05:00
Dion Moult
66f10adde8
Fix #2980 . Array deletion now uses delete tool. Delete moved into tool so it can be used by other functions.
2023-04-14 09:56:55 +10:00
Dion Moult
459c4d7fcc
See #2978 . Fix crash upon drawing deletion.
2023-04-14 09:36:51 +10:00
Dion Moult
03d9efb790
Fix #2955 . Drawings can now set a precision.
2023-04-13 22:20:18 +10:00
Dion Moult
33bd6099ee
Fix #2971 . Only update placement if object actually moved.
2023-04-13 21:56:32 +10:00
Dion Moult
850a1d326b
Purge old code from timer-based type browser system
2023-04-13 21:39:54 +10:00
Thomas Krijnen
f0bb19d48d
Fixes to validation of selected simple type / enum
2023-04-13 13:16:48 +02:00
Dion Moult
a56eac0131
Minor fix
2023-04-13 18:48:20 +10:00
Dion Moult
d3201809ab
Fix #2968 . Deletions are no longer postponed. Should fix or reveal a lot of sync errors.
2023-04-13 18:38:28 +10:00
Dion Moult
3628a0e241
Fix bug where switching representations didn't update the material checksum, leading to unnecessary material syncs at export time.
2023-04-13 18:15:28 +10:00
Dion Moult
07badd3df5
Styles are applied per mesh data now (potentially dangerous). Fix crash when switching to representation which has styles from an unstyled mesh.
2023-04-13 16:10:00 +10:00
Dion Moult
f63091ce05
Fix #2974 . Type property sets are now properly copied.
2023-04-13 14:08:02 +10:00
Dion Moult
617b2978c0
New activate model operator to switch back to a MODEL_VIEW target view subcontext
2023-04-12 21:27:43 +10:00
Dion Moult
364e96ad1e
Activating a drawing now automatically switches to the preferred target view representation of all elements
2023-04-12 21:27:43 +10:00
Dion Moult
9170e5ca65
New "cut decorator" that draws cut lines in drawings.
2023-04-12 21:27:43 +10:00
Dion Moult
cbe71f221c
Only activate drawing styles if underlay enabled, and default to default Blender styles to prevent confusion
2023-04-12 21:27:43 +10:00
Dion Moult
c039c01407
Regenerating fills now maintains the active representation
2023-04-12 21:27:43 +10:00
Dion Moult
629ba41f5f
Only allow drawing / sheet / schedule creation once the IFC is saved to enforce correct relative paths.
2023-04-12 21:27:43 +10:00
Andrej730
198fa67cc1
Focus on text field on edit Ifc Text with BIM Tool hotkey (once again)
...
This option was here before but it was accidentally discarded after f7181aa
2023-04-12 11:51:50 +05:00
CyrilWaechter
e7830e3d55
Fix #2964
2023-04-11 22:03:26 +02:00
Andrej730
90bfb25f41
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
2023-04-11 19:17:03 +05:00
Andrej730
037cb00caa
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
2023-04-11 19:17:03 +05:00
Andrej730
f002124c38
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
2023-04-11 19:06:59 +05:00
Andrej730
ac42f9f599
Changed roof preview colors and it's now transparent
...
Changed roof preview colors to the same as openings
2023-04-11 19:06:58 +05:00
Andrej730
88d4640d3f
fixed mistake in tool.Blender.apply_bmesh
...
was resulting in error when you apply roof path
2023-04-11 17:30:29 +05:00
Andrej730
d2da01041c
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
2023-04-11 17:14:10 +05:00
Dion Moult
75c17b820f
Fix bug where invalidly mapped representations shouldn't be edited.
2023-04-11 21:50:28 +10:00
Thomas Krijnen
2dc4bbf8cd
Support rule compilation and execution on latebound schema
2023-04-11 13:24:32 +02:00
Thomas Krijnen
c9a5abc3be
Some small fixes for rule compliance in template.py
2023-04-11 09:46:50 +02:00
Dion Moult
c6223520e0
Fix #2947 . Embarrassing bug where slabs didn't consider the total thickness.
2023-04-11 16:24:39 +10:00
Dion Moult
176cbf9861
Fix #2948 . Bug where IFC array tool didn't track undo properly causing crashes.
2023-04-11 15:21:04 +10:00
Dion Moult
00315a6f2d
See #2516 . Titleblocks dropdown now also shows project titleblocks.
2023-04-11 14:08:48 +10:00
Dion Moult
2145b2f8e2
Fix #2955 . You can now store default paths in a project pset.
2023-04-11 14:06:31 +10:00
Dion Moult
31155e7bc9
See #2516 . Fix issue where getting sheet layout URIs were not explicit.
2023-04-11 12:26:05 +10:00
Trashman247
2d07208d0f
Reformat parametrized "Save" in IFC project (again)
2023-04-11 10:26:48 +10:00
Trashman247
35ad7e16c6
Reformat parametrized "Save" in IFC project
2023-04-11 10:26:48 +10:00
Trashman247
27c52fe6d5
Add dynamic tool tip for parametrized "Save" in IFC project
2023-04-11 10:26:48 +10:00
Andrej
2cbbc360c0
Merge branch 'v0.7.0' into fix_bug
2023-04-11 01:23:27 +05:00
Thomas Krijnen
8a4a42777f
Property transfer ownership of schema from py to c++ upon register_schema()
2023-04-10 22:01:53 +02:00
Thomas Krijnen
352d6b5ef9
Attempt load schema from cwd (IS THIS DANGEROUS?)
2023-04-10 20:31:56 +02:00
Thomas Krijnen
cc49b0efdc
Don't fail on unmapped attribute types (IFC4.4)
2023-04-10 20:17:26 +02:00
Andrej730
e71ee988bf
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'
2023-04-10 18:05:40 +05:00
Dion Moult
937a5b2c2d
Fix #2516 . Add/build/remove/view/rename/copy sheet/drawing/schedule now all references and updates user configurable relative paths.
2023-04-10 22:30:33 +10:00
Dion Moult
92221e19c3
Fix bug where unassigning a document was too aggressive and deleted relationships where it shouldn't.
2023-04-10 22:30:33 +10:00
CyrilWaechter
e5c920864c
Add ifczip and ifcxml to x-ifc mime-type
2023-04-10 11:43:26 +02:00
Nathan Hild
6f63682bdf
Correct tooltip messages for enabling and disabling edit buttons
2023-04-10 10:28:10 +02:00
Andrej730
7623eddcd7
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.
2023-04-10 12:37:39 +05:00
Andrej730
d1dee1e908
Fixed errors from 9bca705
2023-04-10 12:30:51 +05:00
Andrej730
8b302f8d21
Make BIM Tool alignment buttons clickable and some hotkeys code cleanup
2023-04-10 11:22:17 +05:00
Dion Moult
dfeebd6b6b
Fix #2960 .
2023-04-10 09:01:34 +10:00