Andrej730
e51d2daf64
Fixed issues applying arrays
...
because pset wasn't removed BBIM was recognizing those elements as parts of an array resulting in issues during deletion and duplication. This issue is a regression after ec4f0e5 , the root problem was that `keep_objs` wasn't working with `sync_children`.
Since `keep_objs` was used only for applying array layers I've replaced it with `array_layers_to_apply` that works for both `sync_children` = True and False.
https://community.osarch.org/discussion/1831/duplicating-failed-for-array-items-after-apply-array
2024-04-16 11:09:32 +02:00
Andrej730
4fa634cf5c
Minor fix - remove redundant code
...
style assignment was already done by `bim.add_style`
2024-04-16 11:09:32 +02:00
Dion Moult
f7e3d54618
FixRevitTINs patch now also flips normals for surface TINs instead of solid TINs.
...
Minor fixes to use view_layer.object.active etc instead of context.active_object when running via Blender UI (it seems when you run the patch recipe from the Blender UI at least in later versions, context does not have an "active_object" property.
2024-04-16 11:09:32 +02:00
Andrej730
dd7ddf21a6
bim.add_reference_image #3447
...
Added operator to load image references as planes that will be stored in IFC.
Button location - https://i.imgur.com/L87BPyX.png
Example - https://imgur.com/a/JJXyU6C
2024-04-16 11:09:32 +02:00
Andrej730
66d0d00393
move all operators added to "add mesh" menu to common method in ui.py
2024-04-16 11:09:32 +02:00
Dion Moult
9e8e095b32
Fix #4049 . New basic "regenerate occurrence name" operator.
2024-04-16 11:09:32 +02:00
Dion Moult
31bfdcb8da
Fix #4054 . You can now select objects based on diff results.
2024-04-16 11:09:32 +02:00
Dion Moult
c5164395b8
See #4054 . Diffing now allows partial loading of changed elements to make it easier to visualise without loading and linking two models.
2024-04-16 11:09:32 +02:00
Dion Moult
f071c5746b
Fix #4057 . Data objects for the API are now in util.data instead of mixed into the shape builder utility and only depends on numpy.
2024-04-16 11:09:32 +02:00
Bruno Postle
a2a7d56691
minor documentation typo fix
2024-04-16 11:09:32 +02:00
Bruno Postle
31bbcf2086
Fix python 3.12 SyntaxWarning ( #4045 )
...
Regular expressions now need to be double-escaped:
https://docs.python.org/3/whatsnew/3.12.html#other-language-changes
2024-04-16 11:09:32 +02:00
Dion Moult
b4bfc6e979
Fix #4057 . Move clipping info dataclass to util.shape_builder
2024-04-16 11:09:32 +02:00
Andrej730
80eaf3ba3f
created uv map to have constistent name with Blender uvs
...
Previously it was named "Float2"
2024-04-16 11:09:29 +02:00
Andrej730
f99029d8ad
moved load_texture_map to tool.Loader, added a test
2024-04-16 11:09:29 +02:00
Andrej730
bff9d7b192
bim.save_uv_to_style - experimental operator to save current uv to ifc
...
it's very limited and covering very little cases now. It works only for IfcPolygonalFaceSets representations that consists of triangles.
Short example - https://imgur.com/a/1AxunSN
2024-04-16 11:09:29 +02:00
Andrej730
3eaea9802f
fixed issue importing uv failing for some IfcPolygonalFaceSets
...
It was failing with IfcIndexedTriangleTextureMap + IfcPolygonalFaceSet
2024-04-16 11:09:29 +02:00
Andrej730
d77794594c
fixed issue importing uv on non meters projects
2024-04-16 11:09:29 +02:00
Andrej730
b7ed178d0a
fixed issue settings style blender props if there are not texture style
2024-04-16 11:09:28 +02:00
Andrej730
ac15452dd3
fixed issue with importing ifc objects with uv after 03a6ee912
2024-04-16 11:09:28 +02:00
Dion Moult
304acdccef
Fix #3059 . Implement IfcTester prohibited string templates (taking into account double negatives)
2024-04-16 11:09:28 +02:00
c4rlosdias
a464551644
Update IfcTester and Tester module of Blenderbim
2024-04-16 11:09:28 +02:00
Dion Moult
d6142d90a9
Fix #3996 . Reassigning occurrences or types now also reassigns the correlating occurrence or type.
2024-04-16 11:09:28 +02:00
Dion Moult
4f8a6c47a1
Fix #4052 . Bug where invalid plane was generated due to missing X axis.
2024-04-16 11:09:28 +02:00
Dion Moult
ac42318a64
Fix #3974 . Bug where orphaned histories would be left in API remove operations.
2024-04-16 11:09:28 +02:00
Kristoffer Andersen
4f655870b3
Update installation.rst
...
add more information about conda package installation
2024-04-16 11:09:28 +02:00
Dion Moult
d0cab0821d
See #3974 . WIP review to ensure history removal in API.
2024-04-16 11:09:28 +02:00
Andrej730
53da438b23
Small styles UI tweaks
...
- fixed a typo in bim.select_by_style
- added note to clarify what Shade/Render/Texture/Lighting/etc buttons do and moved style selection block at the beggining (maybe it's just me but when edit buttons are above selection ui it seemed like they affect all the styles somehow, not just the currently active one), so it will be more intuitive
Before:
https://i.imgur.com/jRSTLGI.png
After:
https://i.imgur.com/8ih4qSX.png
2024-04-16 11:09:28 +02:00
Andrej730
4d3f8f14b4
bim.validate_ifc_file to detect if there where no validation errors
2024-04-16 11:09:28 +02:00
Dion Moult
4b44427e90
Fix #4044 . Bug where object in camera view algorithm was wrong. Simplied to simple AABB test.
2024-04-16 11:09:28 +02:00
Andrej730
c5c7109415
Fixed issue duplicating IfcRelSpaceBoundary #4043
2024-04-16 11:09:28 +02:00
Andrej730
1019b0c075
Fixed console errors with BIM Tool when boundary object is selected
2024-04-16 11:09:28 +02:00
Andrej730
4e71671412
test creating surface style without IFC entities
2024-04-16 11:09:28 +02:00
Andrej730
e98d7ed89c
BBIM Shader Graph Settings - setting uv mode for the textures
...
Now you can set UV mode that will be used to sample textures (previously it was always using UV data on geometry or breaking if it was otherwise). Basically now you can use autogenerated UV for the objects without UV.
https://i.imgur.com/WtYdpmU.png
Removed BIMMaterialProperties.ifc_coordinate_id as it was only used during the ifc_import and maintained by the `Loader.create_surface_style_with_textures` which is also used to update live shader graph that not always have specific IFC id for the UV.
2024-04-16 11:09:28 +02:00
Andrej730
3aa3b329c7
Fixed issue updating texture style for non-faceset representations
2024-04-16 11:09:28 +02:00
Dion Moult
bc04a65109
Fix #4027 . Fix regression where S-D or A-D hotkeys didn't follow vanilla Blender behaviour from 81a1bd9
2024-04-16 11:09:24 +02:00
Dion Moult
5f1943a756
Fix #4037 . IfcTester reports now also include an element type column.
2024-04-16 11:09:24 +02:00
Dion Moult
267505bd99
Fix #4034 . Bug where abstract pset template applicabilities didn't apply to occurrences as well as types.
2024-04-16 11:09:24 +02:00
Bruno Postle
c846edd896
Revert 1d972a6 as no datetime.UTC on CI server
2024-04-16 11:09:24 +02:00
Bruno Postle
98cba98f7d
fix python 3.12 utcnow() deprecation warning
...
Warning is:
/usr/lib64/python3.12/site-packages/ifcopenshell/api/project/create_file.py:61:
DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version.
Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
2024-04-16 11:09:24 +02:00
Bruno Postle
4b074fc79e
python api documentation fix
2024-04-16 11:09:24 +02:00
krande
5f3e9f7576
add a workflow dispatch trigger (lets you click a button in the github actions workflow panel to start a new build)
2024-04-16 11:08:05 +02:00
krande
8c0ec6d398
test one more time on my fork before merging
2024-04-16 11:08:05 +02:00
Kristoffer Andersen
a744aa8570
Update ci-ifcopenshell-conda-daily.yml
...
change from deprecated mamba provisioner and move to python 3.11 and 3.12
2024-04-16 11:06:20 +02:00
Gorgious56
50561d72b8
You can now select the same ifc classes and match predefined types with SHIFT + Clicking the "Select Ifc Class" button
2024-04-16 11:05:27 +02:00
Andrej730
518f054cbd
edit_object_placement optimization for objects with subchildren #4035
...
1) We were iterating over same subchildren 2 or more times.
2) There is no need to change subchildren position at all since their parent position is already adjusted.
Explained here in detail - https://github.com/IfcOpenShell/IfcOpenShell/issues/4035#issuecomment-1822824352
2024-04-16 11:05:27 +02:00
Dion Moult
847f0890e0
Fix #3691 . Add toggle for power users to disable the BIM toolbar if an IFC isn't loaded.
2024-04-16 11:05:27 +02:00
Dion Moult
f1b59ee583
New style manager supports basic editing of externally defined surface styles
2024-04-16 11:05:27 +02:00
Dion Moult
e3742cefb0
Minor IfcPatch doc fix where examples had a missing argument
2024-04-16 11:05:27 +02:00
Dion Moult
f2e56f8128
Minor fix to "select multiple IFC class" implementation
2024-04-16 11:05:27 +02:00
Dion Moult
a18cd0eeab
IfcFM panel now autodetects available engines with names and descriptions
2024-04-16 11:05:27 +02:00