Ryan Schultz
58a7ef62d7
fix #4729 : add a description and category when creating a new material
2024-05-25 09:49:15 -05:00
Dion Moult
d2198568b2
Deprecate old style panel in the material tab and port over "unlink" operator.
...
All the functionality is now possible with the style manager and prevents the user needing to know how Blender materials work or wrangle nodes themselves and magically have to comply with the glTF spec.
2024-05-25 23:30:18 +10:00
Dion Moult
b087aa09d9
Deprecate old material panel in the material tab and reimplement material duplication in the material manager
...
The material duplication now 1) actually creates a new blender material 2) uses the API to duplicate. One less panel outside our scene tab.
2024-05-25 15:15:12 +10:00
Dion Moult
2f071bd809
Material total now shows the total of the select material class, not all material classes
...
This is more meaningful. Often the presence of sets will inflate the number artificially.
2024-05-25 14:11:48 +10:00
Andrej730
7a44f9e8a7
different columns for different cost schedules #4724
...
though columns are still stored in .blend file and not in .ifc
Example - https://imgur.com/a/N6epGZ4
2024-05-24 19:15:51 +05:00
Andrej730
59a19a1a70
disable adding cost schedule columns with an empty name
...
example - https://i.imgur.com/5lGdI2X.png
2024-05-24 19:15:51 +05:00
Andrej730
6a8b59f2cf
remove unused code
...
1) core.enable_editing_task was outdated, tool.enable_editing_task doesn't exist
2) tool.get_task_outputs was duplicated
2024-05-24 19:15:51 +05:00
Andrej730
ec28d3d0af
black format
2024-05-24 19:15:51 +05:00
Andrej730
f576aadee1
typing
2024-05-24 19:15:51 +05:00
Andrej730
64ea455c01
move update_simple_openings to tool.Model
2024-05-24 16:52:33 +05:00
Andrej730
cf635986a6
same openings generator for non-/parametric doors/windows #4710
2024-05-24 16:51:37 +05:00
Andrej730
ac8040008a
small refactor
2024-05-24 16:51:37 +05:00
Andrej730
df15a37127
fix core.root.assign_class error after 3884403 #4719
2024-05-24 15:22:55 +05:00
Andrej730
6d887d593e
fix issues running core tests after 37c008487
2024-05-24 15:20:12 +05:00
Andrej730
fa87092fe0
Keep 1.2m minimum opening thickness instead of using wall thickness
...
That way there will be a workaround if the wall is 0.6m+ meters thick but won't have an issue when you first added a window to a thin wall and it's opening later won't work for the thicker walls.
Mentioned in #4710
2024-05-24 12:10:40 +05:00
Andrej730
1a4e4678d0
assign/unassign resource operators tooltips
...
also removed couple unused properties
2024-05-23 18:45:31 +05:00
Andrej730
c70745826a
rename bim.export_ifc to bim.save_project (similar to bim.load_project)
...
note that old name "export_ifc.bim" is still available (cacb38a25 ) though deprecated
2024-05-23 18:45:30 +05:00
Andrej730
291bffca95
add tooltip for cost schedule columns
...
example - https://i.imgur.com/Uh8D7Vg.png
2024-05-23 18:45:30 +05:00
Andrej730
e4aa97091e
fix bug removing cost schedule columns
...
it was using _execute though it's not an ifc operator
2024-05-23 18:45:30 +05:00
Andrej730
b4f0a346c1
fix couple broken properties definitions
...
There was no errors but Blender seems to ignore the provided name if it was provided as a positional argument instead of a keyword argument.
2024-05-23 18:45:30 +05:00
Andrej730
073e471305
typing
2024-05-23 18:45:30 +05:00
Andrej730
4d9f47b3a7
make it more clear that bim.export_cost_schedules is expecting a folder
...
1) add folder filter
2) remove filepath property - that way only directories will be selectable in the file dialog.
2024-05-23 18:31:59 +05:00
Andrej730
96088c1d08
fix ui error in 40e4949
...
bim.add_manual_classification_reference operator doesn't have a "type" property, only "obj_type"
2024-05-23 18:31:59 +05:00
Dion Moult
0336dbabf7
Fix #4722 . Things like type elements are not allowed to have openings applied to them.
2024-05-23 20:41:15 +10:00
Andrej730
993ce46fcc
improve ux for assigning cost item to product types
...
1) also consider active object as selected when assigning / unassigning cost item to product types. Typically types are hidden and if you select some type in outliner it will become active but still not selected. Now it will be possible to add this active object without unhiding the entire Types collection.
2) info messages to make UI more responsive
2024-05-23 12:13:19 +05:00
Dion Moult
edfd446833
Allow custom qtos without a template
2024-05-23 15:17:08 +10:00
Dion Moult
87c184ef8a
Easily add custom psets and props without needing to create a template first
...
This is not best practice but is useful for quick and dirty properties.
2024-05-23 13:28:59 +10:00
Andrej730
e9b9113df8
small fix for 1aaccba80
2024-05-22 21:41:07 +05:00
Andrej730
1aaccba803
simpler way to check if enum property is valid
...
Well, it's simpler to use but not really simpler in implementation 😅
Thanks to @Gorgious56 for helping out
Hopefully, it's a farewell to those annoying warnings
see https://blenderartists.org/t/best-way-to-handle-dynamic-enum-items-without-pyrna-enum-to-py-current-value-matches-no-enum
2024-05-22 18:44:12 +05:00
Andrej730
f2eb08a066
typing
2024-05-22 17:43:05 +05:00
Dion Moult
5a82d7a9d4
Refactor enabling pset editing operator into core/tool
2024-05-22 20:52:43 +10:00
Ryan Schultz
4027f28c85
Can bim.select_similar from the pset or attribute panels ( #4611 )
2024-05-21 10:30:38 -05:00
Bruno Perdigão
3a1154c4ba
Merge pull request #4597 from IfcOpenShell/linked_aggregate_operator_from_panel
...
when bpy.ops.bim.object_duplicate_move_linked_aggregate is called fro…
2024-05-21 10:45:49 -03:00
Dion Moult
aeb1e4bf49
See #4696 . Allow editing of properties that do not comply with the pset template definition.
...
Strictly speaking, the only properties that should exist in a pset should be those in a pset template. However, there are situations where this is not the case, such as when the pset template has since been modified, or if there is invalid data coming from other software, or migrating between schemas. In this case, we should still load the property, and give the user the option to edit it (or null it).
2024-05-21 23:06:15 +10:00
Andrej730
4fb34c0816
base autogenerated opening thickness on wall thickness #4710
2024-05-21 17:54:51 +05:00
Andrej730
295d0a677e
cost schedule - prohibit adding multiple quantity types on 1 cost item
...
All IfcCostItem.CostQuantities supposed to use only 1 type of quantity, so they can be added up.
Changed UI to reflect that requirement - dropdown for selecting quantity type is now only visible if cost item has no quantities, otherwise it just reuses already used quantity type.
See https://ifc43-docs.standards.buildingsmart.org/IFC/RELEASE/IFC4x3/HTML/lexical/IfcCostItem.htm
Before - https://i.imgur.com/gFlwHEk.png
After - https://i.imgur.com/pk3wXfe.png
2024-05-21 17:54:07 +05:00
Andrej730
9aacafd575
fix bug with cost schedules confusing 0 quantity with no quantities
...
a bit related to #4704
1) fixed util.cost.get_total_quantity
2) fixed similar issue in cost.data that calculates the final value that user will see in UI
3) changed UI, "-" is shown when there are no quantities and "0" is when quantities are there but they just equal to zero.
Before - https://i.imgur.com/EO53DhM.png
After - https://i.imgur.com/H6rK4sP.png
fyi @myoualid
2024-05-21 17:54:07 +05:00
Andrej730
ce6ce1b975
bim.assign_cost_item_type name change
2024-05-21 17:54:07 +05:00
Andrej730
2db9bd9c39
fix errors adding occurrences from type manager #4702
...
Errors occurred if occurrence type wasn't matching current tool's type. E.g. if you would add an IfcRoofType being in a Slab Tool.
2024-05-21 17:53:42 +05:00
Andrej730
7622504d68
avoid even more invalid enum warnings...
...
warnings like `pyrna_enum_to_py: current value '17' matches no enum in 'BIMModelProperties', '', 'relating_type_id'`
2024-05-21 17:53:42 +05:00
Andrej730
221dd9a7a2
typing
2024-05-21 17:53:42 +05:00
Andrej730
1b74a99667
use delete_ifc_object removing a type
...
It was acting a bit different - e.g. leaving mesh representation from type on occurrences leaving to lots of errors. Though there is still #3931
2024-05-21 17:07:32 +05:00
Dion Moult
9122f006c7
Deprecate material attributes panel in favour of new material manager.
2024-05-20 23:21:13 +10:00
Andrej730
f84adf67cd
typing
2024-05-20 17:19:00 +05:00
Andrej730
cacb38a251
maintain "bim." as operators bl_idname prefix for BlenderBIM
...
1) removed unused operator import_ifc.bim
2) marked export_ifc.bim as deprecated
2024-05-20 17:19:00 +05:00
Andrej730
4e462a3cf7
use .alert in fatal loading error UI to draw more attention ( 3320acc)
...
https://i.imgur.com/5ZukO0b.png
we probably will need to use 1 method for both error UIs at some point 😅
2024-05-20 12:47:09 +05:00
Andrej730
e7f4c6c9cc
update error UI similar to 7bf8c0bbf
2024-05-20 12:34:56 +05:00
Dion Moult
7bf8c0bbfb
Fix #4686 . Automatically derive correct download URI if add-on fails to install.
2024-05-20 16:32:42 +10:00
E Shattow
16285e0625
Update installation.rst refering to System not Import-Export
...
Blender BIM addon is listed by Blender 4.1 as `System: BlenderBIM`
2024-05-20 10:57:38 +05:00
Dion Moult
a07d3b9669
Fix #4633 . Only update the text value of the object, not try to be clever with types and occurrences.
...
Previously, we were clever in detecting types and occurrences because if you edited a type, you wanted all occurrences to be updated. Now, we no longer need to be clever because like any other UI element, the annotations shown in the active view are updated after every IFC operation.
2024-05-20 14:12:03 +10:00