Andrej730
0891df5d6c
typing
2024-09-16 18:54:12 +05:00
Andrej730
b8aefe7df0
geometry.unassign_representation - fix missing ifc2x3 tests
2024-09-13 18:50:54 +05:00
Andrej730
8061e22480
geometry.unassign_representation to remove shape aspects
...
previously it was leaving unused shape aspects unconnected to any other elements, now it will purge them
2024-09-13 18:50:54 +05:00
Andrej730
b911b68aec
typing
2024-09-13 18:50:54 +05:00
Thomas Krijnen
1697e49e65
Merge branch 'v0.8.0' into fix-ifccircle-ifcellipse-processing
2024-09-12 20:18:57 +02:00
Andrej730
51211dc527
ifcopenshell makefile - use VERSION
2024-09-12 19:19:11 +05:00
Andrej730
806975c4b9
bump ifcopenshell build for bonsai
2024-09-12 19:07:20 +05:00
Andrej730
aa97ff7f16
typing
2024-09-12 18:40:20 +05:00
myoualid
97393eb173
prevent spatial elements selection from being assigned to cost control
2024-09-11 18:48:59 +01:00
Andrej730
4c04bc7cb5
fix test_create_IfcBSplineCurve
2024-09-11 19:42:47 +05:00
Andrej730
32c6ea9363
shapebuilder.profile - fix bug in ifc2x3 assigning non existing Position attr
...
confused arbitrary profiles with parametric profiles in 640320f
2024-09-11 16:02:48 +05:00
Andrej730
ad8131114d
IfcLine, IfcBSplineCurve geometry tests
2024-09-11 15:53:04 +05:00
Andrej730
fe0be0cdae
shape_builder.create_axis2_placement_2d
2024-09-11 15:53:04 +05:00
myoualid
67a7e713b2
fix util.get_elements_by_pset to account for quantity sets
2024-09-10 17:17:42 +01:00
Andrej730
6fd4d8b1ba
Fix sequence.get_related_products bug after 845d772
2024-09-10 18:28:18 +05:00
Andrej730
2d0b262351
get_nested_tasks to discard non-ifctask elements #4911
2024-09-10 18:28:18 +05:00
Andrej730
ddf92ab8fb
typing
2024-09-10 18:28:02 +05:00
Andrej730
5616367a03
don't deep copy psets for optimization
...
Related to #5291
pset.edit_pset should cover it since it does support unsharing shared properties
2024-09-10 14:21:14 +05:00
Andrej730
6cf9875472
Fix error processing IfcCircle/IfcEllipse #5352
2024-09-10 12:54:44 +05:00
Takayuki Kato
1da47d9271
Add support for editing IfcPhysicalComplexQuantity in edit_qto ( #5335 ) ( #5356 )
...
* Add support for editing IfcPhysicalComplexQuantity in edit_qto (#5335 )
* Fix lint-formatting issues
2024-09-10 14:13:57 +10:00
Andrej730
e87faa167c
typing
...
also small optimization in MaterialCreator.create to address ifc a couple times less
2024-09-09 17:28:24 +05:00
Andrej730
27b9709b78
style.assign_representation_styles to support topology reprensentations #4038
2024-09-09 17:28:23 +05:00
Dion Moult
b71034765c
Black
2024-09-09 12:43:22 +10:00
Dion Moult
ba5b27d03c
Support getting 2D coordinates in util.shape.get_vertices
2024-09-09 12:41:40 +10:00
myoualid
171c3083da
Cost module web-ui can now:
...
- assign cost item products from Blender selection
- display list of selected products ( with available quantities, subtotals, and highlighting already assigned products)
- display and refresh assigned products
- highlight loaded cost schedule
2024-09-08 01:16:48 +01:00
Andrej730
33001e6c6d
profile.copy_profile
...
Fixes issue duplicated profile missing it's psets.
2024-09-07 11:22:43 +05:00
Andrej730
e224bfd19f
Fix error showing material/profile psets in bbim after 691815fd41
2024-09-07 11:22:43 +05:00
Dion Moult
8b1d3a0c5d
Fix #4769 . Bug where editing grids didn't work with non-SI units.
...
I really don't know how this mistake lasted this long.
2024-09-07 13:48:42 +10:00
Andrej730
8e87d0e303
typing
2024-09-06 18:11:25 +05:00
Andrej730
871cd45f53
selector.set_element_value to support 'predefined_type' keyword
...
See more details in https://community.osarch.org/discussion/comment/22134/#Comment_22134
2024-09-06 18:11:24 +05:00
Andrej730
39fd9ce462
attribute.edit_attributes - small optimizations
...
remove settings dictionary and remove some ifc calls
2024-09-06 18:11:24 +05:00
Andrej730
008e2c01c3
selector.set_element_value - temporarily skip 'predefined_type'
...
to avoid issues importing csvs that used it to extract correct predefined type
Example warning:
WARNING. Assigning 'predefined_type' is not yet supported. Skipping value 'ELECTRICACTUATOR' for element: '#89=IfcActuator('1RjCen6XL6WAdhz7HumLFU',$,'Actuator.002',$,$,#179,$,$,.ELECTRICACTUATOR.)'.
2024-09-06 15:18:15 +05:00
Andrej730
a1e51757b1
attribute.edit_attributes - document behaviour for PredefinedType
2024-09-06 15:18:15 +05:00
Dion Moult
7b8e234683
Remove add grid in add menu, and run black
2024-09-06 18:18:32 +10:00
`myoualid`
d6098a0b6d
- web ui features to add a new cost schedules, and root cost items
...
- improved ui for cost schedules
- sharing more css across files
- refactor get_predefined_types(cost_schedule)
2024-09-06 08:55:10 +01:00
Dion Moult
541a6e18e6
Fix broken ifcconvert table in docs
2024-09-06 16:55:56 +10:00
Andrej730
f27bb6effe
black format
2024-09-06 11:13:09 +05:00
Andrej730
6ebec7e0e5
pset.unshare_pset - fix bug where it would leaving an orphaned pset
...
It was leaving an orphaned pset if 'products' was a list of all elements pset is assigned to. Then it would create a new pset for each element leaving original pset orphaned.
2024-09-06 11:04:05 +05:00
Andrej730
a867e72fd3
rename get_elements_using_pset -> get_elements_by_pset for consistency
...
To be consistent with other get_elements_by_xxx methods.
2024-09-06 11:04:04 +05:00
Dion Moult
977f3c7dcc
Fix #5243 . Remove usage of types_with_super which is no longer available.
2024-09-06 10:38:19 +10:00
Andrej730
88319bfa57
Fix missing ifc2x3 tests for pset.edit_pset
2024-09-05 17:13:41 +05:00
Andrej730
cce4e426c3
util.get_pset to support ifc2x3 material props
2024-09-05 17:13:41 +05:00
Andrej730
deb41d2158
Geometry settings documentation fixes #5312
2024-09-05 15:08:35 +05:00
Andrej730
ea6df7f617
Use latest syntax for setting geometry settings #5299
...
Also fixed:
- old include_curves use
- missing use of 'include_curves' in ifcopenshell.draw
2024-09-05 15:08:35 +05:00
Andrej730
fcf41bf00c
fix typing issue
...
Overloads were breaking because type checker is confused what default value should it use for the argument.
Made it keyword-only to resolve the issue.
2024-09-05 15:04:17 +05:00
Andrej730
e1a5e73106
black format
2024-09-04 18:52:09 +05:00
Andrej730
1282f5c308
geom.Iterate - fix incorrect typing, document some arguments #5299
2024-09-04 18:51:07 +05:00
Andrej730
b0eaf23d2c
Fix missing serializer_settings argument #5299
2024-09-04 18:51:07 +05:00
Andrej730
0ab70827e5
pset.assign_pset, pset.unassign_pset
2024-09-04 18:51:07 +05:00
Andrej730
691815fd41
Tools for handling shared psets #5291
...
In IFC it's possible for a property set to be assigned to multiple elements and which may lead to confusing behaviour when you edit a pset on one element and other element seems to get edited too.
Which makes it worse is that that it is possible that some software is might be doing this unintentionally when exporting IFC (as some sort of optimization as storing 1 is more optimal than n copies of it).
So now there are some tools in Bonsai and in IfcOpenShell to handle the shared psest:
1) Indication that property is shared - https://imgur.com/a/9dd3jST (similar to how Blender indicates ID data-block users). You can click on it to "unshare" the pset - a new copy for the pset will be created and it's going to be linked only to the active object.
2) api pset.unshare_pset method that does the same. And util.element.get_elements_using_pset method that encapsulates schema differences and different approaches for occurrences/types.
3) ifcpatch recipe 'UnsharePsets' that's making all property sets in the IFC file to have just 1 element that's using them. You can limit the affected elements by providing query.
ifcpatch recipe is also available in Bonsai - https://i.imgur.com/aOCx7HI.png
2024-09-04 18:51:06 +05:00