Dion Moult
153a71f91e
Distribute IfcConvert on GH actions
2024-07-26 20:04:04 +10:00
Dion Moult
ae7b1bb9b4
Bump IOS
2024-07-26 20:03:36 +10:00
Dion Moult
6f70196a6c
Make IfcConvert downloads also come consistently from github releases
2024-07-26 20:03:24 +10:00
Blender Defender
228bbc30ad
refactor: Update code comments and docstrings
2024-07-26 19:28:10 +10:00
Blender Defender
f83a7ac730
feat: Sort the available length units numerically
...
Length units are now sorted ascending by the value the prefix represents, i.e. METER is listed before KILOMETER, ...
2024-07-26 19:28:10 +10:00
Blender Defender
fad4ea82a7
refactor: Update the type annotation in Migrate.py to be a literal
2024-07-26 19:28:10 +10:00
Blender Defender
a252b459a2
refactor: Update the type annotation in ConvertLengthUnit.py to be a literal
2024-07-26 19:28:10 +10:00
Blender Defender
9ac159e0af
feat: Parse type "Literal" as enum property in the IFC Patch Panel
2024-07-26 19:28:10 +10:00
Dion Moult
74fbf29d5f
Change name of ci-black-formatting.yml
2024-07-26 12:21:11 +10:00
Dion Moult
1fef4c5857
Run black on BBIM
2024-07-26 12:19:21 +10:00
Dion Moult
e7b791f4a2
Run black on utils
2024-07-26 12:16:36 +10:00
Dion Moult
a6286293d8
Run black on IOS-Python
2024-07-26 12:00:57 +10:00
Andrej730
d51fa2c5f7
bsdd - info messages with amount of found classes / class props
2024-07-25 18:36:18 +05:00
Andrej730
e4afcc96d1
dev_environment script - echo instead of rem so users could see the instructions
2024-07-25 18:36:18 +05:00
Andrej730
5f94a84616
dev environment script - move username to a separate variable, use current user as default
...
Want to keep the script working for some users (me 👉 👈 ) just by running it from the repo without any changes.
2024-07-25 18:36:18 +05:00
Andrej730
a883e9f490
bsdd - fix bug adding wrong classification to the project + info messages
...
1) we were identifying active domain just by name, therefore it would always pick up the first dictionary that has matching name (typically it's the most recent version) even though user selected a different version
2) Previously it would fail if it couldn't find a domain, now it will show an info message.
3) Also added info message when user is trying to add the same classification again, so it will be less confusing.
2024-07-25 18:36:17 +05:00
Andrej730
74db3fcbbe
bsdd - show more info about the selected domain
...
Exposed all stored information to the UI, now it's possible to distinguish between different versions of the same domain:
https://i.imgur.com/6wlSkCP.png
2024-07-25 18:36:17 +05:00
Andrej730
d7b85d1264
bsdd - fix bug when it was always loading preview and inactive domains
2024-07-25 18:36:17 +05:00
Andrej730
455fe740c7
support assigning bsdd classifications in ifc4x3 too
2024-07-25 18:36:17 +05:00
Andrej730
eac4e80ee9
typing
2024-07-25 18:36:17 +05:00
Dion Moult
33e188b321
Visualisation of WCS now takes into account blender session offsets
2024-07-25 23:34:29 +10:00
Blender Defender
59a3c019a4
ci: Move the black formatter workflow to a seperate file
2024-07-25 18:24:31 +05:00
Blender Defender
30ab2f1e48
ci: Add black formatter to ci.yml
...
Check, whether the files are formatted properly using the black formatter on push and pull requests.
2024-07-25 18:24:31 +05:00
Dion Moult
aae160b568
Don't clone in windows dev setup, also don't use appdata since it will run as root
2024-07-25 22:51:05 +10:00
Thomas Krijnen
91f4427bb5
Start from project instead of unit assignment #5074
2024-07-25 10:23:12 +02:00
Andrej730
8b29e50f11
add_classification - remove dead and deprecated code
2024-07-24 18:24:22 +05:00
Andrej730
7edd1225c0
Fix issue assigning bsdd classification in ifc2x3 #5073
2024-07-24 18:24:22 +05:00
Andrej730
075a0c79e2
migrator - consider IfcClassification renamed property
2024-07-24 18:24:22 +05:00
Andrej730
a1c4221cd7
fix ui in 3d4c85c7d
...
previous change was committed by accident
2024-07-24 18:24:22 +05:00
Dion Moult
dc197a2ae2
Add text shadows and clearly distinguish units, blender, local, and map coordinates in georef decorator
2024-07-24 23:21:32 +10:00
Andrej730
5fab630a8b
Fix #5052 #4832
2024-07-24 17:30:23 +05:00
Andrej730
b021dbf55e
fix issue in 93fe2e9
...
forgot that bim.assign_class is used without context arguments too, moved poll to pie menu operator
2024-07-24 17:21:42 +05:00
Andrej730
d3bcd2f73e
Add more instruction for python version mismatch error handler
...
Example - https://i.imgur.com/l9KCHGc.png
2024-07-24 16:56:56 +05:00
Andrej730
3d4c85c7dc
Indicate that Blender needs a restart if BBIM was reinstalled
...
Example - https://i.imgur.com/lbP4PqO.png
2024-07-24 15:54:26 +05:00
Dion Moult
adde772014
Also consider non elements when guessing a false origin
2024-07-24 17:10:46 +10:00
Chirag Singh
59579fd4c4
Merge branch 'v0.8.0' of https://github.com/IfcOpenShell/IfcOpenShell into v0.8.0
2024-07-24 12:15:08 +05:30
Chirag Singh
0dde4102bc
Added support for mapping material inside the UI. Output file name and file extension taken from input. Plus Fixed some bugs mentioned in #5033
2024-07-24 12:11:56 +05:30
Thomas Krijnen
b988df9e1f
Address old merge issue regarding style lookup #5069
2024-07-24 03:07:17 +02:00
tim
390b280442
Screed added to IfcCovering options
...
Screed added to IfcCovering-predefined_types FLOORING and TOPPING
2024-07-24 10:08:09 +10:00
Ziad-I
9776adee86
fix packages path for blender > 4.2
2024-07-23 22:16:24 +03:00
Andrej730
06c8a9ef14
Blender 4.2 - experimental support for reinstalling BBIM on Windows
2024-07-23 18:56:48 +05:00
Andrej730
9713cc0c2e
operator to quickly restart blender
2024-07-23 17:24:14 +05:00
Thomas Krijnen
dda010b130
Wire up ___localplacement settings #5031
2024-07-23 10:15:52 +02:00
Ziad-I
4122f22ee1
remove hardcoded values
2024-07-23 17:04:37 +10:00
Ziad-I
e833b0aa81
edit docstrings
2024-07-23 17:04:37 +10:00
Ziad-I
975b215bd0
add type hints and docstrings
2024-07-23 17:04:37 +10:00
Ziad-I
276c4b871e
add starting server if no server is running during export to web
2024-07-23 17:04:37 +10:00
Ziad-I
8e6d13242e
add css variables and switching themes for gantt page
2024-07-23 17:04:37 +10:00
Ziad-I
c852e624e9
add theme switching for tables page
2024-07-23 17:04:37 +10:00
Ziad-I
ad17a610eb
edit css for csv tables to have two themes
2024-07-23 17:04:37 +10:00
Ziad-I
6b4c695942
add writing/removing webserver pid to a json file
...
on starting and killing the webserver subprocess
2024-07-23 17:04:37 +10:00
Ziad-I
61dfb42cee
edit warning text color
2024-07-23 17:04:37 +10:00
Ziad-I
386caab840
move intial opening of browser to server on startup event
...
as a band aid fix to handle race condition between starting server and opening of web browser
2024-07-23 17:04:37 +10:00
Ziad-I
f50bbf9704
add warning to web ui on changes and is_dirty in web module data
2024-07-23 17:04:37 +10:00
Ziad-I
4912e86e6e
fix using errno module instead of hardcoded
...
since error code numbers differ based on OS
2024-07-23 17:04:37 +10:00
Ziad-I
b0fe30c597
add caching of blender messages
2024-07-23 17:04:37 +10:00
Ziad-I
84d4bf16c3
remoce unnecessary div element
2024-07-23 17:04:37 +10:00
Ziad-I
7851efd0c8
use ifc_file instead of IFC_File
2024-07-23 17:04:37 +10:00
Ziad-I
500587f267
make webdata ifc_file only show filename instead of full path
2024-07-23 17:04:37 +10:00
Ziad-I
6defdc63b5
add type hints and docstring to send_webui_data function
2024-07-23 17:04:37 +10:00
Ziad-I
216b3a4e37
rename variables to have more meaningful names
2024-07-23 17:04:37 +10:00
Ziad-I
4e79384c8e
fix packages path when using dev setup with symlinks
2024-07-23 17:04:37 +10:00
Ziad-I
f7a3b0706b
fix: using blender python executable
2024-07-23 17:04:37 +10:00
Dion Moult
5d4a3d504c
Support alpha versions for all wheels
2024-07-23 17:00:22 +10:00
Dion Moult
96b4ad8cd3
No longer ship bbim addon with bimtester
2024-07-23 11:41:46 +10:00
Richard Brice
54131b3fe5
IfcSectionedSolidHorizontal logs warning if Directrix is not a piecewise function, rather than silently failing.
2024-07-22 13:21:49 -07:00
Andrej730
93fe2e9b0f
bim.assing_class - add description, add poll check for selected objs
...
also added description to pie menu entry
2024-07-22 17:26:59 +05:00
Andrej730
a7e856c311
Update ci-blenderbim.yml after all makefile changes
2024-07-22 16:46:47 +05:00
Andrej730
1fbdb4811d
makefile - move ifcopenshell packages wheels instead of copy to keep it clean
2024-07-22 16:46:47 +05:00
Andrej730
797e3e8d8c
bbim_translations - not to fail if user has fake-bpy-module
2024-07-22 16:46:47 +05:00
Andrej730
4c53881242
blenderbim makefile - safeguards for wheels used in the build
2024-07-22 16:46:47 +05:00
Andrej730
44fc5768af
blender 4.2 - fix errors detecting last commit hash
...
1) __file__ / bim no longer exists as 'bim' is moved to the wheel
2) there also was an issue detecting hash after it was moved from bim to blenderbim package in c0635af
2024-07-22 16:43:50 +05:00
Andrej730
ffbade0f7a
fix bcf paths after 237cd99
2024-07-22 16:43:50 +05:00
Andrej730
1ca6c489b1
dev installation - update windows script for Blender 4.2
2024-07-22 16:43:50 +05:00
Andrej730
845b3e0f6b
dev installation - move dev environment scripts to separate files
2024-07-22 16:43:50 +05:00
Andrej730
51e9626809
installation.rst - update platform names
2024-07-22 16:43:50 +05:00
Andrej730
1d12f54c36
reuse tool.Blender.get_blenderbim_version
2024-07-22 16:43:50 +05:00
Andrej730
1281eb4aea
fix download urls in startup error handler after d96f96031
2024-07-22 16:43:49 +05:00
Thomas Krijnen
c0f2ac592e
Consider edge orientation in faceset helper for advanced planar breps #4895
2024-07-22 13:07:40 +02:00
Thomas Krijnen
41f1d66fee
Fix 2d transform op + fixed ref column order #5048
2024-07-22 04:33:35 +02:00
Dion Moult
aa31436c67
Move git/other addons/troubleshooting to top level of docs
2024-07-22 12:13:46 +10:00
Thomas Krijnen
e95e92356f
Update src/ifcopenshell-python/ifcopenshell/util/shape.py
...
Co-authored-by: Vyacheslav Dobranov <112861900+VDobranov@users.noreply.github.com >
2024-07-22 03:51:12 +02:00
VDobranov
e27980f746
Update shape.py
...
Following the discussion in Live Chat about length of all edges in a given geometry:
https://matrix.to/#/!ssOmSJysZpXBupsgjO:matrix.org/$0ZHjIFCtpwQl06xdGWlQ9ymsiKWpPuLMczVJnNYmN84?via=matrix.org&via=crossbach.de&via=infeeeee.duckdns.org
2024-07-22 03:51:12 +02:00
Ryan Schultz
3f3f3b6aff
whoops
...
Revert "Update installation.rst"
This reverts commit a428ae5c86 .
2024-07-21 12:50:49 -05:00
Thomas Krijnen
2b3035ec02
Lookup styles on (arbitrarily) more taxonomy kinds
2024-07-21 11:56:02 +02:00
Thomas Krijnen
cc0760d505
profile_helper() returns loop, not face, take into account in hollow profile def
2024-07-21 11:55:18 +02:00
Thomas Krijnen
f683fd220f
Take into account tapered extrusion position
2024-07-21 11:54:48 +02:00
Thomas Krijnen
889d3c5451
Don't fail on tapered extrusion over non-derived profile def #5046
2024-07-21 11:53:42 +02:00
Thomas Krijnen
c16cfc8afd
Support extrusion over composite profile
2024-07-21 11:52:48 +02:00
Thomas Krijnen
4d698deb21
Various improvements to USD serializer related to object naming
2024-07-21 02:41:43 +02:00
Thomas Krijnen
3bbe598dff
Minor formatting improvements
2024-07-21 02:40:56 +02:00
Thomas Krijnen
e88bd3af80
Fix profile fillets #4993
2024-07-21 02:40:09 +02:00
Ryan Schultz
a428ae5c86
Update installation.rst
2024-07-20 16:08:16 -05:00
Ryan Schultz
05e202059e
fix #5047 - order IfcAnnotationTypes alphabetically.
...
and order types regardless of case.
2024-07-20 13:02:21 -05:00
Ryan Schultz
ab97f23b47
Fix #5039 - Assure count is an integer
2024-07-20 10:36:26 -05:00
Kristoffer Andersen
4f0a65baea
Update ci-ifcopenshell-conda-cleaner.yml
...
fix conda cleaner version ordering
2024-07-20 09:45:55 +02:00
Chirag Singh
e88abd881d
Fixed Issue #5033
2024-07-20 12:02:57 +05:30
Dion Moult
d6d5dbfaa3
Fix semver syntax for BBIM GH daily builds
2024-07-20 15:51:26 +10:00
Dion Moult
3ea1f95fcf
Bump version as we've already released 0.7.10
...
This makes the -alpha suffix actually work
2024-07-20 15:49:37 +10:00
Dion Moult
48026c7a50
Fix bug where adding a duct failed due to no container obj being calculated
2024-07-20 15:49:11 +10:00
Andrej730
8f2e8ec64d
fix builds for macos
2024-07-19 22:22:22 +05:00
Andrej730
15945d854a
fix bbim build missing very important aud wheel
2024-07-19 22:22:22 +05:00
Andrej730
f69c42aaae
makefiles - windows support
2024-07-19 22:22:22 +05:00
Kristoffer Andersen
b88e35e3e7
Update ci-ifcopenshell-conda-daily.yml
...
remove illegal conda version character -
2024-07-19 13:50:08 +02:00
Kristoffer Andersen
6befa2dc12
Update ci-ifcopenshell-conda-daily.yml
...
making legal semver by using -alpha
2024-07-19 13:45:12 +02:00
Andrej730
c25bb03a9c
Blenderbim startup error handler - switch to scene properties
...
Noticed that by default Blender is using object properties (and users may have something else their startup file), so no we switch to the scene properties so they could see our error handler immediately.
2024-07-19 14:23:26 +05:00
Andrej730
4fdf8145f0
Fix incorrect python version detection for Blender 4.2
...
Basically this error message is back - https://i.imgur.com/ANQe0eg.png
2024-07-19 14:21:57 +05:00
Andrej730
bb910e42ab
fix dependencies that should be downloaded for specific platform
...
Builds are finally working (atleast tested on windows) 🥳
Thanks to Blender now we'll always now if some dependency will become platform specific.
It shows errors like:
Skipping wheel for other system (manylinux_2_24_x86_64.manylinux_2_28_x86_64 != win_amd64): greenlet-3.0.3-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): yarl-1.9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): aiohttp-3.9.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): MarkupSafe-2.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): fonttools-4.53.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): ezdxf-1.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Skipping wheel for other system (manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): frozenlist-1.4.1-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): SQLAlchemy-2.0.31-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Skipping wheel for other system (manylinux_2_17_x86_64.manylinux2014_x86_64 != win_amd64): multidict-6.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
2024-07-18 22:05:36 +05:00
Andrej730
13dce9d663
github action - fix finding zip files with new naming
...
encapsulated zip archive name generation in the makefile, so we wouldn't be recreating it multiple times
2024-07-18 21:30:09 +05:00
Andrej730
bda69555f6
blenderbim makefile - fix bbim translations build
2024-07-18 21:30:09 +05:00
Dion Moult
e50f88a91c
Whoops
2024-07-19 00:59:58 +10:00
Dion Moult
fc7288b9e7
Fix missing bdist wheel during build
2024-07-19 00:56:16 +10:00
Andrej730
1355f3ab6b
common.mk - windows support
2024-07-18 19:46:18 +05:00
Andrej730
d60c03b632
fix bbim daily github workflow not being triggered by changes in itself
2024-07-18 19:39:16 +05:00
Dion Moult
b39020ce74
Fix yaml syntax
2024-07-19 00:26:56 +10:00
Dion Moult
cb23b00913
Separate build/dist dir for bbim makefile
2024-07-19 00:26:07 +10:00
Dion Moult
268ab107e2
Forgot to update bimtester makefile
2024-07-18 23:57:44 +10:00
Dion Moult
734b4901fd
Don't copy over the entire blenderbim dir when building
2024-07-18 23:52:24 +10:00
Dion Moult
0ecc3d3e2a
Share common makefile instructions, use venv for running build, and separate dist/build dirs
2024-07-18 23:43:12 +10:00
Dion Moult
237cd99e3b
Make bcf follow the same folder hierarchy as everybody else
2024-07-18 23:41:30 +10:00
Dion Moult
31acd0a39b
Forgot PYTHON var
2024-07-18 22:44:25 +10:00
Dion Moult
7fb04c7d8f
Wrap IOS make in venv
2024-07-18 22:40:43 +10:00
Dion Moult
ad05434777
Add prerelease info, inline make dist-blenderbim
2024-07-18 22:29:08 +10:00
Dion Moult
99cb50d365
Forgot to commit IfcBIMTester pyproject
2024-07-18 22:24:25 +10:00
Andrej730
d29a201814
makefile - create wheels dir
2024-07-18 15:56:50 +05:00
Andrej730
fb702afee6
makefile - install build module globally
...
as we run make dist for ifcopenshell packages not inside venv
2024-07-18 15:48:18 +05:00
Andrej730
657906a2dd
makefile - fix missing build module
2024-07-18 15:36:51 +05:00
Dion Moult
5b96b4a414
Bundle BBIM as a wheel
...
Yes we really did it
2024-07-18 20:24:17 +10:00
Dion Moult
30623ba333
Fix missing imports prior to deciding 4.2 import strategy
2024-07-18 20:24:17 +10:00
Andrej730
34652aa2b7
Create blenderbim_redirect.py
2024-07-18 20:24:17 +10:00
Dion Moult
e7fd06a6d6
Fix non-valid Blender manifest (strings too long apparently)
2024-07-18 20:24:17 +10:00
Dion Moult
f0077b9e22
Fix ifcopenshell-python wheel packaging missing util schema json files
2024-07-18 20:24:17 +10:00
Dion Moult
71aa30a25f
Fix ifc5d packaging missing json mapping files
2024-07-18 20:24:17 +10:00
Dion Moult
d96f960313
Add blender platform support
2024-07-18 20:24:17 +10:00
Dion Moult
5a2a809061
Bump permissions and tags in blender manifest
2024-07-18 20:24:17 +10:00
Andrej730
2710148276
fix bpypolyskel and ifcjson wheels
2024-07-18 20:24:17 +10:00
Andrej730
7ff1c535e5
build wheel for bpypolyskel
2024-07-18 20:24:17 +10:00
Dion Moult
71575905cb
Remove behave and bimtester module - only used by advanced users and confuses users with ifctester
2024-07-18 20:24:17 +10:00
Andrej730
56573160d1
makefile - do not download pkg_resources as it's provided by blender
...
It seems Blender started providing pkg_resources by default at some point, see:
blender-4.2.0/4.2/python/lib/site-packages/pkg_resources
2024-07-18 20:24:17 +10:00
Andrej730
49555eb81e
pack ifcjson to wheel
2024-07-18 20:24:17 +10:00
Dion Moult
9ed286660e
WIP BlenderBIM makefile update
2024-07-18 20:24:17 +10:00
Dion Moult
3d2dfdf9cb
Fix ifccityjson wheel
2024-07-18 20:24:17 +10:00
Dion Moult
c3d4847b29
Minor fix to sun_position < Blender 4.2
2024-07-18 18:26:39 +10:00
Richard Brice
9bf68db080
Fixes mapping of cant segments without superelevations
2024-07-17 15:46:36 -07:00
Bruno Perdigão
798cc6069f
Fix bug related to Linked Aggregates
2024-07-17 15:45:10 -03:00
Dion Moult
0efa36940c
Package BIMTester as a wheel
2024-07-17 20:50:36 +10:00
Andrej730
6fbb1a286c
support sun position addon on blender 4.2
2024-07-17 15:26:12 +05:00
Andrej730
7c606fea9b
make sun_position an optional addon for bbim
2024-07-17 13:18:42 +05:00
Andrej730
ae97350e64
blender_manifest - fix version
...
Blender requires blender_manifest version to be semver compatible otherwise it fails with an error below if you try to install BBIM as an extension.
Error:
Error in manifest key "version" invalid: to be a semantic-version, found '0.7.10.240717'
2024-07-17 13:16:17 +05:00
Andrej730
3e7dbcaeb6
blender_manifest - bump min blender version
...
as manifest is used only for installing addon as blender extension in Blender 4.2+
2024-07-17 13:16:17 +05:00
Thomas Krijnen
4ad426a5c5
Update IfcParse.cpp #4998
2024-07-17 09:45:34 +02:00
Dion Moult
eeb200a19d
Minor UI polish to show structural panels by default
2024-07-17 17:37:20 +10:00
Dion Moult
766eb75e3a
Deprecate old set viewport shadow from sun in favour of new solar analysis tools
2024-07-17 17:37:09 +10:00
Dion Moult
607f79f2f5
New feature to set view from sun for solar analysis
2024-07-17 17:36:50 +10:00
Dion Moult
70f252988a
Purge deprecated "set north" operators from georeference superseded by new visualisation features
2024-07-17 17:36:03 +10:00
Dion Moult
f956545743
Fix tzfpy packaging
2024-07-17 16:45:35 +10:00
Dion Moult
6f8aac96f0
Fix #5027 . Forgot to commit some files for solar analysis.
2024-07-17 14:57:06 +10:00
Dion Moult
a2018a22a6
Add sun path visualisation for solar analysis
2024-07-17 13:59:01 +10:00
Thomas Krijnen
7a10edbd73
Fix ambiguous overload after dedbf7014a
2024-07-17 03:43:55 +02:00
Thomas Krijnen
669b0b8c83
Fix triangulated face set #5020
2024-07-17 03:26:23 +02:00
Thomas Krijnen
70336f179d
Keep identities on indexed face sets #5020
2024-07-17 03:12:35 +02:00
Dion Moult
7fc7a73db8
New panel to manage solar analysis setup (location, date, and time)
2024-07-16 23:13:02 +10:00
Andrej730
41065f77d1
BBIM startup error handler - fix error redownloading addon after 5e6fe5e
2024-07-16 18:02:26 +05:00
Andrej730
010f854a07
BBIM startup error handler - message on python version mismatch
...
Example - https://i.imgur.com/U5CBdqU.png
Logs (only startup error logs) now also have information about binary python version and binary filename.
2024-07-16 18:02:26 +05:00
Andrej730
c0635afb64
BBIM error handler - include commit hash
...
Include commit hash to the copied logs and add it to the startup error handler (https://imgur.com/9yVMBnR )
2024-07-16 18:02:26 +05:00
Andrej730
dedbf7014a
fill context attribute of the shape elements (similar to v0.7.0) #4832
2024-07-16 18:02:26 +05:00
Dion Moult
d8cf6ca4fc
Bundle pytz and tzfpy for timezone calculations for solar analysis
2024-07-16 22:56:51 +10:00
Andrej730
f1ab63dda9
pyradiance macos support + linux fix
...
See:
https://github.com/LBNL-ETA/pyradiance/issues/35
https://github.com/LBNL-ETA/pyradiance/issues/34
2024-07-16 12:11:11 +05:00
Andrej730
3a5c3d856a
quick fix for 54fe0f8ff
2024-07-16 11:17:36 +05:00
Andrej730
54fe0f8ff9
Remove blenderbim/occ_utils.py #812
...
Goodbye duplicated file 😁
2024-07-16 11:06:49 +05:00
Dion Moult
483516a902
Implement show / hide / isolate in spatial decomposition panel
2024-07-16 14:23:30 +10:00
Dion Moult
83085ba3c1
You can now toggle recursive children in the spatial tree
2024-07-15 23:56:35 +10:00
Dion Moult
215866cf30
You can now make a spatial element the active object from the spatial decomposition panel
2024-07-15 23:40:40 +10:00
Andrej730
09d5fafdf8
note on OCC imports
2024-07-15 18:34:39 +05:00
Andrej730
54cc4192bd
typing for pythonocc types
2024-07-15 18:34:39 +05:00
Andrej730
eff778d5be
support pythonocc >= 7.8.0 #4942
...
Related: https://github.com/tpaviot/pythonocc-core/issues/1350
Also added a print so this type of errors won't go silently.
2024-07-15 18:34:38 +05:00
Andrej730
66877c227b
typing
2024-07-15 18:34:38 +05:00
Andrej730
7e117bca90
Move supported OCCT version in docs to general dependencies
2024-07-15 18:34:38 +05:00
Andrej730
9f084558f6
mathutils note
2024-07-15 18:34:38 +05:00
Dion Moult
c715d9a81b
A spatial tree's icon can now be hovered to show the class and clicked to select children
2024-07-15 23:29:53 +10:00
Dion Moult
8923d02f68
Update to latest Sphinx AutoAPI
2024-07-15 09:20:56 +10:00
Dion Moult
447a13b6e7
Forgot to do the same for PyPI
2024-07-14 23:31:34 +10:00
Dion Moult
2531a58083
Fix IOS-Python build to use the new platform-specific blobs
2024-07-14 23:27:22 +10:00
Dion Moult
70ae0fd850
Same for IOS, I guess?
2024-07-14 23:21:04 +10:00
Dion Moult
174749caf7
Don't make IOS version dynamic for BBIM since this'll be locked to a particular commit
2024-07-14 23:14:40 +10:00
Dion Moult
dd8ec95fad
Whoops
2024-07-14 23:10:51 +10:00
Dion Moult
0a791a3b85
Release 0.7.10
...
This is just a test release to see if the workflow is smooth :)
2024-07-14 23:05:50 +10:00
Dion Moult
1c91b966b5
Fix pyradiance dependency
2024-07-14 23:03:45 +10:00
Dion Moult
db6cda2816
Fix #4955 . Add visualisation for georeferencing data.
2024-07-14 17:13:49 +10:00
Dion Moult
d6dab75653
Allow warning and background decorator colours to be configurable
2024-07-14 16:39:29 +10:00
Dion Moult
0dc084d785
Refactor georeferencing properties to remove unnecessary blender_enh/project_north.
2024-07-14 09:06:01 +10:00
Blender Defender
3bafea62f4
feat: Make the ExecuteIfcTester operator work with multiple IFC and IDS files
...
The code that executes the tests has been moved to a seperate method, so it can be called for every IDS and IFC file
2024-07-14 08:34:39 +10:00
Blender Defender
69b7658196
fix(UI): Indicate, that multiple IDS and IFC files can be selected in the IFC Tester Panel
2024-07-14 08:34:39 +10:00
Blender Defender
9e93f22e53
fix: Remove "ANIMATABLE" option from the should_load_from_memory property
2024-07-14 08:34:39 +10:00
Blender Defender
94bcb8d266
feat: Allow selecting multiple IFC and IDS files in the IFC tester
...
This implements the "MultipleFileSelector" for the file selection in the "IFC Tester" panel, so multiple files can be selected at once. Attention: This commit only adds the User Interface, the actual functionality will be added in a later commit
2024-07-14 08:34:39 +10:00
Blender Defender
bbd4e00972
refactor: Abstract "SelectFMIfcFile" to "MultipleFileSelector".
...
The "MultipleFileSelector" class can be used by child classes to implement the option to select multiple files at once. It requires two properties, which it will update: A StringProperty for a single path and a CollectionProperty for a list of paths.
2024-07-14 08:34:39 +10:00
Blender Defender
16e8c504f3
fix: Remove "Animatable" Property from the IFC Tester checkboxes
2024-07-14 08:34:39 +10:00
Dion Moult
95c457f53d
Fix bug to use 0.8.0 materials when linking models
2024-07-13 14:50:46 +10:00
ay-ex
38f5b77f92
fix delete obsolete script
2024-07-13 00:32:09 +10:00
ay-ex
4f1a36753c
fix delete obsolete script
2024-07-13 00:32:09 +10:00
ay-ex
565a0edb73
remove obsolete script
2024-07-13 00:32:09 +10:00
ay-ex
54a65abd76
fix cleanup
2024-07-13 00:32:09 +10:00
Dion Moult
5b16699eb4
Show length, area, volume units by default in unit panel for convenience
2024-07-13 00:06:14 +10:00
Dion Moult
b4482780cf
Linking models now acommodates files with different project or map units combinations correctly
2024-07-12 23:58:18 +10:00
Dion Moult
589b9d4a79
Add test files for georeferencing tests
2024-07-12 23:56:08 +10:00
Dion Moult
04365053a8
Fix deep purge of unit when converting units and fix bug where unit was removed if map unit was the same as the project unit
2024-07-12 22:48:23 +10:00
Dion Moult
c79e490d6d
Add test for fix in f56bae14
2024-07-12 21:57:29 +10:00
Johannes Schorr
b674b8ca58
Fix typo in doctring in ifcdiff.py
2024-07-12 15:01:07 +10:00
VDobranov
f56bae141b
Update shape_builder.py
...
Described in the https://github.com/IfcOpenShell/IfcOpenShell/issues/4989
2024-07-12 14:59:04 +10:00
Andrej730
8579c61ab6
ifcopenshell.draw - add drawing_object_type argument and descriptions
2024-07-11 19:03:09 +05:00
Andrej730
5440445cbc
ifcopenshell.draw - error if just 1 file is provided
2024-07-11 19:03:09 +05:00
Dion Moult
e28b4d40ab
Converting project length units now intelligently preserves map unit and coordinate operation scale.
2024-07-11 23:10:24 +10:00
Dion Moult
a6940d2cba
Fix bug where schema instead of schema_identifer was used to get the schema_by_name. Fix tests to use IFC4X3_ADD2 so that you only need the official version compiled
2024-07-11 22:26:19 +10:00
Dion Moult
9f14769cba
Very minor UI improvement to saving work calendar changes to show the text in the edit button
2024-07-11 22:26:19 +10:00
Richard Brice
585eeb283a
emits * for derived entities instead of $
...
Validation service 0.6.4 started giving errors for entities with derived types where $ was used. The correct coding is *.
2024-07-10 12:51:27 -07:00
Andrej730
3a6c3a8312
add typing-extensions to ifcopenshell explicit dependencies
...
typing-extensions is official python package for supporting typing features on older versions.
It was kind of included in both blenderbim and to ifcopenshell as typing-extensions is also numpy dependency, included it explicitly just in case.
2024-07-10 21:37:34 +05:00
Andrej730
86fa24aba3
fix support for Python <3.11
2024-07-10 21:37:08 +05:00
Andrej730
474d8381ab
minor refactor
2024-07-10 18:38:39 +05:00
Andrej730
feea42f988
ifcopenshell.draw - add hlr_poly option
2024-07-10 15:34:35 +05:00
Andrej730
88d3152f04
bim.debug_active_drawing - fix issue running when Exclude is None
...
It was producing invalid selector expression "None, guid1, guid2, ..." leading to errors
2024-07-10 15:34:35 +05:00
Andrej730
515bfd1beb
make bim.profile_import_ifc a bit more friendly
2024-07-10 15:34:35 +05:00
Andrej730
472e2f8e59
Add to debug UI an operator to toggle detailed ifcopenshell logs
...
https://i.imgur.com/tqwRSYs.png
Ping @theoryshaw just in case, I can image Ryan finding lots of edge cases in v0.8.0 and this can help narrow them down😁
2024-07-10 15:34:35 +05:00
Andrej730
83a0d7a63c
prevent freezing the iterator in case of unhandled exceptions
...
Solving an issue in 355cca3 I've noticed that because of some unhandled exception iterator was freezing and hanging indefinitely, this should be resolved now to be safe.
Also added had_errors_during_initialization() method that can help identify whether there were errors either during iterator initialization or processing elements.
2024-07-10 15:34:35 +05:00
Dion Moult
4e78de6ce9
You can now select group and system data in selectors
2024-07-10 17:30:38 +10:00
ay-ex
670bf9d4a6
fix use release tag for choco version label
2024-07-10 17:16:54 +10:00
Dion Moult
ad1183dab8
Update README.md with all distribution badges
2024-07-10 11:26:46 +10:00
Dion Moult
a1568641b0
Fix #4969 . Minor fix where demo library had misnamed slab thicknesses.
2024-07-10 09:23:12 +10:00
Dion Moult
76a6ad6596
Fix #4996 . Don't use assert_never to support Python 3.10.
2024-07-10 09:01:35 +10:00
Andrej730
355cca3679
Improve styles handling (partially support non-shading styles/fix bugs)
...
1) Previously create_shape (was failing with "RuntimeError: Unexpected topology") or iterator (was hanging indefinetely trying initialize with a IfcSlab from #4898 ) were breaking if element had a material that had IfcSurfaceStyle with just IfcExternallyDefinedSurfaceStyle and no IfcSurfaceStyleShading.
Now get_surface_style is returning IfcSurfaceStyle as first element of the pair even if there was no IfcSurfaceStyleShading - so it can be used to create a `taxonomy::style::ptr` with it to indicate that geometry is still referring to some style.
2) Added logs for unsupported presentation styles (non-IfcSurfaceStyles) to both `mapping::map_impl(const IfcSchema::IfcStyledItem* inst)` and `mapping::map_impl(const IfcSchema::IfcMaterial* material)`. Also `map_impl` will not break now if it will meet IfcCurveStyle.
2024-07-09 20:13:59 +05:00
Chirag Singh
7e1eadf54c
Wrapped import pyradiance in a try-except to accommodate mac intel
2024-07-09 23:30:57 +10:00
Chirag Singh
a2dead2dd7
Radiance Support added
2024-07-09 23:30:57 +10:00
Chirag Singh
220fb13eec
Created a UI for Radiance Rendering in the Services and System Panel
2024-07-09 23:30:57 +10:00
Dion Moult
7c1c139074
Attempt to bundle pyradiance
2024-07-09 22:03:04 +10:00
Dion Moult
3a3421897c
Forgot to implement autoguessed project norths from site/building guessed origins (typically for 2X3 models with no georeferencing data)
2024-07-09 18:48:04 +10:00
Dion Moult
b34d10bd35
Bump IOS
2024-07-09 08:23:04 +10:00
Andrej730
8e86b3d1d8
util.shape - optimize by using shape buffers and numpy
2024-07-08 18:49:12 +05:00
Andrej730
acf135a6ed
Store item_ids in imported meshes and set them on toggling edit mode
...
It will be used later to add more IFC capabilities to EDIT mode.
Example - https://imgur.com/a/HAkjoCY
2024-07-08 17:46:11 +05:00
Andrej730
7c1459b83e
clean up ios_materials after they were processed
2024-07-08 17:46:11 +05:00
Andrej730
dd561d3703
remove material assignment listener #4843
2024-07-08 17:46:11 +05:00
Andrej730
24c4858570
Profiles UI - support renaming profiles by double-click
...
Example - https://imgur.com/a/05I5tSz
2024-07-08 17:45:43 +05:00
Andrej730
9690bfb1ed
Styles UI - support renaming styles by double click
...
Example - https://imgur.com/a/X7WBllz
2024-07-08 17:44:41 +05:00
Andrej730
fd48f70ef1
poll message that non-IfcSurfaceStyles are not currently supported
...
https://i.imgur.com/EBbMUaI.png
2024-07-08 17:43:55 +05:00
Andrej730
c33c19c483
Support renaming materials by double clicking them in materials ui
...
Example - https://imgur.com/a/NXr6Ku2
Which is especially important for non-IfcMaterials as they currently don't have their own editing UI (besides when they are applied to some element).
2024-07-08 17:43:55 +05:00
Andrej730
c9989c5f8f
Materials UI - indiciate currently active material type
...
Example - https://imgur.com/a/hn7iJgP
2024-07-08 17:43:55 +05:00
Andrej730
d996811306
don't consider material usages as overriding materials
...
All it does it removes the "Inherited Material Is Occurrence Overridden" label for material usages.
2024-07-08 17:43:55 +05:00
Andrej730
10b5910654
support assigning existing non-ifcmaterials materials
...
Example - https://imgur.com/a/KN8mQPL
Also added some description to material operators (https://imgur.com/a/eIVNEdU). Need to somehow emphasize that this UI is only for IfcMaterials and cannot be used to assign existing layer sets, profile sets, etc...
2024-07-08 17:43:55 +05:00
Andrej730
ee5b3d1775
show materials descriptions in the tooltip when assigning a material
...
Example - https://i.imgur.com/yi96BMa.png
2024-07-08 17:43:55 +05:00
Andrej730
b45a995bb3
typing
2024-07-08 17:43:55 +05:00
ay-ex
fc45e587c0
fix git clone depth
2024-07-08 20:40:03 +10:00
Thomas Krijnen
c18e4ea6ce
Update build-all.py
2024-07-08 08:48:53 +02:00
Dion Moult
ff662fdfcf
Merging projects now accomodates models with different project norths
2024-07-08 11:38:42 +10:00
Thomas Krijnen
f075b0ca52
Update build-all.py
2024-07-07 21:51:03 +02:00
Dion Moult
a3844fe098
More tests and fixes for linking in models with different project norths
2024-07-07 23:59:13 +10:00
Dion Moult
d00e60369b
Bump IOS
2024-07-07 22:24:35 +10:00
Dion Moult
22b7027746
Fix bug where automatic false origin detection didn't do anything if linking from an empty Blender session
2024-07-07 15:53:06 +10:00
Ryan Schultz
410fff6ee9
Fix #4494 - Be able to search (select objects in scene) from the Spreadsheet Import/Export UI, as well.
2024-07-06 11:43:39 -05:00
Dion Moult
9d11f8a25b
Linking in models now considers multiple project norths and federates it properly
2024-07-06 17:00:21 +10:00
Dion Moult
95f71a2e2f
You can now specify custom project norths when loading in models in absolute terms
2024-07-06 15:43:16 +10:00
Dion Moult
accb1890dc
Minor fix where bSDD didn't load IFC properties
2024-07-06 15:40:25 +10:00
Ryan Schultz
2a808318bf
fix #4665 - View layerset thicknesses in feet and inches format
2024-07-05 22:26:36 -05:00
Andrej730
24d1a2ee64
black format
2024-07-05 18:33:49 +05:00
Andrej730
1d59edcbe8
typing & use common tool.Ifc.Operator class
...
Lazy imported some modules to prevent circular imports.
2024-07-05 18:33:49 +05:00
Andrej730
8a9ca9ac60
remove bbim material unassignment listener #4843
...
Listeners are implicit and get in the way sometimes, we should work on our core methods and make explicit calls.
2024-07-05 18:33:48 +05:00
Andrej730
7a89d8f5ed
smal core.material.unassign_material refactor
2024-07-05 18:33:48 +05:00
Andrej730
a6951d1a6d
fix material tool tests after 75f8e75 and 114fca8
2024-07-05 18:33:48 +05:00
Andrej730
1cdd4c27fc
fix geometry core tests after fccf56d5f
2024-07-05 17:57:17 +05:00
Andrej730
7acea25fdf
fix material core tests after 58a7ef6
2024-07-05 17:57:17 +05:00
Andrej730
2510e4e6c4
bim.add_representation - OBJECT method to use the final geometry
...
E.g. with all modifiers and shape keys applied.
Example - https://imgur.com/a/rbf5RtI
2024-07-05 17:01:39 +05:00
Andrej730
d0f4c25c9f
bim.duplicate_material to handle IfcMaterialLayerSets names
2024-07-05 17:01:39 +05:00
Andrej730
0557ff810a
Fix bug duplicating styles not duplicating blender material #4843
2024-07-05 17:01:39 +05:00
Andrej730
fdaf059c60
Fix bug duplicating and editing materials #4843
...
It was giving errors trying since ifc materials are no longer to connect to the blender materials.
2024-07-05 17:01:38 +05:00
Ziad-I
79f96d22a5
add logo and change path of jsgantt lib
2024-07-05 21:36:07 +10:00
Ziad-I
31e7cd7a8c
add old gantt ui if web ui is not running
2024-07-05 21:36:07 +10:00
Ziad-I
6b274535c6
fix setting editable after printing
2024-07-05 21:36:07 +10:00
Ziad-I
410767921d
add display and update for work schedule data
2024-07-05 21:36:07 +10:00
Ziad-I
78dd4856eb
fix editing task name and time from webui
2024-07-05 21:36:07 +10:00
Ziad-I
166e75db3f
add editing of gantt chart from webui
2024-07-05 21:36:07 +10:00
Ziad-I
01c7be2b48
fix sending work_schedule
2024-07-05 21:36:07 +10:00
Ziad-I
d05e30b4c5
fix updating chart error
2024-07-05 21:36:07 +10:00
Ziad-I
4f44bde9e9
add sending updated task column data
2024-07-05 21:36:07 +10:00
Ziad-I
bd50276e7d
fix error with getting blenderId from chart id
2024-07-05 21:36:07 +10:00
Ziad-I
58b132136d
remove unneeded loop for task creation in gantt chart
2024-07-05 21:36:07 +10:00
Ziad-I
bd8988a474
add updating of gantt chart
2024-07-05 21:36:07 +10:00
Ziad-I
c0216efffe
add sending gantt data on pressing generate gantt chart in blender
2024-07-05 21:36:07 +10:00
Ziad-I
25e964788c
add key name parameter in send_webui_data
2024-07-05 21:36:07 +10:00
Ziad-I
52d9cbff28
add change event handling in gantt data table
2024-07-05 21:36:07 +10:00
Ziad-I
1eb9537d58
refactor web ui operator handling
2024-07-05 21:36:07 +10:00
Ziad-I
24c753a09d
add print options selection button
2024-07-05 21:36:07 +10:00
Ziad-I
b5a130263a
fix some css issues
2024-07-05 21:36:07 +10:00
Ziad-I
13a1252c77
add print button for gantt chart
2024-07-05 21:36:07 +10:00
Ziad-I
f338f66b4b
add gantt html/css/js
2024-07-05 21:36:07 +10:00
Ziad-I
a782812911
rename styles.css to index.css
...
to reflect which page it is used for
2024-07-05 21:36:07 +10:00
Ziad-I
10f96d873a
small index html/css changes
2024-07-05 21:36:07 +10:00
Ziad-I
09a2494967
add handler for gantt url path
2024-07-05 21:36:07 +10:00
Andrej730
84d58cc572
revert 4211e7a93 to restore bot builds #4980
2024-07-05 14:55:19 +05:00
Andrej730
74e27a27b5
bump BBIM build
2024-07-05 12:02:16 +05:00
Andrej730
f5b71543af
makefile "bump" target changes
...
1) added current commit hash as a variable to the makefile, so you can now just `make bump NEW=xxxx` to bump the build version instead of `make bump OLD=yyyy NEW=xxxx`.
2) added binary mode to sed command, so it won't be changing current line endings
2024-07-05 12:02:05 +05:00
Andrej730
ef39acfb05
Suffixes for compiled .pyd/.so based on the platform #4686
2024-07-05 11:44:01 +05:00
ay-ex
8abb8d1102
fix fetch with tags
2024-07-05 15:24:34 +10:00
ay-ex
4db3c60ccf
add choco_release git debug info
2024-07-05 15:24:34 +10:00
Ryan Schultz
baec208303
For walls, labeling which side is exterior/interior
2024-07-04 08:51:39 -05:00
Thomas Krijnen
dda4dd3ab5
occt 7.6 compatibility
2024-07-04 09:08:30 +02:00
petrisch
2ddbf57597
Little typo
2024-07-04 11:34:07 +05:00
Andrej730
f1290ef061
Replace SEW_SHELLS with REORIENT_SHELLS #4832
2024-07-04 11:10:24 +05:00
Thomas Krijnen
cf3d050423
Rename taxonomy kind enum accordingly
2024-07-03 20:04:52 +02:00
Thomas Krijnen
a4532cc722
Remove assumptions on solid topology in SVG camera frustrum detection #4924
2024-07-03 20:04:52 +02:00
Thomas Krijnen
813a8e12ed
Update python bindings for name changes
2024-07-03 20:04:52 +02:00
Thomas Krijnen
10059a722b
Handling of None in draw.py #4924 - mostly untested
2024-07-03 20:02:13 +02:00
Andrej730
4211e7a936
IfcWrap CMake - migrate to FindPython
...
Previously it was giving deprecation warnings:
CMake Warning (dev) at /IfcOpenShell/src/ifcwrap/CMakeLists.txt:38 (FIND_PACKAGE):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
CMake Warning (dev) at /IfcOpenShell/src/ifcwrap/CMakeLists.txt:73 (FIND_PACKAGE):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
2024-07-03 18:12:22 +05:00
Andrej730
33785620d5
Fix errors loading bounding box representations #4832
2024-07-03 18:12:21 +05:00
Andrej730
5a0df870f5
bim.add_representation - update occurrences too if there were no representations
...
and new representation was just added to the type
Example - https://imgur.com/a/v6a5kg2
2024-07-03 18:12:21 +05:00
Andrej730
f9aba58342
IfcOperator typing
...
Added typing to make sure IfcOperator is properly implemented and not used if there are no IFC changes.
2024-07-03 18:12:21 +05:00
Andrej730
788fb62f25
bim.add_representation - clean up orphaned temporary meshes
2024-07-03 18:12:21 +05:00
Andrej730
cc6d254698
bim.add_representation - option to add default cube representation
...
Example - https://imgur.com/a/Mklgmhj
It can be useful as a way to start working with the representation when object had no representations before.
You can also now add a representation from other object even if object had no representation before.
2024-07-03 18:12:21 +05:00
Andrej730
3f2703ca21
tool.Geometry method for adding a data to an empty object
2024-07-03 18:12:21 +05:00
Andrej730
e72f2758c6
bim.add_representation - OBJECT conversion method UX tweaks
...
1) Filter only objects with representations in the pointer property.
2) Add description to the pointer property.
3) More descriptive error if object is not selected.
2024-07-03 18:12:20 +05:00
Andrej730
2feae06ebd
bim.add_representation - error if current object has is an empty
2024-07-03 18:12:20 +05:00
Andrej730
fccf56d5fd
fix issue removing currently active representation
...
previously it would remove the object, now it's going to switch to some other representation
2024-07-03 18:12:20 +05:00
Andrej730
6e9309aefc
common method for iterating over element's representations
2024-07-03 18:12:20 +05:00
Andrej730
fbe60c85a1
use common method to generate mesh name
2024-07-03 18:12:20 +05:00
Andrej730
8f92877fb4
typing
2024-07-03 18:12:20 +05:00
Andrej730
5d1b2e4651
black format
2024-07-03 18:12:19 +05:00
Thomas Krijnen
10c3893b79
Missing file
2024-07-03 15:07:28 +02:00
Thomas Krijnen
e2198c3ba7
Advanced brep: closed underlying nurbs curve handling #4895
2024-07-03 15:03:49 +02:00
ay-ex
752a64bf3e
choco release fix ( #4971 )
...
* add release script choco_release.py
* fix simplify action yaml
2024-07-03 22:52:32 +10:00
Thomas Krijnen
71ef1bf056
Advanced brep, sweeps and various fixes #4848 #4895
2024-07-03 14:42:51 +02:00
Thomas Krijnen
d4efcd40f9
Advanced brep, sweeps and various fixes #4848 #4895
2024-07-03 14:36:35 +02:00
Andrej730
9485190604
ifcopenshell.draw - omit sys.argv + help message
...
To make sure user will get an error if files are not provided - if we use sys.argv then we always have __file__ in it and if user won't provide fiels they'll get a less readable error
Before:
sr.setFile(files[0])
~~~~~^^^
IndexError: list index out of range
Now:
usage: draw.py files [files ...]
draw.py: error: the following arguments are required: files
2024-07-02 15:32:48 +05:00
Andrej730
d1523eaeac
ifcopenshell.draw - update to v0.8
2024-07-02 15:32:48 +05:00
Andrej730
1af8e7d0ef
ifcopenshell.geom.serializers - avoid wrappers for svg/obj
...
To keep the signatures
2024-07-02 15:32:48 +05:00
Thomas Krijnen
19b89a3b1f
Workarounds for unstyled elements in tree and wrapper #4924
2024-07-02 11:44:00 +02:00
Dion Moult
b73da046ee
See #4964 . Forgot to commit qto function.
2024-07-02 18:59:13 +10:00
Thomas Krijnen
675e1982ee
Move macro logic into template function; mark failures as intended #4915
2024-07-01 20:34:51 +02:00
Thomas Krijnen
0357d15ce4
Exhaustive USD Format extensions
2024-07-01 20:30:34 +02:00
Thomas Krijnen
22cd1e8b9e
Another case of mutability causing havoc
2024-07-01 19:55:14 +02:00
Andrej730
0f8f6419e9
Indicate in UI if object's ifc placement/representation is not synced
...
Example - https://imgur.com/a/lixOxeN
Ideally users shouldn't need those as syncing should work seamlessly but since we do have syncing it can be useful if you can check sync status from the UI.
2024-07-01 18:26:04 +05:00
Andrej730
bd7ee0a1c6
Recent IFC projects - add tests
2024-07-01 18:26:04 +05:00
Andrej730
4463548740
move recent IFC projects tools from Blender to Project module
...
as Project is probably more appropriate for this
2024-07-01 18:26:03 +05:00
Andrej730
5655df2081
Recent IFC projects - show schema in the tooltip
...
Example - https://i.imgur.com/0op89zh.png
2024-07-01 18:26:03 +05:00
Andrej730
deb0b3482b
IfcHeaderExtractor tests
2024-07-01 18:26:03 +05:00
Andrej730
ae2a299616
move IfcHeaderExtractor to util.file
...
edited pyproject.toml as `disableBytesTypePromotions` is disabled by default in non-strict mode and type checker intrerprets `bytes` as `bytes | memoryview | bytearray` which is deprecated in https://peps.python.org/pep-0688/#no-special-meaning-for-bytes
2024-07-01 18:26:03 +05:00
Andrej730
375deaad1e
Add description to "Upgrade to IFC4/IFC4X3)" operator
...
To emphasize that it won't overwrite the current file.
Example - https://i.imgur.com/CKIQJwn.png
2024-07-01 18:26:03 +05:00
Andrej730
f692e943c9
typing
2024-07-01 18:26:03 +05:00
Andrej730
8538a916a3
ifcopenshell.file docs
2024-07-01 18:26:02 +05:00
ay-ex
a8b2997e58
fix choco.yml ( #4959 )
2024-07-01 17:12:58 +10:00
Dion Moult
5c151c6b57
Bump bot build
2024-07-01 11:44:17 +10:00
shungeer
8c12da13e6
Update README.md about extend express usage ( #4841 )
...
1. C++ code generation by extend express.
2. python rule code generation by extend express.
2024-07-01 11:20:30 +10:00
DimitriosThe
20f8181ac3
Update csv4d2ifc.py ( #4935 )
...
Please correct me if I am wrong:
while trying to create relationships I saw that in def create_rel_sequence (line 194) there is a parameter missing which should reflect the "rel_type", otherwise and according to "assign_sequence.py" the sequence_type remains
def assign_sequence(
file: ifcopenshell.file,
relating_process: ifcopenshell.entity_instance,
related_process: ifcopenshell.entity_instance,
sequence_type: str = "FINISH_START",
2024-07-01 11:18:13 +10:00
John Yani
656a519126
[docs] Starting Project 0 tutorial ( #4953 )
2024-07-01 11:17:24 +10:00
Dion Moult
71869b65f3
Minor fix to warn users closing an error that their model could be in a bad state (future sync errors etc)
2024-07-01 10:43:07 +10:00
Dion Moult
fe8d42c27c
Minor fix for missing flip button for doors
2024-07-01 10:30:16 +10:00
Dion Moult
688c841a8e
Fix #4946 . Refactor model wall join operators into core for better error reporting
...
The operator is no longer needed and all the variations can be called exactly at the workspace hotkey level now (and thus nested operator errors won't cause runtime exceptions)
2024-07-01 10:15:48 +10:00
Dion Moult
989219e1e2
See #4946 . Slowly start refactoring out model module into core for better error handling.
2024-07-01 00:10:51 +10:00
Dion Moult
f2c3e62ba1
Minor signature clean up to tool.Model.load_openings (unused arg)
2024-06-30 21:46:21 +10:00
Dion Moult
73f546aab1
Don't attempt to manipulate type visibility when selecting a type.
2024-06-30 21:46:03 +10:00
Dion Moult
c4b3e57677
Fix bug where using the alignment tool broke on flipped non-LAYER2 objects
...
The alignment tool was initially designed specifically for LAYER2 objects. It doesn't have to be, so now LAYER2 is a special case where it may have its baselines and sidelines aligned whereas non-LAYER2 objects simply align based on bbox.
2024-06-30 21:40:21 +10:00
Dion Moult
4e9f2ea4b2
Add georeferencing integration tests
2024-06-30 17:01:39 +10:00
Dion Moult
2efeb6edb3
Fix bug where context has no active_object when creating a new project from File > New with a preset
2024-06-29 22:20:08 +10:00
Thomas Krijnen
c68dcba087
Implement element-hierarchy setting in USD
2024-06-29 14:16:07 +02:00
Thomas Krijnen
a92d51aeb1
Merge branch 'v0.8.0' of https://github.com/IfcOpenShell/IfcOpenShell into v0.8.0
2024-06-29 14:14:59 +02:00
Dion Moult
0544bbc886
Temporarily disable material listeners as they need to be rewritten anyway (ideally without listeners) with the new style system
...
At least now we can create types for testing
2024-06-29 21:39:38 +10:00
Dion Moult
9a871f1459
Merging projects can now handle projects with different false origins
...
Warning: I haven't yet looked at rotations. Yikes. No CRS reprojection either.
2024-06-29 17:05:06 +10:00
Dion Moult
0d401c9272
Fix bug where migrating length units didn't change properties. Unit utility for checking attribute types now considers select types too
...
Changing properties is very critical for IFC2X3 georeferencing which is stored in a pset.
2024-06-29 17:04:27 +10:00
Dion Moult
2129350ab7
Fix bug where MergeProject didn't clean up duplicate CRS and coordinate operations
2024-06-29 17:03:26 +10:00
Dion Moult
43bc979114
The MergeProject recipe now accepts a file object, not always a filepath
2024-06-29 17:01:58 +10:00
Thomas Krijnen
a0458eeb91
Fix USD transformations after v0.8 migration
2024-06-28 20:26:11 +02:00
Thomas Krijnen
c7232a780a
Remove debug print
2024-06-28 16:21:33 +02:00
Thomas Krijnen
e96b4c11a2
Implement edge as top-level representation item #4924
2024-06-28 16:19:43 +02:00
Thomas Krijnen
fecca6a8b2
What a bad idea to let ellipse inherit from circle"
2024-06-28 16:19:43 +02:00
Andrej730
1fc56585dd
Support loading BlenderBIM in Blender 4.2+ as an extension
...
1) Used a hack to bring `blenderbim` into the main namespace instead of `bl_ext.repository.blenderbim`. This is not an official way to do it but this works for testing stuff (official way is to create a stub wheel that would redirect all `blenderbim` requests to `bl_ext.repository.blenderbim`).
2) AddonPreferences now require blender package name as it's bl_idname (e.g. bl_ext.repository.blenderbim)
3) Addressing preferences now also works through the blender package name. Created method in tool/Blender.py to incapsulate those details.
2024-06-28 18:46:08 +05:00
Andrej730
d1be0e8c1c
create_shape - raise the same error for representations and rep items
...
To be consistent with how it's handled when product+representation is passed, previously it would fail silently.
2024-06-28 18:24:58 +05:00
Andrej730
dcc568f5a3
ifcopenshell.geom.create_shape - expose geometry_library argument
2024-06-28 18:24:58 +05:00
Andrej730
2e4a2712e9
ifcopenshell.geom - document available geometry libraries
2024-06-28 18:24:58 +05:00
Andrej730
d4b055aeb2
Open recent IFC project #3657
...
Example - https://imgur.com/a/EDfBTJS
Paths to the opened IFC projects are now stored and then you can open them from File -> Open Recent IFC Project menu. It's done in very similar way to how Blender does it, list of files is stored in `Blender\4.1\config\recent-ifc-projects.txt`.
2024-06-28 18:24:58 +05:00
Andrej730
0e2cc463c8
Fix issue loading curve representations #4924
...
Issue occurred in the process of solving #4843 .
2024-06-28 18:16:32 +05:00
Andrej730
c3930a6573
black format
2024-06-28 18:16:32 +05:00
Andrej730
3c094b7bd2
typing
2024-06-28 18:16:32 +05:00
Dion Moult
f8dffa1a9b
Move new project wizard into its own panel and actually title it "New Project Wizard" for clarity
2024-06-28 22:50:02 +10:00
Dion Moult
03b6c08c50
Remove unload project button - superseded by Convert To Blender File operator
2024-06-28 22:50:02 +10:00
Thomas Krijnen
42b96d6290
Further work on trying to get orientation properly mapped
2024-06-28 13:41:01 +02:00
Thomas Krijnen
c240f0582a
Add TBB_INCLUDE_DIR
2024-06-28 13:40:19 +02:00
Thomas Krijnen
76b7748be1
Note some time points #4915
2024-06-28 13:39:58 +02:00
Thomas Krijnen
a2334f4ce0
More 4X3 non-ADD2 permissiveness in param values on polynomials
2024-06-28 13:39:19 +02:00
Thomas Krijnen
db50c87bf4
Fixed collections not being geom_items in mapped item handling
2024-06-28 13:38:56 +02:00
Thomas Krijnen
dc8766cf0a
Formatting improvements
2024-06-28 13:38:36 +02:00
Dion Moult
158f3d2962
Migrating calendar dates from IFC2X3 to IFC4 is now supported
2024-06-28 21:36:45 +10:00
Dion Moult
008fa70345
Fix failing collector tests to align with new behaviour
2024-06-28 21:15:53 +10:00
ay-ex
e59cd80868
fix choco release ( #4941 )
...
* fix choco action
* fix choco action env vars
* fix choco action env vars
* fix choco action py version source regex
2024-06-28 19:33:58 +10:00
Dion Moult
f0d7965d49
Fix #4804 . Prevent possible execution of toggle edit mode if there is no active object.
...
Recent changes in the UI already make this very unlikely - we don't show the ability to toggle edit mode pre-emptively in the viewport tob bar but just in case...
2024-06-28 14:25:56 +10:00
Dion Moult
b616cafa49
Minor typing hint and disable linear position elements from loading
2024-06-28 13:01:15 +10:00
Dion Moult
70bb0e5481
Update doc code examples to use static functions
2024-06-28 12:54:14 +10:00
Dion Moult
07060fc769
Replace all ifcopenshell.api.run with ifcopenshell.api static functions.
2024-06-28 12:36:31 +10:00
Dion Moult
b5d613989e
Merge pull request #4938 from Vanuan/documentation_geometry
...
[docs] Geometry related documentation
2024-06-28 07:05:46 +10:00
Vanuan
f604aa8b6b
Geometry related documentation
2024-06-27 23:40:39 +03:00
Andrej730
dc8912c128
-m ifcopenshell.validate not to print an empty line if file is valid
2024-06-27 18:26:49 +05:00
Andrej730
07a0b4fe2d
-m ifcopenshell.validate to print a message if file is valid
2024-06-27 18:26:49 +05:00
Andrej730
eb67ffcbec
Use ifc4 for enum entities in select attributes validation test #4927
2024-06-27 18:26:49 +05:00
Andrej730
4ec8345716
typing
2024-06-27 18:26:49 +05:00
Andrej730
56d3b2ca36
Use release ifc4x3 version for validation tests
2024-06-27 18:26:49 +05:00
Andrej730
dd06b1a6c4
small addition to 14dbe121f
2024-06-27 18:26:49 +05:00
Dion Moult
3469a9caad
See #4727 . Load alignments (linear elements, linear positioning elements, and referents) by default.
2024-06-27 21:49:44 +10:00
Thomas Krijnen
599ca56496
Mark piecewise_function as geom_item #4727
2024-06-27 09:33:04 +02:00
Andrej730
14dbe121f6
update serializer settings literals #4912
2024-06-27 10:59:35 +05:00
Dion Moult
dee936b2c3
Fix beam Qto length and add more Qto mappings
2024-06-27 14:32:56 +10:00
mat
a98cddf676
Add Text Literal re-ordering #3643
2024-06-27 12:41:33 +10:00
Dion Moult
48d058a32a
Fix #4921 . When upgrading to IFC4X3, preprocess the file to remove deprecated style assignments
2024-06-27 11:49:12 +10:00
Dion Moult
98afb72ba3
Prefer MapConversionScaled in IFC4X3 for SetFalseOrigin
2024-06-27 11:49:12 +10:00
Dion Moult
2d5be6cf89
Search replace 0.7.0 with 0.8.0
2024-06-27 11:49:12 +10:00
Thomas Krijnen
1299a8f512
Mark edge as geom_item
2024-06-26 21:21:47 +02:00
Thomas Krijnen
eccbdfa76e
Eval eigen auto #4727
2024-06-26 21:21:47 +02:00
Andrej730
24e16d97f3
deprecate non-batching api #4474
2024-06-26 18:11:07 +05:00
Andrej730
13d61f0135
rename sequence.assign_workplan for consistency
2024-06-26 17:17:34 +05:00
Andrej730
c56a4a6c9d
Fix console errors from Representations UI if non-product element is selected
2024-06-26 17:17:34 +05:00
Andrej730
832dce462e
spatial manager - fix bug with elevation not converted to si
...
Leading to issues if you would change it in non-meters project.
2024-06-26 17:17:34 +05:00
Andrej730
6f45373edd
move switch_shading method from prop to tool
2024-06-26 17:06:30 +05:00
Andrej730
d5613e0e26
typing
2024-06-26 17:06:30 +05:00
Andrej730
d0ec4fe345
core tests - print unprocessed calls in pytest verbose mode
...
e.g. if you start test with pytest test_style.py -vv it will be easier to guess why it couldn't find a call
```
E Exception: <class 'abc.Ifc'> was not called with run:
E - {'type': 'SHOULD_BE_CALLED', 'number': None, 'call': {'name': 'run', 'args': ('style.add_surface_style',), 'kwargs': {'style': 'style', 'ifc_class': 'IfcSurfaceStyleShading', 'attributes': 'attributes'}}}
E Unprocessed calls:
E - {'name': 'run', 'args': ('style.add_style',), 'kwargs': {'name': 'name'}}
E - {'name': 'link', 'args': ('element', 'obj'), 'kwargs': {}}
E - {'name': 'run', 'args': ('style.add_surface_style',), 'kwargs': {'style': 'element', 'ifc_class': 'IfcSurfaceStyleShading', 'attributes': 'attributes'}}
```
2024-06-26 16:14:00 +05:00
Andrej730
665bf00f8b
fix core.style tests #4843
2024-06-26 16:14:00 +05:00
Andrej730
2d2ca64a72
Do not use tool.Ifc.Operator if no ifc data is changed
2024-06-26 16:14:00 +05:00
Andrej730
60cb41a428
remove some props from Material.BIMStyleProperties as deprecated #4843
2024-06-26 16:13:59 +05:00
Andrej730
a69f3e8da9
remove unnecessary linking in IfcImporter.create_style #4843
...
As it's already linked by `self.link_element(style, blender_material)`
2024-06-26 16:13:59 +05:00
Andrej730
2f81cab5f1
deprecate Material.BIMMaterialProperties #4843
...
As it now stored just 1 property and it's now moved to the BIMStyleProperties.
2024-06-26 16:13:59 +05:00
Andrej730
78e81542d9
fix couple issues after ce9e4f285 #4843
...
1) BBIM was failing to unregister properly.
2) Failed to link materials on load.
3) Failed to purge IFC file.
4) Error changing style name
2024-06-26 16:13:59 +05:00
Andrej730
7bbc81b7c3
create_shape - include more types in the docs
2024-06-26 16:13:59 +05:00
ay-ex
6e6b256c22
fix use release tag for url, bump py version to 3.11
2024-06-26 19:37:37 +10:00
ay-ex
d23eba9343
fix remove release needed check
2024-06-26 19:37:37 +10:00
ay-ex
e899104d56
add simple check for "release needed?"
2024-06-26 19:37:37 +10:00
Dion Moult
de00429df6
Make version in bot build download dynamic
2024-06-26 17:14:57 +10:00
Dion Moult
3aba82f608
Ensure all project feature tests pass
2024-06-26 17:14:39 +10:00
Dion Moult
cb85b690e7
Bump bot build
2024-06-26 17:09:58 +10:00
Vanuan
527742ca93
Basic IFC concepts
2024-06-26 14:50:32 +10:00
Dion Moult
b85dcdb437
Distribute IfcCityJSON on PyPI
2024-06-26 13:53:55 +10:00
Dion Moult
f740ca3cf1
Distribute Ifc5D on PyPI
2024-06-26 13:02:59 +10:00
Dion Moult
b9269b5a11
Distribute Ifc4D on PyPI
2024-06-26 13:02:18 +10:00
Dion Moult
16e98e1400
Distribute IfcFM on PyPI
2024-06-26 12:10:59 +10:00
Dion Moult
4976074b18
Distribute IfcDiff on PyPI
2024-06-26 12:03:08 +10:00
Dion Moult
e670a7ca71
See #4826 . If a Qto calculator returns none, don't fail
...
There can be valid reasons for this, such as if the calculator realises it cannot compute a value (e.g. no mass density when calculating weight)
2024-06-26 12:03:08 +10:00
Dion Moult
d892ad956c
See #4826 . Fix Qto calculator which assumes that openings have a predefined type (in IFC2X3 they don't)
2024-06-26 12:03:08 +10:00
Vanuan
ac42ed7bab
Blender docs: More stubs, walls, doors, windows
2024-06-26 11:55:02 +10:00
Dion Moult
bf677b839d
Only get bot build binaries and use latest python to fix latest install issues
2024-06-26 10:24:32 +10:00
Dion Moult
464815b045
Update drawing generator to use v0.8.0 settings syntax
2024-06-26 09:20:46 +10:00
Dion Moult
ae91c2b9f0
See #4919 . Include pip install instructions for utils in docs.
2024-06-26 09:16:21 +10:00
Thomas Krijnen
39cd980008
Pin freetype version, incompatible change made 5d ago
2024-06-25 21:26:37 +02:00
Andrej730
f364643d7e
fix assigning material usages / reloading reprs after c4ae9578e #4843
2024-06-25 18:30:52 +05:00
Andrej730
ef9bbd8de6
deprecate shading_checksum #4843
...
Changing diffuse color for Blender material now won't change the linked IFC style.
Since now all style parameters for styles are changed through styles UI and users shouldn't use Blender materials tab unless they want to do something advanced (though they are still currently can use it to assign material styles to the specific faces).
PS 1 less thing to sync 🥳
2024-06-25 18:30:52 +05:00
Andrej730
8172096a5b
Do not directly access IfcStore.edited_objs
2024-06-25 18:30:52 +05:00
Andrej730
46d3d3afe1
calculate materials checksum in a common method
2024-06-25 18:30:52 +05:00
Andrej730
39cd4187ea
Remove unused BIMMaterailProperties props #4843
...
attributes were deprecated in d219856
is_external and name were deprecated awhile ago in 3fe5c88 😁
2024-06-25 18:30:51 +05:00
Andrej730
d6a3bc3556
remove dead code for loading materials from external blend files
...
External blender materials are now supported from
2024-06-25 18:30:51 +05:00
Andrej730
ce9e4f2854
remove BIMObjectProperties from bpy.types.Material as deprecated #4843
2024-06-25 18:30:51 +05:00
Andrej730
7700e8016b
ifcopenshell.geom.create_shape - document all return types
2024-06-25 18:30:51 +05:00
Andrej730
6e1ebb02ac
file and entity - avoid infinite recursion if they fail to initialize
...
Example of the error:
Traceback (most recent call last):
File "\test.py", line 133, in <module>
ifc_file = ifcopenshell.file.from_string(ifc_str)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\ifcopenshell\file.py", line 648, in from_string
return file(ifcopenshell_wrapper.read(s))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\ifcopenshell\file.py", line 264, in __init__
raise exc(msg)
ifcopenshell.SchemaError: Unsupported schema: IFC2X3
Exception ignored in: <function file.__del__ at 0x00000250896EB740>
Traceback (most recent call last):
File "\ifcopenshell\file.py", line 282, in __del__
del file_dict[self.file_pointer()]
^^^^^^^^^^^^^^^^^
File "\ifcopenshell\file.py", line 424, in __getattr__
return getattr(self.wrapped_data, attr)
^^^^^^^^^^^^^^^^^
File "\ifcopenshell\file.py", line 424, in __getattr__
return getattr(self.wrapped_data, attr)
^^^^^^^^^^^^^^^^^
File "\ifcopenshell\file.py", line 424, in __getattr__
return getattr(self.wrapped_data, attr)
^^^^^^^^^^^^^^^^^
[Previous line repeated 996 more times]
RecursionError: maximum recursion depth exceeded
Simple way to trigger those recursions was:
import ifcopenshell
ifcopenshell.file(schema="IFC4x3_RC4_43c3555")
ifcopenshell.entity_instance(("IFC4X3", "IfcPresentationStyleAssignment"))
2024-06-25 18:30:51 +05:00
Andrej730
d2e7e3daaf
move ifc file handling logic to ifcopenshell.file
...
to reuse the same logic for both ifcopenshell.open and ifcopenshell.file.from_string()
2024-06-25 18:30:51 +05:00
Andrej730
5d6215d889
bim.unlink_object - add description
2024-06-25 18:30:51 +05:00
Andrej730
17eb45fb4e
Object metadata to double check element belongs to the current project
...
Just to be safe if it got from other Blender session and there is an IFC element with the same id in the current project. I guess we can't check it anywhere but information in "Object metadata" should very accurate as here user might decide to unlink it.
2024-06-25 18:30:51 +05:00
Andrej730
0a06d58c42
typing
2024-06-25 18:30:50 +05:00
Andrej730
a65c6b6d3f
bim.unlink_object to skip popup if element is not found
...
If element is not found then it should always use `should_delete == False`, so we can just hide the popup in that case so users won't get confused about what should they choose.
2024-06-25 18:30:50 +05:00
Andrej730
c5262274eb
bim.unlink_style - fix issue saving project after unlinking
2024-06-25 18:30:50 +05:00
Andrej730
65f94bcc0c
Fix for console errors in a0e5d350b when no material active
2024-06-25 18:30:50 +05:00
Ziad-I
804bbc47c3
fix exception when global id is not included in csv data
2024-06-25 23:15:58 +10:00
Ziad-I
a967665cbd
slight html/js/css changes
2024-06-25 23:15:58 +10:00
Ziad-I
cbd017aceb
now sets active object too when selecting from web UI
2024-06-25 23:15:58 +10:00
Ziad-I
8d9d142bc2
reorganize JS code to be outside of document.ready
2024-06-25 23:15:58 +10:00
Ziad-I
f6c30f2ddf
improved send function logic to make there be 1 function only
2024-06-25 23:15:58 +10:00
Ziad-I
d2a27999ba
add handling for web operator selection
...
where if user click on item in the table it gets selected in blender
2024-06-25 23:15:58 +10:00
Ziad-I
2738b280a1
now shows ifc file name before table
2024-06-25 23:15:58 +10:00
Ziad-I
c8946a19f2
edit html/js/css to use tabulator to show csv data
2024-06-25 23:15:58 +10:00
Ziad-I
6b1932c8d9
add event listeners in sioserver.py
...
added event listeners for sending csv data from blender and receiving operator data from web UI
2024-06-25 23:15:58 +10:00
Ziad-I
a133b51dcc
add new output format "web". might need to...
...
might need to rewrite the logic for the output format "web" at a later date if there is a better way
2024-06-25 23:15:58 +10:00
Ziad-I
6155edef0d
made sending data take the event and namespace names as args
2024-06-25 23:15:58 +10:00
Thomas Krijnen
439595f04c
Update build-all.py #3927
2024-06-25 11:44:26 +02:00
Thomas Krijnen
c1fa9fe28e
Option to read VERSION file in cmake #3927
2024-06-25 11:40:42 +02:00
Thomas Krijnen
54a0a5b454
Some more python mapping wrapping experiments
2024-06-24 21:57:16 +02:00
Thomas Krijnen
bace73f854
Switch back to minkowski dilation for the time being
2024-06-24 21:56:57 +02:00
Thomas Krijnen
8da68f599b
Move print() to header, distinguish properly between curve_sense and edge orientation, unwrap trimmed curves as edge bases, don't mutated cached edge in oriented edge processing, etc. #4895
2024-06-24 21:56:27 +02:00
Thomas Krijnen
278524ee3e
Uninitialized use of context
2024-06-24 21:52:31 +02:00
Thomas Krijnen
a9912f351f
Don't dereference empty unit assignment list
2024-06-24 21:52:08 +02:00
Thomas Krijnen
1e5c51e5b2
Update main.py
2024-06-24 21:48:54 +02:00
Dion Moult
44100f3c46
Fix isolating drawing camera now that we have a new collection structure
2024-06-24 23:41:00 +10:00
Dion Moult
713e9c8e14
Minor fix in IfcFM to derive occurrences from types (and make it easier to override)
2024-06-24 23:41:00 +10:00
Dion Moult
e6238a1f75
Georeference UI now lets you edit either a decimal degrees angle or an abscissa ordinate and calculates on the fly
...
Seriously no normal person uses abscissa and ordinate
2024-06-24 23:41:00 +10:00
Dion Moult
cfd440dae9
Remove georeferencing orientation calculator UI because it's superseded by built-in angle calculators
2024-06-24 23:41:00 +10:00
Andrej730
a0e5d350bd
Small UI in Blender material properties tab with unlinking #4843
...
Example - https://i.imgur.com/7VqIowz.png
This tab is needed only to indicate whether style is linked to some IFC element and to unlink it. Unlinking from Blender material makes much more sense as you can see from this tab what you're actually unlinking.
Unlinking for styles now works very similar to how it works for objects.
2024-06-24 18:37:55 +05:00
Andrej730
c37240cf96
pyproject.toml - disable pyright setting that conflicts with Blender api
...
See https://github.com/microsoft/pylance-release/issues/5457
2024-06-24 18:34:01 +05:00
Andrej730
115844279f
fix removing objects with materials after c4ae9578e #4843
...
temporary fix, we probably should indeed just get rid of that listener
2024-06-24 18:34:00 +05:00
Andrej730
cbb7c5620d
Fix unlinking objects with should_delete=False after 75f8e75
...
It was keeping a reference to that object in IfcStore which could lead to issues.
2024-06-24 18:34:00 +05:00
Andrej730
6d5d15793b
record material checksum if styles were changed during material assignment
...
previously they wasn't recorded leading to the applying them to the representation items on save
2024-06-24 18:34:00 +05:00
Andrej730
8ac6f59394
typing
2024-06-24 18:34:00 +05:00
Andrej730
5d8addf1f8
remove optimization option deprecated after e3cb811
2024-06-24 18:34:00 +05:00
Andrej730
9b9301cbb0
ifc4x3 docs parser - use release ifc4x3 version
2024-06-24 15:22:02 +05:00
Andrej730
4d9b461776
Update ifc4x3 docs with ifc4x3_add2 release version
2024-06-24 15:22:02 +05:00
Andrej730
36f7cdacbd
ifc4x3 docs - temporary fix for issue upstream
...
see https://github.com/buildingSMART/IFC4.3.x-development/issues/754
2024-06-24 15:22:02 +05:00
Andrej730
feb0e46257
More readable error if express file is missing
2024-06-24 15:22:02 +05:00
Andrej730
0b901bff5f
typing
2024-06-24 15:22:02 +05:00
Dion Moult
b45b0f2c81
There is now an explicit "remove true north" button to make it consistent with other buttons like remove georeferencing
2024-06-24 18:21:06 +10:00
Dion Moult
7a36c05c30
Implement WCS consideration in XYZ <-> ENH conversions.
2024-06-24 18:21:06 +10:00
Dion Moult
ac58e6b8b2
Minor fix to new collection organisation for drawings
2024-06-24 18:21:06 +10:00
Dion Moult
68d3771a83
Change active layer collection when setting a new default container
2024-06-24 18:21:06 +10:00
Kristoffer Andersen
80349d70d8
Update ci-ifcopenshell-conda-cleaner.yml
...
fix missing env activation defaults
2024-06-24 08:41:46 +02:00
Dion Moult
e295d596fe
Split true north in API and Blender UI to be editable independent of georeferencing
...
They are two separate concepts, after all.
2024-06-23 23:19:27 +10:00
Dion Moult
013b138e5c
Default to adding EPSG:3857 when adding georeferencing and let users choose an EPSG when adding.
2024-06-23 23:17:44 +10:00
Dion Moult
95d2d0af83
You can now see and edit WCS in the Blender UI (new API for it too)
2024-06-23 22:23:48 +10:00
Dion Moult
03ee826e67
Add tests for xaxis and yaxis angle conversions
...
This tricked me today, the "XAxis" and "YAxis" vectors are from different perspectives (yikes!). XAxis is from the perspective of grid north, and YAxis is from the perspective of project north. I'm following this convention because that's what buildingSMART docs do but just FYI they serve two different purposes!
2024-06-23 22:23:48 +10:00
Kristoffer Andersen
9f31815d9e
add conda cron daily cleaner ( #4910 )
2024-06-23 09:11:17 +02:00
Ryan Schultz
1e9bfec655
Fix #4493 - Save drawing boundaries on bim.activate_drawing as well.
2024-06-22 11:44:42 -05:00
Dion Moult
fd8cb7e8ed
Implement Blender UI for handling new coordinate operations in IFC4X3
2024-06-22 23:32:25 +10:00
Dion Moult
4ef237e0f7
Implement purge map unit when removing georeferencing and removing 2X3 and 4X3 georeferencing in API
2024-06-22 22:13:20 +10:00
Dion Moult
3c48cfbc19
Add support for IfcRigidOperation and IfcMapConversionScaled in API
2024-06-22 21:59:09 +10:00
Dion Moult
177d43c30e
Redesign georeference calculator UI to show units and be explicit about local vs map (instead of input vs output)
2024-06-22 16:29:36 +10:00
Dion Moult
a6c3ae8446
Typing and update geolocation conversion utils to follow IFC4X3 rules about unit scaling
2024-06-22 15:52:00 +10:00
Dion Moult
d0373da0ad
Update XYZ <-> ENH geolocation conversion after the clarifications made on how to handle scale in IFC4X3
2024-06-22 14:47:42 +10:00
John Yani
7bb3de8371
Add documentation for toolbar ( #4907 )
2024-06-22 13:36:21 +10:00
Dion Moult
45e0045820
Fix bug where merge duplicate types would trigger listeners in an active Blender session. Stop using listeners, I guess?
2024-06-21 23:32:53 +10:00
Dion Moult
347b2b783d
Minor doc fix to SetFalseOrigin code example
2024-06-21 23:32:53 +10:00
Dion Moult
2fc7cc7de2
Show georeferencing unit symbols to make it clearer what units things are in
2024-06-21 23:32:53 +10:00
Andrej730
4d39804045
docs code block formatting
...
`console` type code-block is designed mainly for examples of the console commands with the output.
If it's just a shell script with comments, then `console` only gets in the way - e.g. if you try to select a console code block manually, you won't be able to select comment symbol `#` at the beginning of the command making code unrunnable if you try to copy and run it. I've replaced it with `bash` or `bat` (for Windows) code blocks where `console` wasn't necessary.
I've also removed `$` symbols at the beginning of the commands if it's not a `console` code-block - since otherwise it just breaks "Copy Code Block" because you copy unrunnable code.
2024-06-21 18:28:59 +05:00
Andrej730
746051815d
TesselateElement ifcpatch recipe to support product types
...
Previously it would just fail if you provide some IfcTypeProduct in the patch query
2024-06-21 17:50:22 +05:00
Andrej730
4385bf0bcc
create_shape - note about IfcTypeProducts
2024-06-21 17:50:22 +05:00
Andrej730
1e092c140f
add ifc2x3 support for 301cdf650
2024-06-21 17:50:22 +05:00
Andrej730
c4ae9578e9
fix styles update on material assignment/unassignment #4843
2024-06-21 17:50:22 +05:00
Andrej730
a834e5b4cd
element.get_type doc note
2024-06-21 17:50:22 +05:00
Andrej730
e329b18e33
simplify process of loading blender materials #4843
...
We no longer traverse through representations searching for IfcSurfaceStyles and just rely on geometry.materials.
Possible after #4886 since:
- create_shape is now considering inherited materials
- material.instance_id is not returning IfcMaterial's style id instead of IfcMaterial id.
2024-06-21 17:50:22 +05:00
Andrej730
5731c4036a
unresolve_type_representation - typing and small optimization
2024-06-21 17:49:02 +05:00
Andrej730
a594a6cfe2
typing
2024-06-21 17:49:02 +05:00
Andrej730
8b6235f42f
fix TessellateElements ifcpatch recipe
...
TessellateElements patch was failing because it was relying on optionality of `edges` argument. Though argument itself is currently useless and not used in the code.
2024-06-21 17:49:02 +05:00
Andrej730
d443c5e2a6
element.get_type - check schema explicitly for a small optimization
...
Previously if product had no types it would still run through all element.IsDefinedBy and check if they are IfcRelDefinesByType even if it's not IFC2X3.
2024-06-21 17:49:02 +05:00
Andrej730
68d3539a86
mapping binding - never overwrite already set item->instance
...
1) this way code should be more straightforward
2) this allows us not to reimplement mapping.get_surface_style logic in IfcGeomWrapper as it will be already handled in map_impl(const IfcSchema::IfcStyledItem* inst) and the resulting item->instance is not overridden by IfcStyledItem.
2024-06-21 14:52:37 +05:00
Andrej730
301cdf6504
Fix creating representation with inherited materials
...
It should be considered as inherited material can also have a style.
Though occurrence's material is still prioritized.
2024-06-21 14:52:37 +05:00
Andrej730
882e0a4ae9
Fix instance_id in geometry.materials returning material id instead of style id
2024-06-21 14:52:37 +05:00
John Yani
f921b65953
Major documentation refactoring ( #4905 )
2024-06-21 17:54:05 +10:00
Andrej730
1e26587bd3
geometry.import_representation to disable apply-default-materials #4832
...
as material creator is not designed for this option
2024-06-21 12:11:47 +05:00
Dion Moult
bce6485b91
Support adding / editing georeferencing for IFC2X3 fallback psets
2024-06-21 11:21:41 +10:00
Dion Moult
a0cb980a8f
See #4896 . Bump to IDS v1.0.
2024-06-20 17:37:14 +10:00
Dion Moult
fc0e9e900f
Fix #3970 . Show passing elements in IDS test report.
2024-06-20 16:36:18 +10:00
Dion Moult
d700262e7f
Support IDS tests for nest relationships in IFC2X3
2024-06-20 15:53:28 +10:00
Dion Moult
d92679223e
Fix #4879 . Include metadata about original requirement in JSON reports.
2024-06-20 15:29:10 +10:00
Dion Moult
7ac117cd8d
Use a json encoder for IfcTester JSON reports to ensure everything is stringable
2024-06-20 15:00:55 +10:00
Dion Moult
b87a6bc15c
Fix #4874 . Checking restrictions of the wrong data type will now returned a failed result instead of an exception.
2024-06-20 13:22:16 +10:00
Dion Moult
fbefe8c555
PartOf facet tests now give more granular reports on failing predefined type requirements
2024-06-20 12:58:42 +10:00
Dion Moult
030119fd0e
Fix #4893 . IfcTester now requires lowercase booleans or 0/1.
...
This changed on May 5: https://github.com/buildingSMART/IDS/issues/290
2024-06-20 09:52:45 +10:00
Dion Moult
fcf2c37432
New SetFalseOrigin patch recipe to make it easy to "Just Fix It!"
...
This combines the best practices of a few other patch recipes to make it easy to say "this point here is this world coordinate".
2024-06-19 23:41:46 +10:00
Dion Moult
fab3ee70dd
Fix bug where 2D angles weren't correctly parsed in OffsetObjectPlacements recipe
2024-06-19 23:37:01 +10:00
Dion Moult
4738528e69
We now can do cartesian point offsets regardless if there is a false session origin or not.
...
For example, it doesn't matter if you have a false origin set or not, there can still be scenarios where local verts are far away.
2024-06-19 23:33:16 +10:00
Thomas Krijnen
88c8bcf119
Pin OCCT serialization version to v2 #4393
2024-06-19 14:44:52 +02:00
Ziad-I
3c3e4dd047
add pip install python-socketio and aiohttp in makefile
2024-06-19 13:17:29 +03:00
Thomas Krijnen
b44b1cb8b0
Fix segfault on gcc #4832
2024-06-19 11:56:56 +02:00
Ziad-I
6ad2bef05c
add webui server and static files
2024-06-19 12:27:03 +03:00
Andrej730
8e0c92d5eb
Fix issue using IfcImporter after 8246d2c
...
E.g. there was an error on creating a project using demo template
2024-06-19 10:57:34 +05:00
Andrej730
6bafbd92f3
fix ui bug after 114fca8be
2024-06-19 10:57:34 +05:00
Andrej730
03663eec3f
include socketio to fix starting bbim after 65a1fbe
2024-06-19 10:57:34 +05:00
Thomas Krijnen
a3d4642ea9
Fix boolean results on non-solid shells #4832
2024-06-18 21:30:00 +02:00
Thomas Krijnen
0e42130e9d
Taxonomy curve upgrades #4832
2024-06-18 20:18:39 +02:00
Thomas Krijnen
691fe549d7
taxonony::cast throws exceptions now on invalid casts
2024-06-18 13:52:42 +02:00
Thomas Krijnen
f5979be4d5
Keep old behaviour of subtractions, when failed use first operand #4832
2024-06-18 13:09:32 +02:00
Kristoffer Andersen
9fe40c3137
make necessary changes for v0.8 daily conda builds ( #4884 )
...
* make necessary changes for v0.8 daily ci conda builds
* fix conda find hdf5 portion of CMakelists.txt
2024-06-18 12:52:00 +02:00
Thomas Krijnen
82496e8126
m4 not referenced in IfcEllipseProfileDef
2024-06-18 12:32:00 +02:00
Thomas Krijnen
9c22e6ecc8
Support evaluation of faces directly, add identity matrix on unplaced circle profile curves #4832
2024-06-18 12:32:00 +02:00
Thomas Krijnen
17a433a97b
Don't pass around nullptr in case of failed representation mapping
2024-06-18 12:32:00 +02:00
Ziad-I
b90c1ee7c9
forgot to undo changes after moving web UI code out to its own module/tool
...
forgot to remove changes done to csv module and search tool after moving web UI to its own module/tool
changes such as:
unused imports
panel header option
2024-06-18 18:31:39 +10:00
Ziad-I
bd30f73b3a
fix no such directory error when running server
...
and added a 0.5 sleep time between disconnecting and killing server
2024-06-18 18:31:39 +10:00
Ziad-I
0aad3d99b5
add data.py for web module and sending data via ws connection
2024-06-18 18:31:39 +10:00
Ziad-I
f7d55a4a4a
fix open_web_browser operator
2024-06-18 18:31:39 +10:00
Ziad-I
df2655e7ae
add open browser button and operator
2024-06-18 18:31:39 +10:00
Ziad-I
9ec51e040e
change ui to show buttons according to connected/running
...
and moved setting is_connected and is_running to inside the tool itself
2024-06-18 18:31:39 +10:00
Ziad-I
467602aec3
add sending messages to server in web tool
2024-06-18 18:31:39 +10:00
Ziad-I
88610e23b2
move thread and asyncio loop management to its own class
...
as manually managing the thread and asyncio loop was quite a hassle. especially, cleanup after closing them.
2024-06-18 18:31:39 +10:00
Ziad-I
89fb59307c
add disconnection from server functionality
...
had to refactor how the server connects
2024-06-18 18:31:39 +10:00
Ziad-I
65a1fbea78
add connection to webserver logic
2024-06-18 18:31:38 +10:00
Ziad-I
78bc8fe977
add methods to show running and connected status
2024-06-18 18:31:38 +10:00
Ziad-I
6ab08a2f49
remove debug flag in flask run command
...
removed debug flag in flask run command as it leaves a zombie process after closing blender
2024-06-18 18:31:38 +10:00
Ziad-I
de7d315eb3
add starting webserver and terminating webserver
2024-06-18 18:31:38 +10:00
Ziad-I
24662d75e4
add tool methods to generate port and check port availability
2024-06-18 18:31:38 +10:00
Ziad-I
76e6697bbc
remove open_web_ui button and operator from csv module
2024-06-18 18:31:38 +10:00
Ziad-I
3c2fcffd0d
moved web ui logic to web tool/core
2024-06-18 18:31:38 +10:00
Ziad-I
0188757197
add new web module
2024-06-18 18:31:38 +10:00
Ziad-I
444554a12d
add print messages and opening of web UI
2024-06-18 18:31:38 +10:00
Ziad-I
ba42f01db2
add internal logic to start the web-ui websocket server
...
added internal logic to the Search tool/core to start the websocket server for the webui
2024-06-18 18:31:38 +10:00
Ziad-I
5d91766f07
changed the icon for the button to URL icon
2024-06-18 18:31:38 +10:00
Ziad-I
c4cbc577d8
add open web ui button and dummy operator
2024-06-18 18:31:38 +10:00
Dion Moult
bfd9cc0cf0
Allow calling ifcpatch from code with no arguments
2024-06-18 13:55:19 +10:00
Dion Moult
ac0b5abfc5
You can now choose whether to use a cache / force reload a linked model
2024-06-18 12:51:14 +10:00
Dion Moult
ad61cc3c92
Update linking styles to v0.8.0 syntax
2024-06-18 10:59:10 +10:00
Dion Moult
6fa586a1b6
When linking IFCs into a vanilla Blender session with no IFC, the origin from the first IFC you link determines the origin of subsequent links
2024-06-18 00:15:55 +10:00
John Yani
4c09773211
Refactor Project Info panel to clarify distinct modes ( #4880 )
...
* Rename modes in Project Info documentation
* Refactor project info panel UI code
2024-06-17 23:38:05 +10:00
Dion Moult
2300411ce4
Fix #4510 . Linking in georeferenced models now reuses the host model's georeferencing settings
...
In addition to reusing a constant false origin, because we now reuse the same logic as project loading, we also now get the ability to mix map-conversion and non-map-conversion coordinates and also link in rotated models, not just translated.
2024-06-17 17:10:14 +10:00
Dion Moult
9c61a9eed7
Linking in models now uses the same cartesian point offset strategy as loading models with a dynamic distance limit
...
Previously, it would have a hardcoded 1km distance limit and any "far away" object would be treated as a chunk instead of an occurrence. Now it has dynamic distance limits and benefit from occurrence instancing.
2024-06-17 17:03:42 +10:00
Dion Moult
743a197542
False origin is always in terms of map coordinates, not as an offset.
...
Previously, the false origin would be in terms of local coordinates. This means that the same false origin would give two different results on files with different map conversions. Now, false origin is ... well, a true map coordinate and works equally for both IFCs with and without a map conversion.
2024-06-16 22:28:48 +10:00
Dion Moult
99f329c13d
When guessing false origins, only consider geometry, not placements
...
Placements may be misleading and are "invisible". A far away placement and local geometry can cancel each other out.
2024-06-16 15:12:11 +10:00
Dion Moult
623d487df7
Use gross shapes for guessing false origins to be faster
2024-06-16 15:11:24 +10:00
Dion Moult
348ef4023f
False origins can now be explicitly auto, manual, or disabled
2024-06-16 14:50:33 +10:00
Dion Moult
b253b74e88
Linking projects now shares context prioritisation logic with regular project loading
...
This means it can link in more interesting shapes.
2024-06-16 14:21:25 +10:00
Dion Moult
a3b6a6ea39
Black geom/main.py
2024-06-15 23:50:37 +10:00
Dion Moult
8246d2c593
Aggressively refactor out functions relevant to guessing a false origin to tool.Loader
2024-06-15 23:50:27 +10:00
Dion Moult
3a6cf0e5ae
Fix #4854 . Make IFC edit mode toggle dynamic to prevent editing uneditable things.
2024-06-15 16:40:53 +10:00
Dion Moult
1db26aab15
Fix #4837 . Make mathutils dependency optional.
...
In the long term, I'd like to replace mathutils with numpy.
2024-06-15 15:10:36 +10:00
John Yani
a23e6dcd66
Expand Project Info documentation. Reorganize General Usage ( #4875 )
2024-06-15 14:10:00 +10:00
Dion Moult
9331292dd1
Fix bug where editing qtos was hardcoded to IFC4.
2024-06-15 14:07:27 +10:00
Dion Moult
cad7db0162
See #4838 . Consistently use schema_identifiers throughout the code instead of schema to be more explicit.
...
This also means in the future we are better shaped to be a prototyping platform for future IFC versions.
2024-06-15 14:05:37 +10:00
Dion Moult
9f356542bc
Remove dead code where material psets used to be on a bpy.types.Material
2024-06-15 13:29:48 +10:00
Andrej730
1f7d80e6f1
remove unused argument
2024-06-14 19:14:20 +05:00
Andrej730
f3f1e8721c
remove name update for ifc materials based on blender materials name #4843
2024-06-14 19:14:20 +05:00
Andrej730
114fca8be5
unassociate bim.add_material from blender materials #4843
2024-06-14 19:14:20 +05:00
Andrej730
52167a47b9
minor refactor for bim.add_boolean
...
1) Couple logic simplifications and info messages
2) Removed unlink as obj2 is a blender object (we check this before with `tool.Ifc.get_entity(obj2) == None`) and doesn't need to be unlinked
2024-06-14 19:14:20 +05:00
Andrej730
d4ff2c8dda
typing
2024-06-14 19:14:20 +05:00
Andrej730
75f8e75a8e
ifc.unlink fixes after 3df75e9af
...
Also some changes related to #4843
add
2024-06-14 19:14:19 +05:00
Andrej730
d0f612afc2
IfcStore.get_element - more explicit checks for missing elements
2024-06-14 19:14:19 +05:00
Andrej730
b6b681c244
bim.add_boundary - info message if no relevant elements selected
2024-06-14 19:14:19 +05:00
Dion Moult
5911a602b9
Purge legacy code which used JSON files for schema descriptions and entities
...
In our early days, we didn't use IfcOpenShell to dynamically query the schema.
2024-06-14 21:59:53 +10:00
Dion Moult
453ef437d3
Fix linking IFC coordinates to v0.8.0
2024-06-14 16:30:31 +10:00
Dion Moult
88494d3379
Linking IFCs now also includes spatial elements
2024-06-14 16:16:08 +10:00
John Yani
1b41440aba
Update Blender BIM Project Info documentation ( #4871 )
...
* Update property-editor.rst
* Add project overview screenshots
* Update property-editor.rst
* Add BlenderBIM project info screenshots
* Update property-editor.rst
2024-06-14 14:48:49 +10:00
Dion Moult
105434fe68
See #4854 . Don't show IFC mode UI if there is no IFC model.
...
Still quite a bit of work to be done here, but this is better than nothing.
2024-06-14 13:01:43 +10:00
Dion Moult
a0a505d64b
Minor fix to not show placement if offset is not applicable
2024-06-14 13:00:09 +10:00
Dion Moult
3a4bdd623d
Fix #4867 . Accommmodate invalid IFC data from 12D.
2024-06-14 09:18:14 +10:00
Andrej730
99338187de
prevent possible errors initializing swig wrapper's Settings #4861
2024-06-13 18:19:12 +05:00
Andrej730
9d7ef6ff47
BBIM - fix invalid representation item style assignment in ifc2x3
...
It wasn't considering IfcPresentationStyleAssignment.
2024-06-12 18:24:14 +05:00
Andrej730
ffd944f4f9
style->instance_id to consider possible IfcPresentationStyleAssignment in ifc2x3/ifc4
2024-06-12 13:52:44 +02:00
Thomas Krijnen
ecef745c3b
OCCT doesn't like null shapes even on symmetric bools
2024-06-12 11:47:27 +02:00
Thomas Krijnen
44507785ac
Rerun codegen
2024-06-12 11:47:27 +02:00
Thomas Krijnen
79c0246e6a
Don't sort enum names for correspondence with header
2024-06-12 11:47:27 +02:00
Dion Moult
3c659a342f
BCF workflow now uses VERSION
2024-06-12 19:23:10 +10:00
Dion Moult
d192217e78
bSDD workflow now uses VERSION
2024-06-12 18:44:51 +10:00
Dion Moult
6474552649
IfcClash workflow now uses VERSION
2024-06-12 18:25:05 +10:00
Dion Moult
4b454dd646
IfcCSV workflow now uses VERSION
2024-06-12 18:15:13 +10:00
Dion Moult
85e1786ce5
IfcPatch workflow now uses VERSION
2024-06-12 18:05:33 +10:00
Dion Moult
45b81ab814
IfcTester workflow now uses VERSION
2024-06-12 17:52:35 +10:00
Dion Moult
8241b557fe
Minor fix - add "unstable" word to Sverchok release and fix importing WAxes
2024-06-12 10:26:20 +10:00
Dion Moult
1312a8e704
Purge deprecated feature to enable coordination mode / merge modes in favour of new link IFC feature
2024-06-12 09:53:58 +10:00
Thomas Krijnen
2a5e42e359
Don't log 'no op defined' for failed conversions
2024-06-11 20:09:37 +02:00
Thomas Krijnen
dae7d86dad
Fix style lookup in accordance with v0.7 #4844
2024-06-11 20:09:37 +02:00
Andrej730
9906149b0d
do not load ifc materials as blender materials #4843
...
also deprecate blender_material style argument as it's not used anywhere now
2024-06-11 18:26:19 +05:00
Andrej730
2e2c116180
deprecate mixing up ifc materials and styles in one blender material on loading #4843
...
Part of the transition process disconnecting blender materials from IFC materials to make it less confusing.
E.g. previously if we would load an element A with material M and style S it would load it as blender material M that looks like S.
But also if you would load element B with just style S, it would add it as blender material M though B has nothing to do with material M.
2024-06-11 18:26:19 +05:00
Andrej730
13c6b9d673
do not add Blender materials to objects without styles #4843
...
If part of the geometry has no style, we'll use empty empty material slots since Blender does require some material slot to assign each polygon to.
2024-06-11 18:26:19 +05:00
Andrej730
2fbac57faf
remove bim.unlink_material #4843
2024-06-11 18:26:19 +05:00
Andrej730
f803447651
more safe collector.assign
...
Noticed after error below trying to duplicate an element
File "addons\blenderbim\bim\module\geometry\operator.py", line 769, in execute
return OverrideDuplicateMove.execute_duplicate_operator(self, context, linked=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "addons\blenderbim\bim\module\geometry\operator.py", line 778, in execute_duplicate_operator
IfcStore.execute_ifc_operator(self, context)
File "addons\blenderbim\bim\ifc.py", line 381, in execute_ifc_operator
result = getattr(operator, "_execute")(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "addons\blenderbim\bim\module\geometry\operator.py", line 772, in _execute
return OverrideDuplicateMove.execute_ifc_duplicate_operator(self, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "addons\blenderbim\bim\module\geometry\operator.py", line 855, in execute_ifc_duplicate_operator
new = blenderbim.core.root.copy_class(tool.Ifc, tool.Collector, tool.Geometry, tool.Root, obj=new_obj)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "addons\blenderbim\core\root.py", line 54, in copy_class
collector.assign(obj)
File "addons\blenderbim\tool\collector.py", line 62, in assign
collection.objects.link(obj)
RuntimeError: Error: Object 'IfcActuator/Cube.001' already in collection 'IfcBuildingStorey/My Storey'
2024-06-11 18:26:19 +05:00
Andrej730
bec834c651
typing
2024-06-11 18:26:19 +05:00
Andrej730
3df75e9af3
IfcStore.unlink_element breaking change
...
Previously there was a problem with this method that it might confuse Blender objects copied from other sessions (or even from the current session but a few steps back) from current IFC objects and might unlink them accidentally.
Option to provide either element or obj was more of a convenience feature but now they have a different meaning to clearly distinguish between unlinking ifc element and unlinking some blender object without touching any ifc elements.
2024-06-11 18:26:19 +05:00
Andrej730
6630db21ee
Set apply default materials to False #4833
...
Since it's now True by default in v0.8.0, resetting it to False as it was in v0.7.0
2024-06-11 18:26:19 +05:00
Andrej730
f54f45a051
geom.settings - add a tooltip for available settings #4832
...
example - https://i.imgur.com/eTdqv5J.png
added a test so we won't miss if some setting will be added/removed
2024-06-11 18:26:18 +05:00
Thomas Krijnen
acd4274136
Don't blindly assumes openings have representations for the selected contexts. #4832
2024-06-11 15:25:03 +02:00
Thomas Krijnen
d400a48a9d
Remember your own conventions: lines run along positive Z
2024-06-11 14:14:47 +02:00
Thomas Krijnen
4331f4f785
Don't stall threads on occt failures
2024-06-11 14:14:11 +02:00
Thomas Krijnen
95e36979d5
Don't link against svgfill from python when building without cgal #4832
2024-06-11 12:32:11 +02:00
Thomas Krijnen
07827940cc
Some defensiveness against null shapes (should look into this better)
2024-06-11 11:20:55 +02:00
Thomas Krijnen
c2efcda7bb
Don't use cached items in multi-threaded mode for now until we have proper immutability
2024-06-11 11:20:40 +02:00
Thomas Krijnen
aa0fbd434e
Add geometry library install targets #4842
2024-06-11 10:33:19 +02:00
Dion Moult
8cff046a46
Doc download links now point to explicitly versioned releases, not bot builds
...
This ensures that IOS-Python always 1) has the appropriate version and 2) contains exactly the same content as PyPI (i.e. with the latest Python files that might be outdated from the bot builds)
2024-06-11 17:32:30 +10:00
Dion Moult
ff4154c2bd
Forgot to distribution Windows 32 bit IfcOpenShell-Python
2024-06-11 16:09:00 +10:00
Dion Moult
d7e497727c
More build fixes.
2024-06-11 16:01:14 +10:00
Dion Moult
d4dc9af1be
Setup builds for IfcSverchok
2024-06-11 15:41:18 +10:00
Dion Moult
fbe25b314b
Whoops
2024-06-11 14:59:29 +10:00
Dion Moult
bfe36dddb7
Update deprecated set-output Github command
2024-06-11 14:48:37 +10:00
Dion Moult
dea2b6e367
New workflow for stable IfcOpenShell-Python releases
...
Typically every 2 months
2024-06-11 14:42:22 +10:00
Dion Moult
5e6fe5e3cf
Attempt to fix daily BBIM builds
2024-06-11 14:11:40 +10:00
Dion Moult
b009913cf4
Fix #4511 . IfcOpenShell builds now read from the VERSION file and expose a __version__ var.
2024-06-11 13:11:14 +10:00
Thomas Krijnen
783675f78c
Fix IfcGeomServer build after c01263d721
2024-06-10 21:41:52 +02:00
Thomas Krijnen
6fb05fa743
Fix segfault on grid placement. Don't fail on nullptr transformation. #4832
2024-06-10 21:40:39 +02:00
Thomas Krijnen
2ccc598270
Re #4833
2024-06-10 21:30:26 +02:00
Thomas Krijnen
d125699ca6
Re #4835
2024-06-10 21:30:01 +02:00
Thomas Krijnen
593fba98c1
Fix USE_PYTHON_OPENCASCADE setting #4832
2024-06-10 21:12:37 +02:00
Thomas Krijnen
74a42ba006
More precisely target cityjson code #4835
2024-06-10 20:56:50 +02:00
Thomas Krijnen
19933e0102
Reintroduce schema def for early bound example part
2024-06-10 20:24:26 +02:00
Thomas Krijnen
c01263d721
shared_ptr styles all over #4833
2024-06-10 20:13:12 +02:00
Thomas Krijnen
f2074d95fd
Adapt USD serializer for v0.8 and define nominmax for windows.h compatibility
2024-06-10 20:13:12 +02:00
Thomas Krijnen
83a929604c
Disable building USD-related things for now
2024-06-10 20:12:09 +02:00
D4ve-R
d8c5414ed1
build scripts
2024-06-10 20:12:09 +02:00
Andrej730
ab31f9ae85
fix mistake in de80e416c
2024-06-10 19:56:02 +05:00
Dion Moult
293cee414a
New VERSION file and make BBBIM and docs based on version string
2024-06-11 00:09:28 +10:00
Andrej730
8067d0c4f6
IfcParseExample to support IFC4 after 2948d08
2024-06-10 17:43:07 +05:00
Andrej730
a70b7e319b
cmake - build alignment examples only if 4x3 schema is available
...
As they doesn't support other schemas.
2024-06-10 17:43:07 +05:00
Andrej730
de80e416c3
use get_shape_matrix util function where it's possible
2024-06-10 17:43:07 +05:00
Andrej730
51f859d8e4
typing
2024-06-10 17:43:06 +05:00
Andrej730
6552463ed9
sequence.remove_task to remove IfcRecurrencePattern
2024-06-10 16:55:21 +05:00
Andrej730
d56da70cae
sequence.assign_recurrence_pattern - fix bug assigning pattern to a task time recurring
...
It wasn't considering that IfcTaskTimeRecurring might be just created and IfcTaskTimeRecurring.Recurrence is None resulting in error below
File "\api\sequence\assign_recurrence_pattern.py", line 120, in assign_recurrence_pattern
if len(file.get_inverse(settings["parent"].Recurrence)) == 1:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "\file.py", line 524, in get_inverse
inverses = [entity_instance(e, self) for e in self.wrapped_data.get_inverse(inst.wrapped_data)]
AttributeError: 'NoneType' object has no attribute 'wrapped_data'
2024-06-10 16:55:21 +05:00
Andrej730
6cab7d964e
sequence.remove_work_time to remove IfcRecurrencePattern
...
Previously it was leaving them orphaned.
2024-06-10 16:55:21 +05:00
Andrej730
1343741cfd
sequence.remove_work_calendar to remove related work times
...
Previously they were leaved orphaned
2024-06-10 16:55:20 +05:00
Andrej730
7c713eee65
nest.remove_task to clean up ownerhistory in more cases
...
1) It wasn't removing ownerhistory in the case if task was RelatingObject in IfcRelNests
2) Replaced handling of IfcRelNests as an inverse with direct api calls.
3) Added some basic tests.
2024-06-10 15:51:03 +05:00
Dion Moult
277e53d5ac
General cleanup of collection code in covering tool and dead arguments.
...
It seems there is a lot of copy paste going on here. There needs to be a more detailed review once the v0.8.0 blob is more stable because right now I cannot fully test - it's hard to say if create_shape fails due to our bug or due to v0.8.0 not yet being stable. I'll revisit this later.
2024-06-10 18:07:01 +10:00
Dion Moult
1b63d9e88f
Railing/roof/stair/window now use default collection. Continue removing old "active collection" code.
2024-06-10 16:13:00 +10:00
Dion Moult
e520c2ce8a
Model module walls/slabs/products/mep now use the default container too.
2024-06-10 16:06:36 +10:00
Dion Moult
94f54fd4cb
Generating a space now is based on the default collection
2024-06-10 15:36:55 +10:00
Dion Moult
e6ac012f57
Loading IFCs now also uses tool.Collector.assign instead of implementing the logic twice
2024-06-09 16:55:19 +10:00
Dion Moult
72998b4eac
Drawing style queries now use new selector syntax
2024-06-09 16:53:36 +10:00
Dion Moult
177b8218ee
Creating grids now uses tool.Collector.assign instead of reimplementing collection management
2024-06-09 16:53:04 +10:00
Dion Moult
6e0665bd31
Fix bug where grid axes didn't accommodate cartesian offsets
2024-06-09 16:52:26 +10:00
Dion Moult
cdce612566
Update all geom settings to new v0.8 syntax
2024-06-09 16:15:55 +10:00
Bruno Postle
52f9db4522
Fix CPack source tarball generation
...
This was broken, now a IfcOpenShell-0.7.0.tar.gz file can be created
like so:
mkdir build
cd build
cmake ../cmake/ -DEXTRA_VERSION=
make package_source
2024-06-08 22:54:23 +01:00
Dion Moult
1e1066da3b
Update and rename cd.yml to ci-ifcopenshell-docker.yml
...
Now only runs on manual run / tag.
2024-06-08 23:00:44 +10:00
Dion Moult
072b9fd147
Start simplifying collection tree to only place items in their container and only one level deep.
...
This should heavily simplify the complex logic around blender collections and give freedom to the user to do whatever they want.
2024-06-08 22:26:41 +10:00
Dion Moult
3a1f1af803
Bump docs for v0.8.0
2024-06-08 14:50:18 +10:00
Dion Moult
03b277626f
See #4832 . Use shape.transformation.matrix in v0.8.0
2024-06-08 14:50:02 +10:00
Andrej730
cd2e33721e
Remove deprecated STRICT_TOLERANCE setting #4832
...
Mentioned in #4565 , it's now "set" by default
2024-06-08 00:33:17 +05:00
Andrej730
2d7a7a8bc3
update blenderbim/ifcsverchok branches #4832
2024-06-08 00:23:54 +05:00
Andrej730
b1d9c2df64
bump ifcopenshell build #4832
2024-06-08 00:19:18 +05:00
Dion Moult
c4dfbdbe2e
Merge branch 'v0.7.0' into v0.8.0
2024-06-07 23:48:39 +10:00
Dion Moult
e3cb811225
WARNING: Remove collection syncing. The outliner no longer is used to change spatial hierarchy.
...
This is a BREAKING change (on purpose). If you want to change containment / aggregation, use the UI panels, not drag and drop on the outliner.
2024-06-07 22:55:18 +10:00
Andrej730
db98f13982
typing
2024-06-07 17:15:52 +05:00
Andrej730
61c2a2c6c6
remove_work_schedule to unassign a work schedule from a work plan #4819
2024-06-07 17:15:51 +05:00
Andrej730
5c41baeaf1
remove_work_plan - unassign work schedules #4819
2024-06-07 17:15:51 +05:00
Andrej730
f8a5ce34a8
fix redeclarations in tests
2024-06-07 17:15:51 +05:00
Andrej730
4078140079
distance_limit, false_origin tooltips
2024-06-07 17:15:51 +05:00
Dion Moult
c9d724fe18
You can now set a default spatial container.
...
This will supersede having an active Blender collection selected.
2024-06-07 21:53:21 +10:00
Dion Moult
03b2afbb31
Fix IfcCSV docs to use new selector syntax.
2024-06-07 20:08:23 +10:00
Dion Moult
f0a19cb054
Fix #4815 . Purge deprecated old selector syntax.
2024-06-07 20:08:11 +10:00
Dion Moult
f565b4e8f0
Minor georeferencing offset fix after recent fixes
2024-06-07 20:06:57 +10:00
Dion Moult
af5838cba6
Fix #4821 . Bug where empty true norths were still set.
2024-06-07 16:30:19 +10:00
Dion Moult
d0058a1bde
Fix #4802 . Fix ability to edit CARTESIAN_POINT offset meshes in offset models.
2024-06-07 14:32:00 +10:00
Dion Moult
698c648413
Fix #3757 . Adding objects in offset models now correctly stores georeferenced coordinates.
2024-06-07 12:47:41 +10:00
Dion Moult
8f64ef4465
Fix bug where incorrect units were calculated in the geometry offset UI
2024-06-07 10:40:23 +10:00
Bernd Hahnebach
a16c159b7f
BBIM, bcf, ignore problematic topics in case of markup
2024-06-06 22:06:42 +02:00
Bernd Hahnebach
04b641c49c
BBIM, bcf, fix colors for hex with alpha channel
2024-06-06 22:06:42 +02:00
Bernd Hahnebach
84d475cfd3
BBIM, bcf, fix setting the viewpoint components
2024-06-06 22:06:42 +02:00
Bernd Hahnebach
afe7d526a5
BBIM, bcf, fix if either project or project name is missing in bcf
2024-06-06 22:06:42 +02:00
Dion Moult
98ec3e2301
Fix #4677 . Fix #4809 . Major improvement to local session offset during project loading (see description)
...
This improves four things:
1. Previously, we either used OBJECT_PLACEMENT or CARTESIAN_POINT, but couldn't handle scenarios where simultaneously both the placement and the coords were rubbish for a single object. Now we offset all far cartesian points, so it consistently works and we keep track of a per-object offset.
2. Previously, we applied the georeferencing conversion on every cartesian point which was very slow. The new method uses a simple XYZ translation which is super fast.
3. We now use numpy which should be much faster too.
4. Previously, objects were selectively offset based on whether they fell outside the distance limit. Now, we uniformly treat all non-geometric elements at 0,0,0 as insignificant positionally. This fixes the issue where half the model is offset and the other half isn't, but maintains the fix for situations where the site (typically) is at 0,0,0 and everything else is map coords.
2024-06-06 11:54:07 +10:00
Dion Moult
cfd0ed60cf
Reduce (arbitrary) element checking threshold down to 3 for georef guessing.
2024-06-06 09:34:32 +10:00
Ryan Schultz
802e1966fd
small tweak
2024-06-05 08:21:28 -05:00
Ryan Schultz
b57a1e5ea8
Adding a 'magic_font_scale'
...
https://community.osarch.org/discussion/2202/blenderbim-edit-text-preview-size
2024-06-05 08:12:22 -05:00
Ryan Schultz
b92e78b137
added styles search
2024-06-05 07:43:17 -05:00
Gorgious56
8b69ea464f
Fix variable name in code example
2024-06-05 08:19:29 +02:00
Dion Moult
1565575e8b
Load spatial tree after new / open project
2024-06-05 15:47:55 +10:00
Dion Moult
18b68353b1
Minor UI polish: center tabbar, remove Blender tabs as no longer necessary for native IFC
2024-06-05 15:09:23 +10:00
Dion Moult
9699eb38c5
Only show Blender tab icon in dropdown, separated.
...
This helps for smaller screens and makes it less overwhelming for users.
2024-06-05 15:00:28 +10:00
Dion Moult
d294be3433
Support adding a child space using the rules of spatial decomposition for each schema
2024-06-05 14:53:31 +10:00
Dion Moult
60ae4e80ce
New get_contained util.element function
2024-06-05 13:04:50 +10:00
Dion Moult
05ec36a37d
Spatial manager now shows aggregated objects inside selected space
2024-06-05 13:04:35 +10:00
Andrej730
dc8ea31138
Bump ladybug tools build in docs
2024-06-04 13:42:33 +05:00
Dion Moult
faaea7db49
Spatial manager now allows inline editing of names and elevations for a slicker UI
2024-06-04 15:10:28 +10:00
Dion Moult
b14ff94303
Spatial manager renamed to project tree and added icons
2024-06-04 13:57:57 +10:00
Dion Moult
b3dcfbf0dc
See #4796 . Fix issue where orphaned aggregate is never shown when loading IFC.
2024-06-04 12:31:07 +10:00
Ryan Schultz
b68109d32b
small fix for #4745
2024-06-03 12:31:03 -05:00
Dion Moult
2ea3fe4ab9
Fix qto bug where cubic meter units are incorrectly converted.
2024-06-03 22:49:40 +10:00
Andrej730
94c159ccd0
Consider elements with openings reloading representations
...
Before - https://imgur.com/a/MMnGMBo .
Occurrences with openings wasn't reloaded if you'd change their representation items (add/remove a style, remove a representation item). Also type/occurrences representations were not always reloading.
After - https://imgur.com/a/vBDejb8
Similar thing will be added to switch representation and to representation update to solve issues like this - https://imgur.com/a/0DFIBj2 (issue is still present now).
2024-06-03 17:47:37 +05:00
Andrej730
e4eead6662
styles ui - bim.assign_style_to_selected
...
Just a simple operator to explicitly assign selected style to the selected objects from Styles UI
https://imgur.com/a/JOLVPz7
2024-06-03 17:44:06 +05:00
Andrej730
ee4e92dfa3
remove bim.update_current_style poll
...
as this operator can be executed without any objects selected
2024-06-03 17:44:05 +05:00
Andrej730
f4ce2965f9
fix error saving ifc file / assigning classes 6eb3c4814
2024-06-03 17:44:05 +05:00
Andrej730
5fb7e6e375
resource.remove_resource - fix issue removing resources in ifc2x3
2024-06-03 17:44:05 +05:00
Andrej730
c399eb259a
resource.add_resource_quantity to ensure quantity type is supported
2024-06-03 17:44:05 +05:00
Andrej730
5ccdf187d5
change type of exception when setting non-optional property to TypeError
...
TypeError is more correct since error occurs when user is trying to set some attribute value with None while atttribute doesn't support None type. ValueError is typically raised when provided value has a correct type but unsupported value.
2024-06-03 17:44:05 +05:00
Andrej730
d53351d218
Remove redundant description repeating the label #4771
2024-06-03 17:44:05 +05:00
Andrej730
08a82c7b57
remove dead code after #4745
2024-06-03 17:44:05 +05:00
Andrej730
499cdbb9b8
bump old api argument deprecation date
2024-06-03 17:44:05 +05:00
Andrej730
4a5d1eba0b
specify exported api methods in __all__
...
It's py.types requirement, similar to 6e2edbf
Example issue without __all__:
import ifcopenshell
import ifcopenshell.api.project
# "create_file" is not exported from module "ifcopenshell.api.project"
ifcopenshell.api.project.create_file()
2024-06-03 17:44:05 +05:00
Andrej730
70091aa28b
typing
2024-06-03 17:44:04 +05:00
Manu Varkey
3d566cc401
Fix missing code in pull request #4784 ( #4794 )
...
One line of code was inadvertently missed out in the pull request https://github.com/IfcOpenShell/IfcOpenShell/pull/4784
2024-06-03 21:30:58 +10:00
Dion Moult
6eb3c48144
Fix #3973 . Fix #4787 . Clarify that you cannot have aggregated physical elements where the whole has a body representation.
2024-06-03 15:37:24 +10:00
Dion Moult
44d180007e
Migrate test qto tool to new qto calculator
2024-06-03 15:16:27 +10:00
Dion Moult
7e8060b224
Fix #4791 . Hide irrelevant spatial containment panel for spatial elements.
2024-06-03 14:32:01 +10:00
Dion Moult
d408568d01
Fix #4793 . Bug where autodetected patch UI failed with new signature typing.
2024-06-03 14:08:54 +10:00
Ryan Schultz
47704b1625
Keeps selected objects selected when switching from one drawing to an… ( #4745 )
...
Keeps selected objects selected when switching from one drawing to another. As discussed: proposed: https://community.osarch.org/discussion/2179/not-unselecting-objects-when-switching-from-one-drawing-to-the-other#latest
2024-06-02 09:05:38 -05:00
Dion Moult
23fee9c8c8
Bring back formwork calculation feature that uses remesh
2024-06-02 17:43:25 +10:00
Dion Moult
c5d1801e1e
Fix #4786 . Speed up parent filter.
2024-06-02 17:39:23 +10:00
Thomas Krijnen
90ae709156
Wrapping of mapping
2024-05-23 13:06:57 +02:00
Richard Brice
579768c35f
Fixes problem with cant values
2024-05-22 13:51:55 -07:00
Richard Brice
a976e63def
Fixes divide by zero error for zero-length segments. See Issue #4713 .
2024-05-21 16:22:44 -07:00
Richard Brice
a45f6f980f
Prevents divide by zero when clothoid constant is 0.0
2024-05-20 13:17:18 -07:00
Thomas Krijnen
fbb51a6705
Rerun codegen
2024-05-18 15:11:46 +02:00
Thomas Krijnen
b2db755879
nix build --lto flag
2024-05-12 20:32:38 +00:00
Thomas Krijnen
3bb651fbd5
No longer disable optimizations in schema_class, not so relevant anymore
2024-05-12 21:19:32 +02:00
Thomas Krijnen
3df46abbc3
Rerun codegen
2024-05-12 19:36:01 +02:00
Thomas Krijnen
1e60454951
centralize attribute setting templates for size object reduction
2024-05-12 19:36:01 +02:00
Thomas Krijnen
6a62bf8493
Use latebound enum definition for resolving early bound enum names
2024-05-12 19:36:01 +02:00
Thomas Krijnen
fb72fdca9c
String pooling and modern initialization in schema
2024-05-12 19:36:01 +02:00
Thomas Krijnen
69afcce8e5
Rerun codegen
2024-05-12 19:36:00 +02:00
Thomas Krijnen
e9b69b4b26
Reduce number of externs
2024-05-12 19:36:00 +02:00
Richard Brice
507e4a8211
Fixes problem with constant cant
2024-05-08 10:28:01 -07:00
Richard Brice
a0b4c24224
Updates taxonomy::piecewise_function so it's immutable and implements internal caching. Adds new evaluate2 method that returns loop and vector of distance along for each loop point.
2024-05-07 10:24:46 -07:00
Richard Brice
e0a9f44c13
Fixes transition code of last segment of vertical alignment
2024-05-06 12:27:32 -07:00
Thomas Krijnen
9de173dd3b
#4605 fix segfault in absence of profile placement
2024-05-06 12:00:00 +02:00
Richard Brice
a130601969
A few more tweaks to the alignment examples
2024-05-05 13:17:55 -07:00
Richard Brice
e4625bd71e
Fixes parabolic curves in IfcAlignment examples and helper functions
2024-05-05 11:40:02 -07:00
Richard Brice
648ca4d477
Resolves IfcSegmentCurve parent curve parameterization for line and clothoid
2024-05-04 18:07:09 -07:00
Richard Brice
6cb511b681
Removed IfcPolyLine as a parent curve for IfcCurveSegment.
2024-05-04 16:14:15 -07:00
Richard Brice
4dec319333
Re-write of IfcCurveSegment to eliminate recursion problem and provides a more standardized approach for all parent curve types
2024-05-04 16:03:36 -07:00
Richard Brice
c93704f097
Fixes problem with IfcCurveSegment.Placement direction for parabolic vertical curves
2024-05-02 16:00:59 -07:00
Thomas Krijnen
7af9944c27
find_openings() on representation as a hint for hybrid kernel
2024-04-29 21:29:34 +02:00
Thomas Krijnen
405fe4097d
Preliminary attempt at hybrid kernel
2024-04-29 21:03:33 +02:00
Thomas Krijnen
6f540e61ac
Remove outdated todo note
2024-04-29 21:03:09 +02:00
Thomas Krijnen
710f19af08
Prevent stackoverflow on long alignments in adjustments
2024-04-29 21:02:31 +02:00
Thomas Krijnen
e6cc500227
Some basic code to lookup lengths for pre ADD2 schemas
2024-04-29 21:00:59 +02:00
Thomas Krijnen
4e35e7455f
Also lookup style association on solids
2024-04-29 20:57:09 +02:00
Thomas Krijnen
6fdf46f151
Add back support for IfcSphere
2024-04-29 20:56:37 +02:00
Thomas Krijnen
ae2600afb9
Set style name
2024-04-29 20:51:17 +02:00
Thomas Krijnen
d382cf7e23
Fix WeldVertices default in IfcConvert
2024-04-29 20:49:11 +02:00
Thomas Krijnen
aef2d05364
Add back IFC4X3 sec schema to default in cmake
2024-04-29 20:48:43 +02:00
Andrej730
82a0c6396c
BBIM support importing IfcRelAdheresToElement #4565
2024-04-26 11:44:52 +05:00
Andrej730
fabebb4ff6
use IFC4X3_ADD2 for ifcopenshell.schema_by_name
...
as it is the main IFC4X3 schema
2024-04-22 17:31:49 +05:00
Andrej730
aeb64acc07
util.doc - use release schema version for IFC4X3
...
As it will be more like to be available in the ifcopenshell package. Related to #4565
2024-04-22 17:31:49 +05:00
Andrej730
f94aecbbff
typing
2024-04-22 17:31:49 +05:00
Andrej730
d33fdbba69
small optimization
2024-04-22 17:31:49 +05:00
Andrej730
0ddbcd98ea
use column-major reshape for matrices #4565
2024-04-22 17:31:16 +05:00
Thomas Krijnen
133b420a54
Preliminary changes to blenderbim for v0.8 #4565
2024-04-21 13:35:18 +02:00
Thomas Krijnen
4f9f3d1856
Work around for obtaining instance id that blenderbim expects for materials
2024-04-21 13:34:25 +02:00
Thomas Krijnen
71c9066dc7
Fallback to C++ impl of IfcAxis2PlacementLinear #4565
2024-04-21 11:27:22 +02:00
Thomas Krijnen
0793ae539e
Merge remote-tracking branch 'origin/v0.7.0' into v08attempt1
2024-04-21 11:26:06 +02:00
Thomas Krijnen
595ef3f009
Allow passing setting enums as naked int
2024-04-21 10:19:17 +02:00
Thomas Krijnen
889ed3bb07
Change 'template template' to param pack to make clang happy
2024-04-20 13:22:13 +02:00
Thomas Krijnen
053c80a577
Uncomment debugging code
2024-04-20 13:21:50 +02:00
Thomas Krijnen
dafc321ea1
template and typename keywords to keep gcc happy
2024-04-19 21:44:54 +02:00
Thomas Krijnen
9272a9ed1f
Missing template keyword
2024-04-19 20:40:59 +02:00
Thomas Krijnen
29998e3f57
Option to convert placements via convert_shape() #4565
2024-04-19 20:23:59 +02:00
Thomas Krijnen
d24d781674
Merge remote-tracking branch 'origin/v0.7.0' into v08attempt1
2024-04-18 21:39:33 +02:00
Thomas Krijnen
c2a47e95ce
Merge commit '5a8209e2ad6873374452' into v08attempt1
2024-04-18 21:39:05 +02:00
Thomas Krijnen
ffe1442974
Fixes after settings rework
2024-04-18 21:36:45 +02:00
Thomas Krijnen
29fd32be75
Fixes after settings rework
2024-04-18 21:15:40 +02:00
Thomas Krijnen
0edfb0e791
Settings rework for plan/model/context and interfacing with python
2024-04-18 21:04:02 +02:00
Thomas Krijnen
b62b328f1d
Address minor unaddressed consequences of merge
2024-04-18 12:11:25 +02:00
Thomas Krijnen
745f7674ff
Update clash code to conform to v0.8
2024-04-18 12:02:22 +02:00
Thomas Krijnen
4828db0f6c
Merge branch 'v0.8.0' of https://github.com/IfcOpenShell/IfcOpenShell into v08attempt1
2024-04-18 11:45:07 +02:00
Thomas Krijnen
1e5f7c93fa
Some changes left-over after conflict resolution
2024-04-18 10:48:25 +02:00
Dion Moult
ad01945561
Fix #4549 . Drawing decorators are now refreshed like the rest of the UI after operations.
2024-04-18 10:48:25 +02:00
Dion Moult
9090b0866b
Fix #4486 . Sync camera properties from IFC on both drawing load as well as drawing activation.
...
Also there are now defaults in case pset values don't exist.
2024-04-18 10:48:25 +02:00
Dion Moult
f11538ee37
Fix #3402 .
2024-04-18 10:48:25 +02:00
Dion Moult
608904325a
Fix #4525 . Fix #4546 . Specify dependencies for ifcopenshell and ifcpatch.
...
No longer optional for a better first experience. They aren't huge deps.
2024-04-18 10:48:25 +02:00
Dion Moult
c2bb57d7de
See #4546 . Fix docs link to filtering elements query syntax.
2024-04-18 10:48:25 +02:00
Dion Moult
1e1451de03
See #4541 . Clarify how to use include args for IfcConvert
2024-04-18 10:48:25 +02:00
Dion Moult
f82a8f34c0
Fix #4550 . Update doc urls.
2024-04-18 10:48:25 +02:00
Andrej730
ef6dfc3fec
Update BBIM version in docs
2024-04-18 10:48:25 +02:00
Andrej730
657ff30883
material.unassign_material - support batching #4474
2024-04-18 10:48:25 +02:00
Andrej730
cd25a50e96
material.assign_material - support batching #4474
2024-04-18 10:48:25 +02:00
Andrej730
5562f35ed1
material.assign_material - update owner history
2024-04-18 10:48:25 +02:00
Andrej730
9e310318d4
ifcpatch - add ifc2x3 tests and test for MergeDuplicateTypes
2024-04-18 10:48:25 +02:00
Andrej730
67a6e4d258
typing
2024-04-18 10:48:25 +02:00
Dion Moult
09578b2fd6
Fix #4526 . Bug when exporting IfcTester results to BCF due to new "failures" attribute.
2024-04-18 10:48:25 +02:00
Dion Moult
a752abf0a5
See #4541 . Add documentation examples on how to use include filters in IfcConvert.
2024-04-18 10:48:25 +02:00
Andrej730
3478db67b9
system.unassign_system - support batching #4474
2024-04-18 10:48:25 +02:00
Andrej730
9ee5cb7180
system.assign_system - support batching #4474
2024-04-18 10:48:25 +02:00
Andrej730
b4658184de
system.add_system - fix failing default agrument in ifc2x3
2024-04-18 10:48:25 +02:00
Andrej730
6e1688905f
new util method ifcopenshell.util.element.get_groups
2024-04-18 10:48:25 +02:00
Andrej730
2460729e43
type.unassign_type - support batching #4474
2024-04-18 10:48:25 +02:00
Andrej730
d6fb508517
assign_type not to remap if it's type was assigned previously
2024-04-18 10:48:25 +02:00
Andrej730
949ff535eb
typing
2024-04-18 10:48:25 +02:00
Andrej730
fed23533a4
remove unused lines from tests
2024-04-18 10:48:25 +02:00
Andrej730
a27461e4ba
fix bug generating profiles on assign_type after df4943205
2024-04-18 10:48:25 +02:00
Vukas Pajic
5c0bbcf525
fix: address test fails
2024-04-18 10:48:24 +02:00
Vukas Pajic
e73ff252bb
fix: cascade_schedule correctly handles timelag with IfcRatioMeasure
2024-04-18 10:48:24 +02:00
Andrej730
74224676cd
type.assign_type - support batching #4474
2024-04-18 10:48:24 +02:00
Andrej730
571892dd60
fix bug in nest.assign_object
2024-04-18 10:48:24 +02:00
Andrej730
fa2009418c
unify tests for ifc4 and ifc2x3
2024-04-18 10:48:24 +02:00
Andrej730
7af1632c1a
fix test files names
2024-04-18 10:48:24 +02:00
Andrej730
48e5d14817
nest.assign_object to support ifc2x3
2024-04-18 10:48:24 +02:00
Andrej730
ee7cf918ea
get_pset() fix bug getting inherited psets with psets_only/qtos_only = True
2024-04-18 10:48:24 +02:00
Andrej730
b77df1892c
further ifcopenshell.util.element optimization
...
and readibility for props addressed by the index
2024-04-18 10:48:24 +02:00
Andrej730
4f2c5e4571
maintain verbosity getting complex property subproperties
2024-04-18 10:48:24 +02:00
Andrej730
bea8b2cddc
typing
2024-04-18 10:48:24 +02:00
Andrej730
773a79abc7
black format
2024-04-18 10:48:24 +02:00
Alper Kantarci
62b9fe2e13
Use "gltf" instead of "gtlf" ( #4538 )
...
- Fix "gtlf" typo
2024-04-18 10:48:24 +02:00
Dion Moult
df4478a90a
Fix #4290 . You can now format custom thousands separators and decimal separators in IfcCSV.
2024-04-18 10:48:24 +02:00
Dion Moult
47d5e17159
Document how MacOS users using Blender from Steam should still use Mac Intel
2024-04-18 10:48:24 +02:00
Dion Moult
97eb34ca0d
Fix #4490 . Fix fundamental bug where get_pset would return none for inherited props with a boolean False value.
2024-04-18 10:48:24 +02:00
Dion Moult
0a4ff00bce
Fix issue where the underlay cache option was not yet implemented and ignored.
2024-04-18 10:48:24 +02:00
Dion Moult
782573f986
Fix issue where reloading the drawing list would cause drawing names to be synced
...
It would run useless sync / API calls to edit psets on potentially hundreds of drawings.
2024-04-18 10:48:24 +02:00
Dion Moult
f0fce05342
See #4481 . Defer setting render visibility to drawing generation to speed up switching between drawings.
...
Doing obj.hide_render = True/False in a loop is slow and there is no bulk set command.
2024-04-18 10:48:24 +02:00
Andrej730
9fe5e75c27
ifcopenshell.util.element optimization
...
Tried to reduce amount of IFC attributes retrieved by reusing already retrieved values.
E.g. previously get_nest() was retrieving same attribute 3 times on each call, now it does it only once and it's 2 times faster (2.4 ms -> 1.2 ms).
2024-04-18 10:48:24 +02:00
Andrej730
ede278db8f
ifcopenshell.util.element.get_nest test
2024-04-18 10:48:24 +02:00
Andrej730
3db33a1071
nest.unassign_object - support batching #4474
2024-04-18 10:48:24 +02:00
Andrej730
d270a4fef8
nest.assign_object - support batching #4474
2024-04-18 10:48:24 +02:00
Andrej730
064fc0e405
typing
2024-04-18 10:48:24 +02:00
Andrej730
846ff3b9fd
black format
2024-04-18 10:48:24 +02:00
Andrej730
8df04091ff
ifcopenshell.api.run optimization
...
cache usecase classes instead of importing their modules and getting them each time, makes empty api call twice as fast
2024-04-18 10:48:24 +02:00
Andrej730
da838a2c7c
deprecate spatial.remove_container in favor of spatial.assign_container
...
added temporary support for old version with warnings:
WARNING. `spatial.remove_container` api method is deprecated and should be replaced with spatial.unassign_container
WARNING. `product` argument is deprecated for API method "spatial.remove_container" and should be replaced with `products`.
2024-04-18 10:48:24 +02:00
Dion Moult
d9d38e00bf
See #4481 . Faster implementation of object hiding and toggline viewport visibility.
2024-04-18 10:48:24 +02:00
Dion Moult
8d9a65caa4
Fix #4497 . Drawing text annotations are now based on actual line breaks.
2024-04-18 10:48:24 +02:00
Dion Moult
4541a15a19
See #4497 . Show invisible newlines and allow newline editing in attributes.
2024-04-18 10:48:23 +02:00
Dion Moult
ba8257c9b0
Fix #4533 . Add convenience link to launch type manager when no types exist.
2024-04-18 10:48:23 +02:00
Benoit DAMAY
446e9093a3
Inline help feature ( #4409 )
...
* Help operator in grouping and filtering Panel
Opens up a webbrowser on click
* Help button on the right of filtering panel header
* replacing os.rename() by shutil.move in ifcpatch
* removing debug print from previous commit
* Removing extra operator
Using bim.open_uri to open help page
* Update docs url
* Clean up whitespace
---------
Co-authored-by: Dion Moult <dion@thinkmoult.com >
2024-04-18 10:48:23 +02:00
ppaawweeuu
d6eb8c131b
Add CCI Classification schema
...
I'd like to add CCI classification to BBIM. It is very similar to CSS, developed by CCI-C and licensed under CC BY 4.0
More details here: https://cci-collaboration.org/the-standard/
This is my first commit, I used CCS(EN).ifc file as reference. Any feedback welcomed.
2024-04-18 10:48:23 +02:00
Gorgious
69d51283c7
New UI List in Sandbox panel to access, flip, remove, add, edit clipping planes
...
and some tweaks :
- Disable possibility to edit clipping plane quad geometry
- Add select and delete operators
- Remove polls from CreateClippingPlane that prevented from using it in the Properties editor. The clipping plane is added near the origin when using the Add button in the panel
2024-04-18 10:48:23 +02:00
Andrej730
163f5f2611
aggregate.unassign_object - support batching #4474
2024-04-18 10:48:23 +02:00
Andrej730
833f67cf45
aggregate.assign_object - support batching #4474
2024-04-18 10:48:23 +02:00
Andrej730
b106d6a4d1
temporary support for deprecated api arguments #4531
2024-04-18 10:48:23 +02:00
Andrej730
bc8b4e1a69
typing
2024-04-18 10:48:23 +02:00
Andrej730
9ef63e9b04
black format
2024-04-18 10:48:23 +02:00
Andrej730
65d419d5c7
fix test after 7dd0d7601
2024-04-18 10:48:23 +02:00
Andrej730
d35f2dd0e9
layer.unassign_layer - support batching #4474
2024-04-18 10:48:23 +02:00
Andrej730
a003bc0018
layer.assign_layer - support batching #4474
2024-04-18 10:48:23 +02:00
Andrej730
7d0111115b
validate - add examples
2024-04-18 10:48:23 +02:00
Andrej730
e21eaac3a2
fix possible infinite recursion in bim.debug_active_drawing #4500
...
also fixed the issue with mixed up results at the end of the operator execution
2024-04-18 10:48:23 +02:00
Dion Moult
3357f89311
Fix #4509 . Don't show scary error message if you haven't specified a filter query.
2024-04-18 10:48:23 +02:00
Dion Moult
562bc14f5b
Fix #3759 . IFC4X3 files should use ADD2 identifier.
2024-04-18 10:48:23 +02:00
Dion Moult
aba8683d5e
Fix #4303 . Declare dependencies for ifctester.
2024-04-18 10:48:23 +02:00
Dion Moult
ef1a92a9ee
Publish IfcClash to PyPI
2024-04-18 10:48:23 +02:00
Dion Moult
bfe2d9f256
Publish IfcCSV to PyPI
2024-04-18 10:48:23 +02:00
Dion Moult
1ab76897a8
Whoops again
2024-04-18 10:48:23 +02:00
Dion Moult
0168c0ee26
See #4529 . Publish IfcPatch to PyPI.
2024-04-18 10:48:23 +02:00
Dion Moult
42db0b18b0
Add bSDD makefile
2024-04-18 10:48:23 +02:00
Dion Moult
1248c8972a
Whoops
2024-04-18 10:48:23 +02:00
Dion Moult
89b1616d2b
Publish bSDD to PyPI
2024-04-18 10:48:23 +02:00
Dion Moult
b158d6a5f8
Materials with no style colours now default to Blender's default colour when linking models
2024-04-18 10:48:23 +02:00
Dion Moult
9a19fb89c9
Fix #4521 .
2024-04-18 10:48:23 +02:00
Dion Moult
52be9684fc
Minor fix in doc utility for entities which have no predefined types
2024-04-18 10:48:23 +02:00
Dion Moult
46adb2b4db
Fix bug where drawing psets were needlessly updated and random objects would get drawing psets added on them
...
The prop update callbacks on has_underlay, has_linework, and has_annotation would edit the active object, which is not necessarily the camera. Yikes! Also, this means that when activating the drawing, it would sync references and every time it synced a reference it would attempt to sync these properties too which was slow and wasteful.
2024-04-18 10:48:23 +02:00
Dion Moult
0e410b4ac2
Fix #4524 . Update README.md
2024-04-18 10:48:23 +02:00
Dion Moult
acba7c2410
Fix #4492 . Refix bug where there was an extra equal sign when loading saved queries.
2024-04-18 10:48:23 +02:00
sebphi
0f33c000fb
Fix import of ifcopenshell.util.unit in Python <3.10 #4520
2024-04-18 10:48:23 +02:00
Andrej730
eebcc48238
group.unassign_group - support batching #4474
2024-04-18 10:48:23 +02:00
Andrej730
df9a306730
spatial.unassign_container - support batching #4474
2024-04-18 10:48:22 +02:00
Andrej730
52995d1cdd
spatial.assign_container - support batching #4474
2024-04-18 10:48:22 +02:00
Andrej730
ee6c7a9fad
black format
2024-04-18 10:48:22 +02:00
Andrej730
443cd5187c
typing
2024-04-18 10:48:22 +02:00
Andrej730
1d916f41e2
Collector.sync skip_unlinking option #4500
...
To speed up the drawing process in large projects and reduce time on syncing stage I've found that if object is already assigned to it's parent collection (both as part of blender collection and in IFC) we can skip assigning stage significantly reducing time on syncing in general (from 20-25 secs -> 9 secs).
The only thing we'll be missing in that case that object won't be unlinked from other unrelated blender collections which shouldn't break anything in the case of drawing generation.
2024-04-18 10:48:22 +02:00
Andrej730
bbdfe11cc0
documentation and small refactor
2024-04-18 10:48:22 +02:00
Andrej730
26e296c4b5
small optimizations
...
1) stop on first parent collection
2) ensure object's own collection's parent has BIMCollectionProperties.obj during the loop
3) collector._get_collections - returns project's own collection for consistency
4) couple tweaks skipping unnecessary iterations in loops
2024-04-18 10:48:22 +02:00
Dion Moult
9ee35b1054
See #4518 . Fix pypi python version requirements.
2024-04-18 10:48:22 +02:00
Dion Moult
35f425c69d
Add missing build dep
2024-04-18 10:48:22 +02:00
Thomas Krijnen
11364061d4
#4278 Update cd.yml bump ubuntu version
2024-04-18 10:48:22 +02:00
Dion Moult
336d056be7
Fix evil hacks in ifcopenshell pip dist packaging and support py312 on PyPI
2024-04-18 10:48:22 +02:00
Dion Moult
861aa3f9c7
Ship py39 to py312 for PyPI
2024-04-18 10:48:22 +02:00
Dion Moult
b8ee171f65
Allow manual workflow dispatch of ci-ifcopenshell-pypi.yml
2024-04-18 10:48:22 +02:00
Dion Moult
a12c732d0f
Fix #4504 . Extract CAD layers when linking in models.
2024-04-18 10:48:22 +02:00
Dion Moult
f72604052b
See #4504 . Extract material data for linked models.
2024-04-18 10:48:22 +02:00
Dion Moult
760e8014e6
See #4508 . Update example code to serialise to obj.
2024-04-18 10:48:22 +02:00
jaymeandretta
fa65de051d
Updates links to BlenderBIM and IfcOpenShell documentation in README
2024-04-18 10:48:22 +02:00
Andrej730
6bc4e003b4
bim.debug_active_drawing debug operator #4500
...
Operator can help narrow down failing elements when drawing is failing with "RuntimeError: An unknown error occurred".
it's located in debug section - https://i.imgur.com/b03jmkZ.png
The output is noisy but the results are highlighted:
https://i.imgur.com/0ZA0u60.png
https://i.imgur.com/oXzqIXU.png
https://i.imgur.com/Y0nMRMz.png
2024-04-18 10:48:22 +02:00
Andrej730
d0e1a04fba
bim.create_drawing to sync only once if printing multiple drawings
...
Turned out syncing process takes too much time on large projects, so we can speed up the printing process by syncing just once. Also exposed option not to sync to operator's properties to allow debugging failing elements.
A bit related to #4500
2024-04-18 10:48:22 +02:00
Andrej730
479c244de7
black format, cleanup, notes
...
bim.generate_global_id - forgot to remove it previously, this operator isn't intended for debug section
2024-04-18 10:48:22 +02:00
Andrej730
1f3d46640f
typing
2024-04-18 10:48:22 +02:00
Dion Moult
95bfb5c6a1
Autodetect CSG representation types in shape builder
2024-04-18 10:48:22 +02:00
Dion Moult
9c11626893
Detect binary data types in util.attribute
2024-04-18 10:48:22 +02:00
Massimo Fabbro
6ea9c9444a
Qto_Calculator more consistent calculation about the PredefinedType
2024-04-18 10:48:22 +02:00
Massimo Fabbro
7519b66d4e
improve the flooring height object quantity calculation
2024-04-18 10:48:22 +02:00
Massimo Fabbro
1132029e1b
improve the ceiling height object quantity calculation
2024-04-18 10:48:22 +02:00
Massimo Fabbro
4ec902abf5
fix add ceiling from walls elevation bug
2024-04-18 10:48:22 +02:00
Andrej730
14efd59ff8
log external styles names when they fail to load
2024-04-18 10:48:22 +02:00
Andrej730
af3e2e0cf3
typing
2024-04-18 10:48:22 +02:00
Andrej730
19dcbf5ffb
use default shading_styles.json in case if project's file is missing
...
to make it consistent with how we use in similar cases default styles, symbols, etc
2024-04-18 10:48:22 +02:00
Andrej730
4d1ea7eba5
move override panel methods to tool.Blender
...
to keep them close, so it will be easier to keep them in sync
2024-04-18 10:48:22 +02:00
Andrej730
100629e104
change .poll for overridden panels instead of creating new classes
...
Needed to avoid errors disabling addons that have overridden panels
2024-04-18 10:48:22 +02:00
Andrej730
c4d437cce4
move scene panels from different addons to "Blender Properties"
...
now we also automatically get list of default blender scene panels instead of hardcoding them
2024-04-18 10:48:21 +02:00
Andrej730
e8b2ccdd3c
override blender ui panels when should_setup_workspace = False
...
Previously with should_setup_workspace = False it wouldn't override Blender UI scene panels and they would get mixed up with BBIM panels. After fix Blender panels are always moved to "Blender Properties" tab
before - https://i.imgur.com/bPvcAEe.png
now - https://i.imgur.com/lRUox29.png
2024-04-18 10:48:21 +02:00
Dion Moult
fea78a8d52
Fix bug when linking in models with no chunks
2024-04-18 10:48:21 +02:00
Andrej730
e5cfe5cf3c
ifcopenshell.validate to check unique guids (IfcRoot.UR1)
2024-04-18 10:48:21 +02:00
Andrej730
72011c2fbd
typing
2024-04-18 10:48:21 +02:00
Andrej730
5c90b215ca
validate.py - black format
2024-04-18 10:48:21 +02:00
Gorgious56
6f520ae457
The button to remove an inherited pset is no longer enabled on instances
...
Previously it would fail silently if clicked
2024-04-18 10:48:21 +02:00
Andrej730
65838f2033
Return of the missing button for regenerating global id
...
Was about to implement to find that we already have "bim.generate_global_id" and it just was lost at some point. Returned it to the attributes UI. It also allows Updating guids for all selected elements on Shift+Click.
This also can be useful to solve MergeProject and other guids conflicts, see example issue in https://community.osarch.org/discussion/2062/bbim-mergeproject-patch-not-separating-elements-in-different-buildings
Example - https://imgur.com/a/mvRtyER
2024-04-18 10:48:21 +02:00
Andrej730
345b94fbee
RegenerateGlobalIds - tests
2024-04-18 10:48:21 +02:00
Andrej730
d6a72bd2b6
Fix test after cf9a94a79
2024-04-18 10:48:21 +02:00
Andrej730
246441e216
prevent reloading reference annotations on loading .ifc #4478
...
1) if reference annotation was changed, it would reload discarding the changes
2) even if reference annotation wasn't changed it would still reload them producing noise in .ifc changes
2024-04-18 10:48:21 +02:00
Andrej730
2f19a1bbea
typing
2024-04-18 10:48:21 +02:00
Andrej730
73d7728c5f
fix typo
2024-04-18 10:48:21 +02:00
Andrej730
bddf423e6c
experimental svg to dxf conversion for drawings
...
Example - https://imgur.com/a/AkvLlbZ
2024-04-18 10:48:21 +02:00
Andrej730
74fa0a106e
fix issue with prohibited facets in 0065c5f, add a test
2024-04-18 10:48:21 +02:00
Andrej730
5c398428c3
ifctester.Specification.set_usage convenience method
...
sets minOccurs and maxOccurs according to the agreement mentioned in the latest ids.xsd
https://github.com/buildingSMART/IDS/blob/6d71cdf3547a0383c6cfbbead81a7cef7521ac3a/Development/ids.xsd#L67-L72
2024-04-18 10:48:21 +02:00
Andrej730
7be396474c
typing
2024-04-18 10:48:21 +02:00
Dion Moult
36527d0e9d
Whoops.
2024-04-18 10:48:21 +02:00
Dion Moult
4403f75959
Fix #4321 . The PurgeData recipe now also works on IFC2X3.
2024-04-18 10:48:21 +02:00
Dion Moult
619f461829
Fix #4060 . The colour by property panel now shows the number of results in the legend.
2024-04-18 10:48:21 +02:00
Dion Moult
3793a5dfea
Fix #4069 . IfcClash Blender interface now uses the new filter UI.
2024-04-18 10:48:21 +02:00
Dion Moult
77465dfd41
Bump IOS.
2024-04-18 10:48:21 +02:00
Dion Moult
7742e4da45
IfcDiff now uses the new selector syntax with the new UI
2024-04-18 10:48:21 +02:00
Dion Moult
e2102cd2c7
Fix #4306 . Remove superseded selector UI.
2024-04-18 10:48:21 +02:00
Ryan Schultz
d7317d27ab
added search for styles - in BIM_PT_representation_items
2024-04-18 10:48:21 +02:00
Dion Moult
2905eb637d
Fix #4328 . Fix incorrect documentation about how to use the imperial_length formatting function.
2024-04-18 10:48:06 +02:00
Dion Moult
33f5db2e26
Use indices instead of WorkTimeDatesInterface
...
Checking start/end dates are done very, very often in date calculations (often looping through every day in a date range). So I'd prefer more opaque code but less overhead.
2024-04-18 10:48:06 +02:00
Thomas Krijnen
c16d49d683
#4450 don't fail on empty bbox in prefiltering
2024-04-18 10:48:06 +02:00
Dion Moult
fcf5073726
See #4484 . Editing predefined type attributes now enforces valid combinations of userdefined and object/element type
2024-04-18 10:48:06 +02:00
Dion Moult
81fdaea5f2
Fix #4323 . Bug where running a filter could fail if you tried to compare values which had incompatible types.
2024-04-18 10:48:06 +02:00
Dion Moult
a56ad31571
More minor doc changes and polish
2024-04-18 10:48:06 +02:00
Dion Moult
589a725747
Fix #4265 . Bug where when loading a saved filter it showed an unnecessary = comparison (which is by default).
2024-04-18 10:48:06 +02:00
Dion Moult
7f70b79f2a
Minor doc fixes
2024-04-18 10:48:06 +02:00
Dion Moult
5fbdc9e7fb
Fix #4461 . Write documentation on how to build and edit documentation.
2024-04-18 10:48:06 +02:00
Dion Moult
65dfa048cf
Fix #4483 .
2024-04-18 10:48:06 +02:00
Dion Moult
a6ae609a6a
Fix #4318 . Theme docs to match website branding and add edit button, footer links, and icons.
2024-04-18 10:48:06 +02:00
Dion Moult
4c3a7b14ff
Fix #4286 . IfcCSV summaries are now formatted the same as the rows.
2024-04-18 10:48:06 +02:00
Dion Moult
2037a5a46b
Fix bug where loading drawings didn't correctly link shared meshes (e.g. from a type of an annotation)
2024-04-18 10:48:06 +02:00
Dion Moult
13b845df92
Fix incorrect handling of prohibited specifications
2024-04-18 10:48:06 +02:00
Andrej730
ad045f5ad7
import referenced drawings activating the current drawing #4478
2024-04-18 10:48:06 +02:00
Andrej730
258d38393f
typing
2024-04-18 10:48:06 +02:00
Dion Moult
7e689f2456
Fix #4305 . Bug where importing spreadsheets into IFC didn't intelligently cast attribute data types
2024-04-18 10:47:36 +02:00
Andrej730
7cd400dc8e
Fix #4477
2024-04-18 10:47:36 +02:00
Dion Moult
948799698e
Fix #4368 . Update to latest Brickschema alpha to cut dep size
2024-04-18 10:47:36 +02:00
Dion Moult
93d44041bf
See #4473 . Cull entourage library.
...
We haven't confirmed the legality of the other assets.
2024-04-18 10:47:36 +02:00
Dion Moult
4f66fdd339
Fix #4411 . Fallback to absolute paths if relative paths fail.
2024-04-18 10:47:36 +02:00
Dion Moult
4abb4d7f63
Run black on IfcTester
2024-04-18 10:47:36 +02:00
Dion Moult
bd92c043e0
Fix #4427 . Failures are now stored in single dictionary.
...
There was a missing clear() call to failed_reasons which could lead to incorrect reporting. It also makes no sense to store them separately.
2024-04-18 10:47:36 +02:00
Dion Moult
ed8eb7543b
Fix #4465 . Update IfcTester to IDS 0.9.7
2024-04-18 10:47:36 +02:00
Andrej730
12a1f8b5f0
Fix invalid profiles after subdividing edges near arcs #4471
2024-04-18 10:47:36 +02:00
Andrej730
e9b8edb5b2
use blender units subtype for cad props
2024-04-18 10:47:36 +02:00
Andrej730
0460c5c640
typing, format
2024-04-18 10:47:36 +02:00
Thomas Krijnen
f6a0d1f073
Fix #4273 ignore degenerate triangles in mesher output
2024-04-18 10:47:23 +02:00
Vukas Pajic
61af868c7a
sync with latest
2024-04-18 10:45:31 +02:00
Vukas Pajic
f7a97622c5
Additional metadata as property set #4425
...
https://github.com/IfcOpenShell/IfcOpenShell/issues/4425
2024-04-18 10:45:31 +02:00
Dion Moult
4584430a5f
Minor doc fixes to refer to Mac intel and silicon
2024-04-18 10:45:31 +02:00
Dion Moult
d5c2085366
Clash results now are sorted and show text overlays of clash type and distance
2024-04-18 10:45:31 +02:00
Dion Moult
36ca54f3a2
Don't consider borderline points to be inside a shape for more robust protrusion results
2024-04-18 10:45:31 +02:00
Dion Moult
4f20ebce80
Change precision check of "is point on line" to be 0.01mm
...
Precision::Confusion() is 1e-7 which is too small apparently when doing this math. There are plenty of results which are things like 5e-7.
2024-04-18 10:45:31 +02:00
Dion Moult
a2ff97e5e7
Fix bug where hidden elements weren't selected sometimes
2024-04-18 10:45:31 +02:00
Dion Moult
0729b5782b
Fix #4269 . Include dateutil for ifcopenshell on pypi
2024-04-18 10:45:31 +02:00
Dion Moult
44adf92392
Bump IfcOpenShell and remove py37 py38 from installation docs
2024-04-18 10:45:31 +02:00
Andrej730
385388a331
ExtractElemenets - add some tests
2024-04-18 10:45:31 +02:00
Andrej730
c2de964dce
ExtractElements - fix bug where IfcElementAssembly elements wasn't added to the spatial tree
...
Example issue - https://community.osarch.org/discussion/2054/bbim-extractelements-patch-and-missing-elements-in-ifcelementassembly
2024-04-18 10:45:31 +02:00
Andrej730
a37c87cf4c
Fix tests involving changes in Blender 4.1 (will fail on Blender <4.1)
...
Basically in Blender 4.1 they've changed a way renaming IDs works if name already existed before and those tests will stop working on Blender <4.1, see https://projects.blender.org/blender/blender/issues/119955
2024-04-18 10:45:31 +02:00
Andrej730
e2b22369f1
tests - reduce precision to our usual Cad tool precision to fix some tests
2024-04-18 10:45:31 +02:00
Andrej730
bdfdac24e1
Fix test in 1c1035e
...
tag @brunoperdigao for information
2024-04-18 10:45:31 +02:00
Andrej730
a7ed8e4328
black format
2024-04-18 10:45:30 +02:00
Dion Moult
321fcf0848
New entourage library including people and cars
2024-04-18 10:45:30 +02:00
Thomas Krijnen
90c7a9435c
Fix #4070 don't increment aggregate length on invalid members
2024-04-18 10:45:22 +02:00
Dion Moult
6875a98646
Optimise property / quantity checks for IDS and other purposes
2024-04-18 10:43:02 +02:00
Dion Moult
2c169fdc24
Forgot to commit clash tool
2024-04-18 10:43:02 +02:00
Dion Moult
94bad4c4cb
Switch over clash to latest add_element signature
2024-04-18 10:43:02 +02:00
Dion Moult
3f456c14b6
Minor note about which OCCT version is currently supported
2024-04-18 10:43:02 +02:00
Dion Moult
24677683ba
Write docs about new geometry tree clash functions
2024-04-18 10:43:02 +02:00
Dion Moult
8f19f6ce07
Reinclude missing max_protrusions_
2024-04-18 10:42:35 +02:00
Thomas Krijnen
ea17cd9b42
Fix is_manifold(), sorry :(
2024-04-18 10:42:35 +02:00
Thomas Krijnen
75732d1d5d
Integrate @Moult's add_element(TriangulationElement*)
2024-04-18 10:42:33 +02:00
Dion Moult
23f91c73af
Clash detection features
2024-04-18 10:40:32 +02:00
Thomas Krijnen
4e4b8e0de1
Resolve merge conflict
2024-04-18 10:14:42 +02:00
Thomas Krijnen
7aa7f26708
Fix #4307
2024-04-18 10:14:15 +02:00
Andrej730
4f92b3587c
fix styles tests
2024-04-17 15:00:40 +02:00
Andrej730
6acdadba75
Fix tests, clean up file creating empty project
...
To fix tests changed bim.unlink_object not to unlink original blender materials as they might be used elsewhere.
2024-04-17 15:00:40 +02:00
Andrej730
6d6c9e19b9
restore accidentally unregistered operator in 9be7d95 (caused issue in tests)
2024-04-17 15:00:40 +02:00
Andrej730
edd8d5470e
small optimization
...
not to calculate each quantity twice
2024-04-17 15:00:40 +02:00
Andrej730
d5384e76eb
fix tests
2024-04-17 15:00:39 +02:00
Andrej730
7cfeaa6047
typing
2024-04-17 15:00:39 +02:00
Andrej730
91765d3156
fix test after 7634e71
2024-04-17 15:00:39 +02:00
Thomas Krijnen
a764387b90
Don't accept non-finite floats #4329
2024-04-17 15:00:07 +02:00
Ian
b40c3fc173
Update build-deps.cmd
2024-04-17 14:58:14 +02:00
Gorgious56
ac72534ae0
You can now select only the aggregate or the aggregate and all its part using the interface
2024-04-17 14:58:13 +02:00
Dion Moult
9f43e9422a
Blender IfcClash interface now supports new IfcClash modes
...
The dumb clash manager has been merged in with the main clash sets window. Loading and saving clashes now also bring in clash results, so the dumb clash manager's load/save is being deprecated. New decorator highlights clash result visually.
2024-04-17 14:58:13 +02:00
Dion Moult
18c38b312d
Upgrade IfcClash to use new clash capabilities (currently unmerged from feature-clash2)
2024-04-17 14:58:13 +02:00
Andrej730
71013a48d4
Fix hiding annotation objects without repr on drawing activation
2024-04-17 14:58:13 +02:00
Andrej730
98e0070be7
typing
2024-04-17 14:58:13 +02:00
Andrej730
9ae39f1edc
fix duplicated function names in test_feature
2024-04-17 14:58:13 +02:00
Andrej730
1a449905f4
fix linked ifc selectability toggle
2024-04-17 14:58:13 +02:00
Andrej730
2fadfc8eff
fix load/unload linked ifc tests
2024-04-17 14:58:13 +02:00
Andrej730
4a513e1e41
fix linked ifc visibility toggle tests
2024-04-17 14:58:13 +02:00
Andrej730
812c2652d3
fix linked ifc wireframe mode toggle
2024-04-17 14:58:13 +02:00
tim
ca50044dba
Remove object text from subheadings ( #4445 )
...
https://github.com/IfcOpenShell/IfcOpenShell/issues/4312
2024-04-17 14:58:13 +02:00
Thomas Krijnen
75b9e6cec9
setOnlyValid() option that skips and logs invalid topology #4130
2024-04-17 14:57:44 +02:00
Bruno Postle
6944c247ca
Drawings panel: fix select_all_drawings operator
...
Previously it always deselected all drawings, now works as advertised
2024-04-17 14:54:42 +02:00
Andrej730
aee264b587
black format
2024-04-17 14:54:42 +02:00
Andrej730
4490efc017
Fix ifc linking tests
2024-04-17 14:54:42 +02:00
Andrej730
37e06338c4
Fix issue removing material set
...
1) core.remove_material_set were removing material set and calling material_tool.get_active_material_type()
2) material_tool.get_active_material_type() called MaterialsData which failed with the traceback below since props.materias[current_index] had ifc id that were just removed
Traceback (most recent call last):
File "\prop.py", line 96, in get_material_types
MaterialsData.load()
File "\data.py", line 43, in load
"active_styles": cls.active_styles(),
^^^^^^^^^^^^^^^^^^^
File "\data.py", line 119, in active_styles
material = tool.Ifc.get().by_id(material)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File \blenderbim\libs\site\packages\ifcopenshell\file.py", line 411, in by_id
return self[id]
~~~~^^^^
File \blenderbim\libs\site\packages\ifcopenshell\file.py", line 396, in __getitem__
return entity_instance(self.wrapped_data.by_id(key), self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File \blenderbim\libs\site\packages\ifcopenshell\ifcopenshell_wrapper.py", line 4619, in by_id
return _ifcopenshell_wrapper.file_by_id(self, id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Instance # 66 not found
File "\prop.py", line 94, in get_material_types
WARN (bpy.rna): C:\Users\blender\git\blender-v410\blender.git\source\blender\python\intern\bpy_rna.cc:1366 pyrna_enum_to_py: current value '2' matches no enum in 'BIMMaterialProperties', '', 'material_type'
2024-04-17 14:54:42 +02:00
Andrej730
2b27f4423f
fix ui error getting active styles for non IfcMaterial materials
...
Error was:
```
Traceback (most recent call last):
File "\blenderbim\bim\module\material\ui.py", line 43, in draw
MaterialsData.load()
File "\blenderbim\bim\module\material\data.py", line 43, in load
"active_styles": cls.active_styles(),
^^^^^^^^^^^^^^^^^^^
File "\blenderbim\bim\module\material\data.py", line 117, in active_styles
return results
File "\blenderbim\libs\site\packages\ifcopenshell\entity_instance.py", line 194, in __getattr__
raise AttributeError(
AttributeError: entity instance of type 'IFC4.IfcMaterialLayerSet' has no attribute 'HasRepresentation'
```
2024-04-17 14:54:42 +02:00
Andrej730
ecc8832c46
typing and small refactor
2024-04-17 14:54:42 +02:00
Andrej730
dbff0e51aa
Blender 4.1 - fix errors due to renamed type manager icon
2024-04-17 14:54:42 +02:00
FabioPiccinini
8464fb5aad
Update sample.css ( #4459 )
...
Changed unescaped ; with , because it may cause problems if the style is included in svg
2024-04-17 14:54:42 +02:00
FabioPiccinini
e3f66981e7
Unescaped ; was causing problems in Inkscape ( #4456 )
...
* Update default.css
An unescaped ; was causing problems when opening svgs that included this style with Inkscape
* Update default.css
2024-04-17 14:54:42 +02:00
Thomas Krijnen
7fa3cd45ca
#4452 release gil in ifcopenshell.open() and read()
2024-04-17 14:54:42 +02:00
Andrej730
2f5190ac75
add macos py3.11-3.12 to docs
2024-04-17 14:54:42 +02:00
Andrej730
a29fbb6239
bump ifc version #4174
2024-04-17 14:54:42 +02:00
Andrej730
eaf6256048
TesselateElements - avoid processing queries that affect no elements
...
Previously it was failing with
File "\ifcopenshell\geom\main.py", line 119, in __init__
self.this = initializer(
File "\ifcopenshell\ifcopenshell_wrapper.py", line 2467, in construct_iterator_with_include_exclude
return _ifcopenshell_wrapper.construct_iterator_with_include_exclude(settings, file, elems, include, num_threads)
TypeError: Attribute of type AGGREGATE OF STRING needs a python sequence of strs
2024-04-17 14:54:42 +02:00
Andrej730
cbc7271885
add_mesh_representation - option to force faceted breps
2024-04-17 14:54:42 +02:00
Andrej730
ac191ac71d
typing
2024-04-17 14:54:42 +02:00
Andrej730
afbf001694
grammar 😬
2024-04-17 14:54:42 +02:00
Andrej730
11bf227730
Clarifying info message saving guids to the text inside .blend #4446
...
Example - https://i.imgur.com/YtuQ9YA.png
2024-04-17 14:54:42 +02:00
Andrej730
860eb054d1
black format
2024-04-17 14:54:42 +02:00
Andrej730
489e92da4e
typing
2024-04-17 14:54:42 +02:00
Andrej730
bae58e517a
bim.select_similar_type optimization
...
1) avoid selecting elements of the same type multiple times
2) iterate over occurrences of the type rather than visible objects, as it's usually smaller amount of objects
2024-04-17 14:54:42 +02:00
Thomas Krijnen
8a8173f238
#4447 build-all.py
2024-04-17 14:54:42 +02:00
Andrej730
ef3d61e6c1
make spatial elements unselectable from viewport by default
...
It seems most of the time they only get in the way trying to select some objects at scene origin.
fyi @theoryshaw
2024-04-17 14:54:42 +02:00
Andrej730
acafc910f7
typing
2024-04-17 14:54:42 +02:00
Andrej730
a511be18a8
unload decorations on unlinking ifc file
2024-04-17 14:54:42 +02:00
Andrej730
a656d32e56
fix issue with removing collections and scenes unlinking .ifc
...
it couldn't find linked collections and scenes since it was comparing `filepath` from `props.links` (.ifc file) and collection.library.filepath (which is .blend file)
2024-04-17 14:54:42 +02:00
Andrej730
a1f5c84ec2
hide "no object selected" label when there are no linked ifc files
2024-04-17 14:54:42 +02:00
Andrej730
ed53f58ae7
Remove appending occurrences from library in favor of fcaac6b
2024-04-17 14:54:42 +02:00
aothms
684c0877f5
#4174 debug osx install of py311 and 312
2024-04-17 14:54:42 +02:00
Andrej730
89114f4f65
Append IfcElements from linked IFC files
...
Example - https://imgur.com/a/phPcKSo
Appending ifc elements from library files will be deprecated as it's much more limited than appending it from linked files (in library you can only see object's name).
2024-04-17 14:54:42 +02:00
Andrej730
088e1d07bf
util.selector.set_element_value to work w/o preassigned placement #4439
2024-04-17 14:54:42 +02:00
Andrej730
7bdd382d06
util.selector.set_element_value ignore values within tolerance #4439
2024-04-17 14:54:42 +02:00
Andrej730
0bd52e2431
collector.sync note
2024-04-17 14:54:42 +02:00
Andrej730
bf770ce8d4
typing
2024-04-17 14:54:41 +02:00
Andrej730
8c028827fa
Fix for loading IFC files with non-IfcElement based IfcRelNests
...
Example is below, it was using IfcAlignment to aggregate IfcAnnotations and IfcReferents.
I've added support loading collections for IfcPositioningElements besides IfcGrid (grids already handled separately).
https://community.osarch.org/discussion/2034/ifc-not-visible-after-loaded-in-blender-bim
2024-04-17 14:54:41 +02:00
Andrej730
588a946fde
typing
2024-04-17 14:54:41 +02:00
Andrej730
67b657f2cb
small fix
2024-04-17 14:54:41 +02:00
Andrej730
5ee0c4c967
ifccsv - support for assigning x/y/z coordinates from csv
2024-04-17 14:54:41 +02:00
Andrej730
9cb76a092f
typing
2024-04-17 14:54:41 +02:00
M!l!nd
596e63e7e7
fixed qsets to display separately ( #4423 )
...
* fixed qsets to display separately
Signed-off-by: milinddethe15 <milinddethe15@gmail.com >
* updated data.py and run black formattor
---------
Signed-off-by: milinddethe15 <milinddethe15@gmail.com >
2024-04-17 14:54:41 +02:00
Ryan Schultz
5bacf70727
small fix to cdd332d1ee, for clarity
2024-04-17 14:54:41 +02:00
Ryan Schultz
24e1c70d5a
fixes #4434
2024-04-17 14:54:41 +02:00
Thomas Krijnen
946a21146a
Add missing includes after merge resolution
2024-04-17 14:54:39 +02:00
Thomas Krijnen
8aa3b12911
Wait for threads in iterator destructor
2024-04-17 14:54:15 +02:00
Andrej730
16fa8573d3
fix error loading representation without styles
...
If current representation didn't had any styles, only a material and it was failing during `assign_material_slots_to_faces` since it was looking for blender material only in self.styles and not in self.materials.
Note: `assign_material_slots_to_faces` is not skipped since `parse_representations` returns `True` because other representation has a style and it's added to the materials.
2024-04-17 14:48:57 +02:00
Andrej730
5197e27b13
typing
2024-04-17 14:48:55 +02:00
Andrej730
f7f828f70c
python code style docs
2024-04-17 14:46:07 +02:00
Benoit DAMAY
3f4a7e6097
removing debug print from previous commit
2024-04-17 14:46:07 +02:00
Benoit DAMAY
df478f6ed7
replacing os.rename() by shutil.move in ifcpatch
2024-04-17 14:46:07 +02:00
Jordan McManus
aec751b762
changed type comparison to GlobalId
2024-04-17 14:46:07 +02:00
Jordan McManus
3066404b40
changed comparison for type relationships
2024-04-17 14:46:07 +02:00
jgunstone
487c96e84f
✅ add get_properties test validating that offset and limit are correctly applied
2024-04-17 14:46:07 +02:00
jgunstone
db811152b8
✨ add limit and offset to client functions
2024-04-17 14:46:07 +02:00
Andrej730
144ef8821a
fix bug after 8291a0ca6
2024-04-17 14:46:07 +02:00
Andrej730
6bb507dfc0
viewport decorations for IfcAnnotation/MULTI_SYMBOL
2024-04-17 14:46:07 +02:00
Andrej730
7ff2f56f46
common method for getting annotation symbol
2024-04-17 14:46:06 +02:00
Andrej730
6ff721f5af
Indicate rotated/scaled symbols in viewport
2024-04-17 14:46:06 +02:00
Andrej730
4b634b91ac
Support for rotated and scaled symbols with IfcAnnotation/SYMBOL
...
See: https://community.osarch.org/discussion/2027/bbim-rotation-of-ifcsymbol
2024-04-17 14:46:06 +02:00
Andrej730
fad51eb388
black format
2024-04-17 14:46:06 +02:00
Andrej730
886467dfd6
typing
2024-04-17 14:46:06 +02:00
Andrej730
914dd031bd
indicate IfcText symbol rotation in viewport
2024-04-17 14:46:06 +02:00
Andrej730
dd1978d61d
BBIM IfcTester - option to generate ODS report
...
https://i.imgur.com/0JyXVK6.png
2024-04-17 14:46:06 +02:00
Andrej730
6873c21d27
Fix #4421
...
1) Excluded annotations from other drawings that user might accidentally include in IfcAnnotation
2) Excluded from EPset_Drawing.Include to avoid getting there other element types besides spaces
2024-04-17 14:46:06 +02:00
Andrej730
edce320756
utils.filter_elements docs and tests
2024-04-17 14:46:06 +02:00
Andrej730
96cc24c820
typing
2024-04-17 14:46:06 +02:00
Andrej730
6eeac88e1c
small fixes
2024-04-17 14:46:06 +02:00
Sigma Dimensions (Yass)
bc833e43ae
fix construction schedule import without IfcProject #4412
2024-04-17 14:46:06 +02:00
Andrej730
0cf8574e1f
spatial.workspace - add hotkeys using add_layout_hotkey
2024-04-17 14:46:06 +02:00
Andrej730
78fb986f0b
bim.decorate_boundaries to decorate all boundaries in the scene
...
It's added as alt+v hotkey in Spatial Tool
Now it's possible to combine it with bim.load_project_space_boundaries to show decorations for all the boundaries or to keep the boundaries after Alt+B and just disable the decorations.
example - https://imgur.com/a/ecbPz13
2024-04-17 14:46:06 +02:00
Andrej730
a265a41ebe
Fix issue with drawing same boundaries multiple times
...
If you'd hit alt+b in space tool multiple times it would redraw them again and again instead of switching between hiding and showing.
2024-04-17 14:46:06 +02:00
Andrej730
998b4a0565
model.space.py - small fixes
2024-04-17 14:46:06 +02:00
Andrej730
8d1559b486
small fixes after d209cc9ff, added a test
2024-04-17 14:46:06 +02:00
Andrej730
9852e4fa54
BBIM - option to append occurrences from the other ifc files
...
Example - https://imgur.com/a/yASjbs8
2024-04-17 14:46:06 +02:00
Andrej730
38bbaa0a8f
util.unit.py - black format
2024-04-17 14:46:06 +02:00
Andrej730
a4a965e7ab
more typing
2024-04-17 14:46:06 +02:00
Geert Hesselink
15dd93b9fb
Redundant closing symbol ' ( #4413 )
...
* scale placeangleunit
* add radian si_conversions
* return conversion value of planeangleunit
* Update unit.py
* redundant closing
* redundant closing
2024-04-17 14:46:06 +02:00
Geert Hesselink
6db45c0965
Scale placeangelunit unit type ( #4406 )
...
* scale placeangleunit
* add radian si_conversions
* return conversion value of planeangleunit
* Update unit.py
2024-04-17 14:46:06 +02:00
Andrej730
17f09655e1
fix error reloading representation for objects without representation
2024-04-17 14:46:06 +02:00
Andrej730
036a88de54
commented out apil.run settings serialization as it's not used currently
2024-04-17 14:46:06 +02:00
Andrej730
6cbc0e0564
small fixes
2024-04-17 14:46:06 +02:00
Ryan Schultz
2d0e4f52a6
Add parameter for angle tolerance, and change 'deg' to '°'
2024-04-17 14:46:06 +02:00
Andrej730
e5d1c8cfb9
add test for util.unit.calculate_unit_scale
2024-04-17 14:46:06 +02:00
Andrej730
0abea81e6b
fix error in typing
2024-04-17 14:46:06 +02:00
fescale
bedb7733a7
Replace the specific "libpython3.8" debian package dependency for the generic "libpython3-dev".
2024-04-17 14:46:04 +02:00
Ryan Schultz
8356911bba
added python version for Blender 4.1
2024-04-17 14:45:15 +02:00
Andrej730
59bda23ff6
Fix bug joining multiple extruded profiles in non-meters projects
...
Demo if someone missed that feature - https://imgur.com/a/JywJHyc
2024-04-17 14:45:15 +02:00
Andrej730
ad87d31e6a
shape_builder.create_axis2_placement_3d utility method and docs
2024-04-17 14:45:15 +02:00
Andrej730
26e7742472
Fix bug resetting rotations after editing profile axis
...
Before - https://imgur.com/a/czjAoSb
After - https://imgur.com/a/ajiNcdK
2024-04-17 14:45:15 +02:00
Adrian Insaurralde Avalos
9b76ce8d97
occt 7.8 compatibility
2024-04-17 14:45:13 +02:00
Dion Moult
10797c03a2
Aggressively remove pandas test files
2024-04-17 14:42:55 +02:00
Andrej730
5980a3984d
fix demo library references after 7a7c89e
2024-04-17 14:42:55 +02:00
Dion Moult
7b3b32c7f5
See #4368 . Don't ship with mostly unused and bloaty boto3 dep. Augin users can install boto3 with new debug tool.
2024-04-17 14:42:55 +02:00
Dion Moult
6d142374b1
Little debug tool for people to easily install pip packages graphically
...
BBIM is being used in companies as ways to automate various BIM processes, and it ends up being such that Blender Python becomes their dev environment.
2024-04-17 14:42:55 +02:00
Dion Moult
b1398988d3
Purge hppfcl in preparation for new clash features
2024-04-17 14:42:55 +02:00
Andrej730
f5fa371492
load clipping planes decorator reopening .blend file
2024-04-17 14:42:55 +02:00
Andrej730
5246e8588a
fix poll errors for clipping plane gizmo #4392
2024-04-17 14:42:55 +02:00
Andrej730
ac4669f841
fix duplicated ifcstyleditems using append_asset
...
since we don't use `file.add` to add inverse items and we use `file.create_entity` it was duplicating new elements, added optional parameter that makes it possible to track already added relationships between `append_asset`s.
2024-04-17 14:42:55 +02:00
Benoit DAMAY
51ca119406
Removing unnecessary comment lines
2024-04-17 14:42:55 +02:00
Andrej730
5d370e8e2f
fix typing loading issues
2024-04-17 14:42:55 +02:00
Andrej730
1d7c882231
append_asset - keep preexisting contexts valid #4280
...
issue occurred with ifcpatch ExtractElements - it was adding project from other ifc file (with the contexts) and then adding some elements from it using `append_asset`. During `append_asset` it was considering existing context with the duplicated one and was partially purging it.
2024-04-17 14:42:55 +02:00
Andrej730
cbf95b2080
typing
2024-04-17 14:42:55 +02:00
Andrej730
a7b731e6df
Optimise patch - lazy import toposort
...
to fix empty Optimise patch description in BlenderBIM
2024-04-17 14:42:55 +02:00
Dion Moult
bceac22ca0
See #4389 . Accommodate null pset values when serializing to SVG.
2024-04-17 14:42:55 +02:00
Dion Moult
d7def8291e
Add tree species to tree library
2024-04-17 14:42:55 +02:00
Dion Moult
167c456223
See #4389 . Accommodate null metadata.
2024-04-17 14:42:55 +02:00
Benoit DAMAY
62a3b37397
Replaced panel row with operator descriptor
2024-04-17 14:42:55 +02:00
Benoit DAMAY
a6f6d0d676
Fix proposition to 3515 - extra empty lines removed from previous commit
2024-04-17 14:42:55 +02:00
Benoit DAMAY
6fa7cbce86
Fix proposition to 3515
2024-04-17 14:42:55 +02:00
M!l!nd
79df9d84fa
Update Makefile
2024-04-17 14:42:55 +02:00
Dion Moult
a7e0cb0bc3
Minor fix to shape aspects because not everything has a mesh (e.g. text annotations)
2024-04-17 14:42:55 +02:00
Dion Moult
6f0dd25517
Fix #4377 . Add support for adding filled elements in AXIS3 layered elements.
2024-04-17 14:42:55 +02:00
Dion Moult
12bde3c56c
Fix #4383 . Demo library should use Model/Annotation/MODEL_VIEW for text annotations so that they can be used anywhere, not just on plans.
2024-04-17 14:42:55 +02:00
Dion Moult
73149a29c9
Fix #4384 . Accommodate null values when getting data from pset.
2024-04-17 14:42:55 +02:00
Dion Moult
01150873f5
Fix #4336 . Close #4337 . Remove rounding for more accurate fills.
2024-04-17 14:42:55 +02:00
Dion Moult
25b73fc35a
Minor fixes to IfcCSV documentation
2024-04-17 14:42:54 +02:00
Dion Moult
5e4afbc748
Separate project templates and libraries and provide dropdown to built-in libraries to aid discoverability.
2024-04-17 14:42:54 +02:00
Dion Moult
658fbd3f6a
Fix #4385 . Probably a mistake in the bool argument for removing datablocks.
2024-04-17 14:42:54 +02:00
Dion Moult
25ad410470
Tweak generated tree parameters and add manual trees to landscape library thanks to SavyGust27
2024-04-17 14:42:54 +02:00
jgunstone
d718afc754
🔧 update pip install command assuming that this branch will be merged back
2024-04-17 14:42:54 +02:00
jgunstone
b3441fd5ae
update license and version
2024-04-17 14:42:54 +02:00
jgunstone
94b5647e56
📝 add docs about so to install and develop this package standalone
2024-04-17 14:42:54 +02:00
jgunstone
cb3ff4b05a
✅ add simple tests to ensure the package is working as expected
2024-04-17 14:42:54 +02:00
jgunstone
2a21ccf0aa
🐛 add limit and offset kwargs to get_classes. TODO- I think this needs doing throughout...
2024-04-17 14:42:54 +02:00
jgunstone
8a409507c8
add version
2024-04-17 14:42:54 +02:00
jgunstone
30cedd16ee
🔧 add pyproject.toml and __init__.py
2024-04-17 14:42:54 +02:00
Dion Moult
d5aff85b35
Fix #889 . Write docs for how to do translations.
2024-04-17 14:42:54 +02:00
Andrej730
708c61e33a
Clipping planes with cappings
...
Added new experimental section that allows you to cut objects based on current clipping planes in the scene. The difference from other clipping plane methods - it actually (temporarily) edits meshes geometry and adds cappings at the cut. So, the clipped meshes can be seen both on render and cutted parts won't get in the way as they do with temporary section cutaways (shader based method)
Example - https://imgur.com/a/SOqovOM
2024-04-17 14:42:54 +02:00
Andrej730
a75f5ef66f
remove_data_block - option to skip some checks to speed it up
2024-04-17 14:42:54 +02:00
Dion Moult
b70b285c03
See #4380 . Remove support for EOL Python 3.6
2024-04-17 14:42:54 +02:00
Dion Moult
9de06fbd6e
Fix #4300 . You can now select spatial elements by their location too.
2024-04-17 14:42:54 +02:00
Dion Moult
0c5a173de7
Fix #4340 . Indicate user needs to setup IFC2X3 user/app when using API directly.
2024-04-17 14:42:54 +02:00
Dion Moult
14e49ac633
Fix #4333 . Ensure order of info is correct for valid IDSes.
2024-04-17 14:42:54 +02:00
Dion Moult
1d7de2063a
See #4380 . Standardise filepaths when linking in IFCs.
2024-04-17 14:42:54 +02:00
Dion Moult
e7cd66bb44
You can now specify a false origin when linking in a model
2024-04-17 14:42:54 +02:00
Dion Moult
525279d4b7
Add Python3.12 to installation docs
2024-04-17 14:42:54 +02:00
Dion Moult
dcc81eb6e9
See #4380 . Bump IOS.
2024-04-17 14:42:54 +02:00
Dion Moult
d51e75d8f0
New cable carrier and cable tool grouped into MEP tool submenu
2024-04-17 14:42:54 +02:00
Dion Moult
f6e0781c78
Add icon and convenience functions for walk and set orbit center in explore tool
2024-04-17 14:42:54 +02:00
Andrej730
2d937890f0
bump svgfill
2024-04-17 14:42:54 +02:00
ChristophMellueh
84edec0af9
add missing Props request
2024-04-17 14:42:54 +02:00
Dion Moult
02e9cb06b4
You can now flip clipping planes
2024-04-17 14:42:54 +02:00
Dion Moult
3ef4927e55
New clipping planes feature.
2024-04-17 14:42:54 +02:00
Dion Moult
d333df8b73
You can now query data about a linked object from a SQLite cache.
2024-04-17 14:42:54 +02:00
Dion Moult
00b356d48d
Fix #4279 . You can now link in IFCs directly with efficient chunking instead of having to first create blend files
2024-04-17 14:42:54 +02:00
Dion Moult
b5c509e893
See #4279 . Viewport object culling feature to increase FPS when navigating large models.
2024-04-17 14:42:54 +02:00
Dion Moult
c48e167758
New IfcPatch recipe to extract flattened properties and relationships to SQLite for simple queries
2024-04-17 14:42:54 +02:00
Dion Moult
1b48995d95
Fix #4335 . Fix compilation error.
2024-04-17 14:42:51 +02:00
patrick.joerg
dfa3988674
Small doc change to direct readers to advanced mode
2024-04-17 14:41:52 +02:00
Andrej730
1819b6812e
Fix issues with accessing invalid entities in bim.reassign_class #4371
...
bim.reassign_class wasn't considering that root.reassign_class will also reassign class for occurrences of the same type and was reaccessing invalid elements
2024-04-17 14:41:52 +02:00
Andrej730
69767a7045
type.py - some typing
2024-04-17 14:41:52 +02:00
Andrej730
a99fbbfdd8
reassign_class - cover with tests
2024-04-17 14:41:52 +02:00
Andrej730
1f532491ec
fix pass-valid-selected-enumeration.ifc after 5270045
...
.ifc was failing during test_validate.py
1) Changed schema to rc2 as rc3-4 doesn't have IfcBridgePart
2) PredefinedType and UsageType were mixed up
3) With just `.DECK.` it was failing with error below
```
With attribute:
<attribute PredefinedType: <select IfcFacilityPartTypeSelect: (<enumeration IfcBridgePartTypeEnum: (ABUTMENT, DECK, DECK_SEGMENT, FOUNDATION, NOTDEFINED, PIER, PIER_SEGMENT, PYLON, SUBSTRUCTURE, SUPERSTRUCTURE, SURFACESTRUCTURE, USERDEFINED)> | <enumeration IfcFacilityPartCommonTypeEnum: (ABOVEGROUND, BELOWGROUND, JUNCTION, LEVELCROSSING, NOTDEFINED, SEGMENT, SUBSTRUCTURE, SUPERSTRUCTURE, TERMINAL, USERDEFINED)> | <enumeration IfcMarinePartTypeEnum: (ABOVEWATERLINE, ANCHORAGE, APPROACHCHANNEL, BELOWWATERLINE, BERTHINGSTRUCTURE, CHAMBER, CILL_LEVEL, COPELEVEL, CORE, CREST, GATEHEAD, GUDINGSTRUCTURE, HIGHWATERLINE, LANDFIELD, LEEWARDSIDE, LOWWATERLINE, MANUFACTURING, NAVIGATIONALAREA, NOTDEFINED, PROTECTION, SHIPTRANSFER, STORAGE, USERDEFINED, VEHICLESERVICING, WATERFIELD, WEATHERSIDE)> | <enumeration IfcRailwayPartTypeEnum: (DILATATIONSUPERSTRUCTURE, LINESIDESTRUCTURE, LINESIDESTRUCTUREPART, NOTDEFINED, PLAINTRACKSUPESTRUCTURE, SUPERSTRUCTURE, TRACKSTRUCTURE, TRACKSTRUCTUREPART, TURNOUTSUPERSTRUCTURE, USERDEFINED)> | <enumeration IfcRoadPartTypeEnum: (BICYCLECROSSING, BUS_STOP, CARRIAGEWAY, CENTRALISLAND, CENTRALRESERVE, HARDSHOULDER, INTERSECTION, LAYBY, NOTDEFINED, PARKINGBAY, PASSINGBAY, PEDESTRIAN_CROSSING, RAILWAYCROSSING, REFUGEISLAND, ROADSEGMENT, ROADSIDE, ROADSIDEPART, ROADWAYPLATEAU, ROUNDABOUT, SHOULDER, SIDEWALK, SOFTSHOULDER, TOLLPLAZA, TRAFFICISLAND, TRAFFICLANE, USERDEFINED)>)>>
Value:
DECK
Not valid
```
2024-04-17 14:41:52 +02:00
Andrej730
a03f62c97e
fix error removing pset from material or profile
2024-04-17 14:41:52 +02:00
Andrej730
f381dce64d
fix tests after a971860
2024-04-17 14:41:52 +02:00
Andrej730
b1811b7604
fix errors in tests
...
they were failing because import_reference_attributes were failing to get docs for unset schema version since ifc file wasn't attached to Blender
2024-04-17 14:41:52 +02:00
Thomas Krijnen
ce5b1530e3
Add buffer (bytestring) accessors to material colors - plus small fixes
2024-04-17 14:41:49 +02:00
Thomas Krijnen
5e7156021b
Add buffer (bytestring) accessors to geometry data
2024-04-17 13:58:05 +02:00
Andrej730
a86ac68e0c
Fix #4365
...
Allowing to add new properties with None values if should_purge is not set to True (and it's False by default)
2024-04-17 13:41:18 +02:00
Thomas Krijnen
7f37ba2fad
convert closed wires to faces prior to processing in svg serializer #4283
2024-04-17 13:41:05 +02:00
Thomas Krijnen
a2cc9b1b4d
Disable building 3.6.x - due to from __future__ import annotations
2024-04-16 13:28:46 +02:00
Andrej730
7843d20fc8
black format
2024-04-16 13:28:46 +02:00
Andrej730
7e9aead518
show occurrence name function in prefs only for custom name style
2024-04-16 13:28:46 +02:00
Andrej730
0c3a038a44
Fix #4363
2024-04-16 13:28:46 +02:00
Dion Moult
444b284602
Update Makefile
2024-04-16 13:28:46 +02:00
Dion Moult
f33b1296e3
Create blender_manifest.toml
2024-04-16 13:28:46 +02:00
Bruno Perdigão
a4eeae2872
UI for linked aggregate ( #4271 )
...
* initial ui
* changed the group name
* groups counter in ui
* added operators for selection and breaking link in the ui
* small removal
* changed IFC operators to _execute
2024-04-16 13:28:46 +02:00
Bruno Perdigão
ed7b337a40
Linked aggregate preserve names ( #4135 )
...
* added simples linked aggregate test
* small fix in remove_old_connections function
* added test for refresh linked aggregate
* refresh linked aggregates now preserves the objects original name
* small fix in recreate_connections function
* tests for Refresh Linked Aggregate
* test for Refresh Linked Aggregate after copying an object
* small deletion
* added custom incremental naming
* small fix in tests
* small fix on the number for renaming
2024-04-16 13:28:46 +02:00
Ryan Schultz
0b4a64225b
Selects all the instances from selected instances that have different types
2024-04-16 13:28:46 +02:00
Massimo Fabbro
bba935940b
New button hide all spaces in spatial tool
2024-04-16 13:28:46 +02:00
Massimo Fabbro
f85b476bc8
Now generate space and generate spaces from walls are always visible in the UI so users understand better that are different procedures
2024-04-16 13:28:46 +02:00
Andrej730
4ac771a214
Fix #4342
2024-04-16 13:28:46 +02:00
Andrej730
284df2e484
update representation item style on editing/removing shape aspect
...
Example - https://imgur.com/a/2SxgSRH
2024-04-16 13:28:46 +02:00
Andrej730
dd27107be8
style.assign_representation_styles to replace previously assigned styles
...
as probably in the most cases user would want 1 style per 1 representation item
After this it's finally possible in BBIM to assign styles to representation items through the materials: https://imgur.com/a/cgiJ1KV
2024-04-16 13:28:46 +02:00
Andrej730
0d251260d8
MaterialCreator - minor refactor for code readibility
2024-04-16 13:28:46 +02:00
Andrej730
8a3934b32b
fix error in data.py occurring if object has no material
2024-04-16 13:28:46 +02:00
Andrej730
05aed7036e
show error message removing material that is used in material sets
...
previously it wasn't showing anything when you would try to remove a material
2024-04-16 13:28:46 +02:00
Andrej730
7966ffa2a4
BBIM - update related representations on assigning style to material
2024-04-16 13:28:46 +02:00
Andrej730
17da72232d
unassign_material_style to handle constituents
2024-04-16 13:28:46 +02:00
Andrej730
c7ca87f9c4
api.unassign_representation_styles
2024-04-16 13:28:46 +02:00
Andrej730
f22369b960
assigning material styles to reuse existing styled item + tests
2024-04-16 13:28:46 +02:00
Andrej730
46eae7a7d2
assign_representation_styles to reuse existing styled item + tests
2024-04-16 13:28:46 +02:00
Andrej730
cb51b8da49
style.assign_material_style small optimization
2024-04-16 13:28:46 +02:00
Andrej730
31e556c0b2
set previous active style and context values editing material's style
2024-04-16 13:28:45 +02:00
Andrej730
ad33794945
descriptive error for missing user or application in ifc2x3 #4340
2024-04-16 13:28:45 +02:00
Andrej730
ec107d2f7f
fixed bug migrating attributes to older ifc version (after 8728fa3)
2024-04-16 13:28:45 +02:00
Andrej730
356c81e80f
black format
2024-04-16 13:28:45 +02:00
Andrej730
0077036716
Fix issues editing work time in ifc4x3 #4295
2024-04-16 13:28:45 +02:00
Andrej730
89da2b3b7d
IFC4.3 test bootstrap
2024-04-16 13:28:45 +02:00
Andrej730
3dc7951a3e
Default Blender filepath hotkeys for .ifc filepath
...
Example - https://i.imgur.com/Mk6mkuP.png
E.g. alt-click now opens .ifc directory and shift-click opens .ifc with default software associated with .ifc files.
Should be cross-platform but tested only on Windows
Added this code to tool.Blender so it can be reused for other operators invoking file browsing window.
2024-04-16 13:28:45 +02:00
Andrej730
45a23d9371
style.assign_material_style to assign style to related shape aspects
2024-04-16 13:28:45 +02:00
Andrej730
c76a5a7ee7
promote get_shape_aspects to util.element method
2024-04-16 13:28:45 +02:00
Andrej730
c918497df2
get material constituents from cache and filter active element material
2024-04-16 13:28:45 +02:00
Andrej730
eebe7d596d
disable editing rep item style if it comes from material constituent through shape aspect
2024-04-16 13:28:45 +02:00
Thomas Krijnen
5c60c2e35b
CMakeLists.txt pre 2.37 compat
2024-04-16 13:28:42 +02:00
Ryan Schultz
09f54709e6
deleted extraneous variables
2024-04-16 13:27:40 +02:00
Ryan Schultz
9bfe417cfb
Select in any order, when assigning relating_product
2024-04-16 13:27:40 +02:00
Thomas Krijnen
e3867a118c
IfcConvert --keep-bounding-boxes option, default is now exluded. #4012 #2138 #2044 #4032
2024-04-16 13:27:16 +02:00
Andrej730
3a9c023d33
Fix issue editing object placement that shares it's axis placement with other placements
...
If multiple object placements were reusing the same IfcAxis2Placement then editing one of them would remove IfcAxis2Placement ignoring it's inverse references making all other object placements invalid.
2024-04-16 11:38:49 +02:00
Andrej730
16eba637f1
fix errors getting layer assignments in ifc2x3 #4330
2024-04-16 11:38:49 +02:00
Andrej730
8b360742a7
sort representation items in ui based on shape aspect
...
- display shape aspect along with the repsentation type
- sort representation items based on shape aspects name, items without shape aspects come last
2024-04-16 11:38:49 +02:00
Andrej730
ae47de8851
Fix #4319
...
StringProperty search keyword was introduced only in Blender 3.3
2024-04-16 11:38:49 +02:00
Gorgious56
27349290b7
Fix section cut planes not working anymore on Blender < 4.0.0
2024-04-16 11:38:49 +02:00
krande
288455416b
add missing typename
2024-04-16 11:38:46 +02:00
Gorgious56
73ae2b7055
#4308 : Fix section cutaway shader links incorrectly linking when removing a section
2024-04-16 11:38:20 +02:00
Gorgious56
fc2009d000
Fix #4308 : Section cutaway shader : Update API for 4.0 breaking changes + draw line decorator for more than one section cutaway
2024-04-16 11:38:20 +02:00
Andrej730
f522e2beb7
some typing
2024-04-16 11:38:20 +02:00
Andrej730
075b9e4775
Fix bug in ExtractElements recipe adding a lot unrelated products
...
if you'd add a type product and it had material that were used in bunch of ther products
example - https://community.osarch.org/discussion/1965/error-extracting-ifcslab-or-ifccolumn
2024-04-16 11:38:20 +02:00
Massimo Fabbro
2f75b7edf8
Minor fix
2024-04-16 11:38:20 +02:00
Andrej730
80dcbb2e46
fix bugs in c5c7363a9
2024-04-16 11:38:20 +02:00
Andrej730
1e4693346a
fix project name for IfcAdvancedHouse
2024-04-16 11:38:20 +02:00
Andrej730
c706ae0292
UI info message when patch execution was finished
2024-04-16 11:38:20 +02:00
Andrej730
f61738112e
ifctester Attribute.filter not to check subtypes attributes
...
if attribute is already found in the super type
2024-04-16 11:38:20 +02:00
Andrej730
e5b63853ef
Fix #4314
...
It was looking for IFC entities with the attribute from Attribute.name but wasn't considering ifc subclasses that inherit from that entity.
2024-04-16 11:38:20 +02:00
Andrej730
41996daaa7
ifctester - some typing
2024-04-16 11:38:20 +02:00
Andrej730
e5810dbc7c
CMake - disable optimization for RelWithDebInfo with ENABLE_BUILD_OPTIMIZATIONS=Off
2024-04-16 11:38:16 +02:00
Andrej730
dea29a3ec7
Fixed #4310
2024-04-16 11:35:32 +02:00
Andrej730
317dbc0ab8
Fix bug removing relating object of IfcRelNests
...
it was unlinking current collection of the related object and related objects were missing after
2024-04-16 11:35:31 +02:00
Andrej730
e289f23c40
root.remove_product - fix some cases producing invalid ifc #4313
...
always remove IfcRelNests
1) if product is RelatingObject
2) if product is the only RelatedObject
2024-04-16 11:35:31 +02:00
Ryan Schultz
53cc393697
proposed fix for #4311
2024-04-16 11:35:31 +02:00
Massimo Fabbro
6c9383d968
See #4007 . Now clone opening works also when a opening hosts a window or a door
2024-04-16 11:35:31 +02:00
Massimo Fabbro
2a52f0fadd
Clone opening now deletes also old opening placement
2024-04-16 11:35:31 +02:00
Massimo Fabbro
65a5c2c1f5
Small refactor clone opening operator in order to better understand and reuse it rebase
2024-04-16 11:35:31 +02:00
Gorgious56
1f10b2415e
Assigning an ifc class to an object now displays a message if the object is not in OBJECT mode
2024-04-16 11:35:31 +02:00
Andrej730
e2ef636209
add fallback to the previous schema versions for docs and mappings
...
before it was breaking part of BlenderBIM UI if we would open IFC4X1 file
2024-04-16 11:35:31 +02:00
Andrej730
7c81633113
bump py version in run-cmake.bat after c0d84713b
2024-04-16 11:35:31 +02:00
Andrej730
8c707f3b48
Fix issue building IfcOpenHouse for IFC4
2024-04-16 11:35:31 +02:00
Andrej730
9560e0b3b2
Fix bug in IfcHierarchyHelper.addRelatedObject
...
Noticed that `file.addRelatedObject<IfcSchema::IfcRelDefinesByType>(door_style, door);` was resulting in list with `door` assigned as RelatingObject and `door_style` assigned as RelatedObjects.
2024-04-16 11:35:26 +02:00
Andrej730
4418c1327d
MergeDuplicateTypes - fix error occuring if ifcopenshell.api is not imported
...
error was:
File "\site-packages\ifcpatch\__init__.py", line 78, in execute
patcher.patch()
File "\site-packages\ifcpatch\recipes\MergeDuplicateTypes.py", line 73, in patch
self.assign_type(element, original_type)
File "\site-packages\ifcpatch\recipes\MergeDuplicateTypes.py", line 114, in assign_type
ifcopenshell.api.run("owner.update_owner_history", self.file, **{"element": types[0]})
^^^^^^^^^^^^^^^^
AttributeError: module 'ifcopenshell' has no attribute 'api'
2024-04-16 11:33:55 +02:00
Andrej730
3dd94889fa
ifcopenshell installation notion about compiling only specific schemas
2024-04-16 11:33:53 +02:00
Andrej730
070f869932
fix cmake warning with CMP0144 policy
...
The warning was:
```
CMake Warning (dev) at CMakeLists.txt:299 (find_package):
Policy CMP0144 is not set: find_package uses upper-case <PACKAGENAME>_ROOT
variables. Run "cmake --help-policy CMP0144" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
CMake variable BOOST_ROOT is set to:
\IfcOpenShell\_deps\boost_1_74_0
For compatibility, find_package is ignoring the variable, but code in a
.cmake module might still use it.
```
2024-04-16 11:32:42 +02:00
Andrej730
c4bf4d7d92
bump required cmake version to remove deprecation warning
...
deprecation warning:
CMake Deprecation Warning at CMakeLists.txt:20 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
2024-04-16 11:32:04 +02:00
Andrej730
d82fbcd66c
bump python version in windows build dependencies
...
they seem to switch to .exe from .msi starting from 3.5+, changed amd prefix. Also fixed version parsing line for two digits minor versions
2024-04-16 11:30:23 +02:00
Andrej730
b503463a02
ifcpatch.execute - make input attribute optional
...
e.g. MergeDuplicateTypes doesn't use it in the code either way
2024-04-16 11:29:01 +02:00
dependabot[bot]
39eed06e90
Bump fastapi from 0.101.0 to 0.109.1 in /src/opencdeserver/api/app
...
Bumps [fastapi](https://github.com/tiangolo/fastapi ) from 0.101.0 to 0.109.1.
- [Release notes](https://github.com/tiangolo/fastapi/releases )
- [Commits](https://github.com/tiangolo/fastapi/compare/0.101.0...0.109.1 )
---
updated-dependencies:
- dependency-name: fastapi
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-16 11:29:01 +02:00
marwiss
b11ca61462
Correct protocol to encrypted HTTPS
2024-04-16 11:29:00 +02:00
marwiss
7ee66de043
Replace existing code in src/opencdeserver with code from the "Kontroll OpenCDE API:s server" POC project on https://github.com/marwiss/Kontroll
2024-04-16 11:29:00 +02:00
Andrej730
10ef4293f3
fixed bug removing representation item
...
if you'd click on "remove item" button for some item it wouldn't remove the corresponding item but would go for removing active item instead
2024-04-16 11:29:00 +02:00
Andrej730
ad76c3ae82
some refactor for bbim drawings svg serialization
...
Made some changes to svg serialization code by moving chunks of code so `.generate_linework()` will be easier to read
- moved gathering linework contexts to a separate method
- moved common code for elements serialization to a function
- replaced self.yield_from_iterator(it) with it.__iter__
Functionally code is exactly the same.
2024-04-16 11:28:59 +02:00
Andrej730
7fc8119956
add a note on get_info_2() #4270
2024-04-16 11:28:59 +02:00
Andrej730
182e428452
Fixed #4259
...
Result of DeepDiff contain ordered sets. Also added fallback for usual sets to lists just in case, should be safe.
2024-04-16 11:28:59 +02:00
Andrej730
7d31791034
Fixed error adding a boolean
...
It occured if active object was IFC object and second selected object was just Blender object.
2024-04-16 11:28:59 +02:00
Andrej730
6d07a157a9
black format
2024-04-16 11:28:59 +02:00
Andrej730
cdf866dc81
Fix test Model.get_manual_booleans after we added pset to store them
2024-04-16 11:28:59 +02:00
Andrej730
5d020f36d3
Fix #4267 and add tests
...
Crash was caused by unmark_manual_booleans accessing boolean element after they were deleted from IFC
2024-04-16 11:28:59 +02:00
Andrej730
af593b6663
Update ui.py
2024-04-16 11:28:59 +02:00
Andrej730
1e96df4311
display active representation presentation layer in UI
...
example - https://i.imgur.com/mpnoqPH.png
2024-04-16 11:28:59 +02:00
Andrej730
e8055ec396
remove_representation to consider representation item's layers too
...
and purge layers if they are out of items as they become invalid
2024-04-16 11:28:59 +02:00
Andrej730
a4d6b2cab3
Small presentation layers UI fixes
2024-04-16 11:28:59 +02:00
Andrej730
8091b25fcd
access layer assignments from inverse attribute instead of going through representation inverses
2024-04-16 11:28:59 +02:00
Andrej730
fd48196bcb
test for removing representation items
2024-04-16 11:28:59 +02:00
Andrej730
de63a8086b
UI to remove representation items
...
example - https://i.imgur.com/jJDpIQP.png
2024-04-16 11:28:59 +02:00
Andrej730
5de1dc115c
tests for creating shape aspects and adding items
2024-04-16 11:28:59 +02:00
Andrej730
caa1181c02
create new shape aspects from UI
...
example - https://i.imgur.com/BJJZWrC.png
2024-04-16 11:28:59 +02:00
Andrej730
fcbbeffc01
edit shape aspect attributes from UI
...
example - https://i.imgur.com/SzUEn6r.png
2024-04-16 11:28:59 +02:00
Andrej730
fb9f830cf0
Fix #4262 after 0da3270c7
2024-04-16 11:28:59 +02:00
Andrej730
ab704aeb01
UI for changing representation item's shape aspect
...
Example - https://imgur.com/a/tN7hCYz
2024-04-16 11:28:59 +02:00
Andrej730
90a77d3453
geometry.remove_representation documentation
2024-04-16 11:28:59 +02:00
Andrej730
70472787bf
operator to remove representation item from shape aspect
2024-04-16 11:28:59 +02:00
Andrej730
bd5c650774
Simple UI to display repr item shape aspect
...
Example - https://i.imgur.com/YEAE9zU.png
2024-04-16 11:28:59 +02:00
Andrej730
7cb08a93a8
BBIM to print console errors in case IFC file is failed to load
2024-04-16 11:28:59 +02:00
Andrej730
947ae02ab9
black format
2024-04-16 11:28:59 +02:00
Bruno Postle
1136ef374c
IfcGit avoid leaving stray .git/config.lock files
2024-04-16 11:28:59 +02:00
Andrej730
5b0528cdbc
shape builder docs
2024-04-16 11:28:59 +02:00
Andrej730
6d8de6425f
shape builder polyline example and tests
2024-04-16 11:28:59 +02:00
Andrej730
8bbb4cb43b
UI for changing styles for representation items
...
Example - https://imgur.com/a/SQh6rR2
2024-04-16 11:28:59 +02:00
Andrej730
c3ddfbdae2
fix couple building docs errors / warnings
2024-04-16 11:28:59 +02:00
Andrej730
d344923a3c
shape builder docs fixes
2024-04-16 11:28:59 +02:00
Andrej730
a28e24d2f5
IFC4 Landscape Library
...
Created IFC library with simple trees, shrubs and hedges - with both 2d and 3d representations. Example - https://i.imgur.com/pOjh1si.png
Now it's available along with the furniture library when creating new project - https://i.imgur.com/Ho0B5Gn.png
2024-04-16 11:28:59 +02:00
Dion Moult
017b020545
See #4247 . Loading models now skips excessively voided objects for performance.
2024-04-16 11:28:59 +02:00
Ryan Schultz
3a14b51fd3
Give user additional feedback when trying to duplicate an IFCproject and Drawing. Also deselects the object to prevent inadvertently moving it.
2024-04-16 11:28:59 +02:00
Dion Moult
a47a9ce0ce
Fix bug where merging by type when loading broke if a type didn't have a name
2024-04-16 11:28:59 +02:00
Dion Moult
187160347a
Fix bug where loading filtered IFC2X3 models didn't work.
2024-04-16 11:28:58 +02:00
Dion Moult
937fd00dba
Fix #2719 . Indicator whether or not IFC is dirty to help users know when to save.
2024-04-16 11:28:58 +02:00
Dion Moult
1ee2913dd1
See #4241 . Only use shapely to repolygonise if IfcOpenShell returns unclosed paths. Hollow cuts typically are closed paths.
2024-04-16 11:28:58 +02:00
Dion Moult
5030023b1b
Fix #4239 . Stop users from duplicating IfcProject.
2024-04-16 11:28:58 +02:00
Dion Moult
b5261e029e
Fix regression where you couldn't unlink an object that already had a broken element link, and bug where you couldn't unlink a spatial element or similar with its own collection.
2024-04-16 11:28:58 +02:00
Dion Moult
29b84078ac
See #4239 . Ensure that all copy pasted objects are unlinked. Use duplicate if you want to copy.
2024-04-16 11:28:58 +02:00
Dion Moult
2308538735
See 0028fd3. Fix regression when duplicating objects without connections.
2024-04-16 11:28:58 +02:00
Andrej730
8ba68d0f0b
static ifcopenshell.geom.serializers and some typing for IDE code hints
...
code itself should work exactly the same way
2024-04-16 11:28:58 +02:00
Thomas Krijnen
ce927cfe30
#4216 todo note
2024-04-16 11:28:58 +02:00
Dion Moult
7b7dece5e7
See #4240 . Guard against possible user creating invalid userdefined attribute values.
2024-04-16 11:28:58 +02:00
Dion Moult
0d3901336b
See #4240 . Fix validation issue with perspective drawing pyramid booleans. Boolean clipping results can only be used on swept solids.
2024-04-16 11:28:58 +02:00
Dion Moult
34c6be0f02
See #4240 . Fix bug where 2D arbitrary profiles were invalid IFC (used 3D point lists not 2D)
2024-04-16 11:28:58 +02:00
Dirk Olbrich
7806dc1d6a
docs: include doxygen-awesome as git submodule
2024-04-16 11:28:55 +02:00
Dirk Olbrich
9f0a781d05
docs: add README with instructions
2024-04-16 11:27:33 +02:00
Dirk Olbrich
15d58e32d1
docs: modify doxygen config to new folder
2024-04-16 11:27:33 +02:00
Dirk Olbrich
03e5d767bd
git: clean up gitignore
2024-04-16 11:27:33 +02:00
Dirk Olbrich
05b3a55e08
docs: move C++ API docs to subfolder
2024-04-16 11:27:33 +02:00
Dirk Olbrich
b298f24275
docs: include doxygen-awesome theme
2024-04-16 11:27:31 +02:00
Dirk Olbrich
97a261ba54
docs: remove duplicate cmake for Sphinx setup
2024-04-16 11:26:47 +02:00
Dirk Olbrich
fcfaa5238e
docs: remove geom setting docs and images
...
- these are duplicated in /src/ifcopenshell-python/docs/ifcopenshell/
2024-04-16 11:26:47 +02:00
Dirk Olbrich
d7d1198a1a
docs: update doxygen file to 1.9.8
2024-04-16 11:26:47 +02:00
Dirk Olbrich
576bd6742e
docs: set LOOKUP_CACHE_SIZE
2024-04-16 11:26:47 +02:00
Dirk Olbrich
3db3e93d87
docs: update Doxyfile to v1.9.4
...
- specify ./output/doxygen as main path for output
- use relative paths for subfolder output
2024-04-16 11:26:47 +02:00
Dion Moult
02c9aee70b
Fix #3947 . Do slight 2mm offset to account for Z-fighting on 2D plan views and RCPs.
2024-04-16 11:26:47 +02:00
Dion Moult
d1f90db707
Fix #4213 . Allow having separate windows to trigger drawing operators.
2024-04-16 11:26:47 +02:00
Dion Moult
3d19d4d319
See #4216 . Document using OpenCASCADE geometry serialisation to create geometry.
2024-04-16 11:26:47 +02:00
Dion Moult
1574d8cfba
Fix #4221 . Only load leaf rows with cost values. Createing a monetary measure with None results in a segfault on Windows.
2024-04-16 11:26:47 +02:00
Dion Moult
b67f753596
Fix #4236 . Consolidate revert, reload IFC, and reload selected IFC operations.
...
Reload IFC incrementally (via diff) is moved to the debug panel since it is a dangerous advanced user command.
2024-04-16 11:26:47 +02:00
Dion Moult
4ee0930e05
Fix #4109 . Write docs about geometry serialiser.
2024-04-16 11:26:47 +02:00
Dion Moult
6f1cb16107
Fix #4231 . Bug where you couldn't add a door to an element assembly.
2024-04-16 11:26:47 +02:00
Andrej730
2268e60036
bbim_translations.py - remove operator context from operator tooltips
...
noticed editing translations from ui that operator tooltip doesn't appear in ui if tooltips has `msgctxt "Operator"`
2024-04-16 11:26:47 +02:00
Dion Moult
8c692dfbb6
Fix #4127 . Bug where IfcTester couldn't save ODS report.
2024-04-16 11:26:47 +02:00
Andrej730
487d07badd
fix build error
2024-04-16 11:26:47 +02:00
Andrej730
a936d56bf8
drop bpy related translations.py<->.po stuff as we won't be using it
2024-04-16 11:26:47 +02:00
Andrej730
d1e2009d78
run bbim_translations.py without bpy
2024-04-16 11:26:47 +02:00
Andrej730
b824ab4c4f
save just a final dictionary to translations.py instead of tuples
...
We can do that since In our workflow we won't be converting translations.py to .po files, that way it will be much shorter as it's containing only translated strings and doesn't have strings sources.
2024-04-16 11:26:47 +02:00
Andrej730
3545a5ad4a
generate translations.py without bpy
2024-04-16 11:26:46 +02:00
Andrej730
37b8a9bc89
gettext bug fix
2024-04-16 11:26:46 +02:00
Andrej730
6bea964db0
update blenderbim build to include translation data
2024-04-16 11:26:46 +02:00
Andrej730
2f04cb7b6f
expose current blender locale in bbim translations ui
2024-04-16 11:26:46 +02:00
Andrej730
acc3a56adb
bbim messages parser to also parse gettext
2024-04-16 11:26:46 +02:00
Andrej730
d5249cf45d
keep order of strings in .pot as they were parsed and store source filepaths
2024-04-16 11:26:46 +02:00
Andrej730
56f383992a
switch to our own string parser instead of blender's
2024-04-16 11:26:46 +02:00
Andrej730
228b7395c8
rename BlenderBIM translation script/addon
2024-04-16 11:26:46 +02:00
Andrej730
30d5141408
allow missing translations.py as not everyone will need translations for BBIM
2024-04-16 11:26:46 +02:00
Andrej730
1b69de2fd4
auto enable "Manage UI Translations" addon if it's not enabled
2024-04-16 11:26:46 +02:00
Andrej730
a3d029f9d9
add without-blender-way to generate translations module from po files
...
though it does require `bpy` module which is available only for python 3.10.
Actually, `bpy` module by itself is not necessary - we just need `bl_i18n_utils` that becomes available after `import `bpy`. So alternatively we can just download that module from Blender https://projects.blender.org/blender/blender/src/branch/main/scripts/modules/bl_i18n_utils
2024-04-16 11:26:46 +02:00
Andrej730
e1147c1cb8
black format
2024-04-16 11:26:46 +02:00
Andrej730
364c6efc68
check if translation ui is loaded by current Blender session instead of current Blender file
...
as it's more reliable and thing could change after Blender restart
2024-04-16 11:26:46 +02:00
Andrej730
793eebbdbb
expose i18n path in translator UI
...
removed bim.open_po_directory operator as it's now available just from alt-clicking on the path browsing button
2024-04-16 11:26:46 +02:00
Andrej730
37d6b24e84
Update bbim_setup_translations.py
2024-04-16 11:26:46 +02:00
Andrej730
e76ef4bb73
fix issues with empty paths accepted as valid paths
2024-04-16 11:26:46 +02:00
Andrej730
1435207ab6
separate developer/translator ui
2024-04-16 11:26:46 +02:00
Andrej730
41b9000401
generate pot file too converting translations.py
2024-04-16 11:26:46 +02:00
Andrej730
94b1a1ba4e
change test addon name from localization_test
2024-04-16 11:26:46 +02:00
Andrej730
b34882e6d1
semi-automatic setup for necessary directories
2024-04-16 11:26:46 +02:00
Andrej730
4a0625e730
register translations dict only if addon is already loaded
2024-04-16 11:26:46 +02:00
Andrej730
3973a6ab4d
open .po directory operator
2024-04-16 11:26:46 +02:00
Andrej730
b9ecc394cf
Operator to disable BBIM and restart Blender
...
as it's needed to reload the translations
Update bbim_setup_translations.py
Update bbim_setup_translations.py
2024-04-16 11:26:46 +02:00
Andrej730
b3990e7267
convert setup_translations to blender addon for UI
2024-04-16 11:26:46 +02:00
Andrej730
f8ca92279d
monkey patch blender's dump_addon_messages
...
The way blender gather messages to translate is:
1) disable the addon
2) parse all available strings
3) enable the addon
4) parse all strings available strings again and subtract the ones gathered at step 2.
But due Blender bug (https://projects.blender.org/blender/blender/issues/116579 ) not all addon parts unregistered at step 1, so some addon's strings left out and gathered at step 2 and then subtracted at step 4. At the end, we loose them and they will be missing from resulting translations files.
I've monkey patched dump_addon_messages so it now works a bit more safe:
0) It expects addon to be disabled and Blender restarted after
1) Gather all Blender strings
2) Enable addon
3) Gather all Blender strings again and subtract strings from step 1.
2024-04-16 11:26:46 +02:00
Andrej730
e9078453eb
setup_translations - original dump_addon_messages
...
same as with dump_py_messages - this commit is needed to track monkey patch changes later on
2024-04-16 11:26:46 +02:00
Andrej730
df41f541de
fix error converting translations to .po if .po files already exist
2024-04-16 11:26:46 +02:00
Andrej730
a2ea7bf1d8
monkey patch dump_py_messages to ignore blenderbim dependencies
2024-04-16 11:26:46 +02:00
Andrej730
a4be606a37
setup_translations - original dump_py_messages
...
as we're going to monkey patch it and this commit is needed to keep the history of changes
2024-04-16 11:26:46 +02:00
Andrej730
4342a03246
update translations in current blender session
2024-04-16 11:26:46 +02:00
Andrej730
b0c0839d3e
setup_translations.py - use just 1 directory to store .po files
...
and use temp directory to store .po files for ui_translate.export/import
2024-04-16 11:26:46 +02:00
Andrej730
fd01d71d2c
fixed typo
2024-04-16 11:26:46 +02:00
Andrej730
3046f2f207
BBIM - register translation strings #889
2024-04-16 11:26:46 +02:00
Andrej730
0371c2c74e
BBIM script to reload/export/import translation strings #889
2024-04-16 11:26:46 +02:00
Ioannis P. Christovasilis
bb05e51a92
ifc2ca major update - todo: update readme file
2024-04-16 11:26:46 +02:00
Vukas Pajic
9a117ce502
Fix #4226
2024-04-16 11:26:46 +02:00
Eduardo Schilling
144f028c84
Roof slope as percentage property
2024-04-16 11:26:46 +02:00
Dion Moult
881f38e163
Fix #4227 . Add shapely as an optional dependency for IOS-Python
2024-04-16 11:26:45 +02:00
Thomas Krijnen
658095ea29
#4222 template kw
2024-04-16 11:26:45 +02:00
Thomas Krijnen
1764741027
#4220 weakref to file
2024-04-16 11:26:37 +02:00
Thomas Krijnen
eb35b88a1e
#4220 Update file.py
2024-04-16 11:26:37 +02:00
Dion Moult
f2fab06438
Fix #4089 . Document support for Linux AArch64 on Conda.
2024-04-16 11:26:37 +02:00
Dion Moult
1fbc770775
Fix #4211 . Minor documentation fix that clarifies upstream bug about whether qto can be assigned to types.
2024-04-16 11:26:37 +02:00
Dion Moult
d6074fa6d6
Fix #4223 . Basic lint error.
2024-04-16 11:26:36 +02:00
Dion Moult
aafda4e787
Fix #4224 . Fix sequencing lint bugs.
2024-04-16 11:26:36 +02:00
Dion Moult
36f2448234
Fix #4219 . Update documentation for creating a new model.
2024-04-16 11:26:36 +02:00
Bruno Postle
616d23d804
IfcGit fixes suggested by ruff
2024-04-16 11:26:36 +02:00
Andrej730
44c9aee727
BBIM - upgrade to IFC4X3 on loading projects
...
Added "Upgrate to IFC4X3" button on loading new projects to migrate them to IFC4x3 as Ifc4x3 got approved now will be used more widely.
https://i.imgur.com/mHSIV7T.png
2024-04-16 11:26:36 +02:00
Andrej730
e841d6ee3a
Migrator - basic support for migrating attributes ifc4 -> ifc4x3
...
And added one of the IfcProperty renamed attribute as an example
2024-04-16 11:26:36 +02:00
Dion Moult
8be42ced69
Fix #4139 . Bulk purge orphaned classes and move advanced operators to debug panel.
2024-04-16 11:26:36 +02:00
Andrej730
f8d38b11e6
Migrator - display some error message for unhandled schemas
...
Noticed it was resulting in error below migrating to IFC4X3 in some cases as we don't have a mapping for IFC4X3 yet.
```
if value is None and not attribute.optional():
UnboundLocalError: local variable 'value' referenced before assignment
```
2024-04-16 11:26:36 +02:00
Andrej730
30b51b93af
black format
2024-04-16 11:26:36 +02:00
Thomas Krijnen
2aa048d0c9
#4220 Update entity_instance.py
2024-04-16 11:26:36 +02:00
Andrej730
dab051dd85
minor fix for bim.create_all_shapes printed messages
2024-04-16 11:26:36 +02:00
Dion Moult
07241649e4
Fix #4173 . Don't recreate boundaries of building elements that already exist.
...
Inline opening processing. Minor improvement to detecting attributes for int/ext and physical/virtual.
2024-04-16 11:26:36 +02:00
Dirk Olbrich
54df646398
readme: fix listed ifc version, add link to IFC4x3 docs
2024-04-16 11:26:36 +02:00
Dion Moult
a3c87f1b0e
Fix #4195 . Forgot to add UI for contains selector.
2024-04-16 11:26:36 +02:00
Dion Moult
b0a4e8c8e4
See #4173 . Prototype new approach to generating 1st level space boundaries.
2024-04-16 11:26:36 +02:00
mohamadalbaaj
6f7be74e7c
Fixing Dimension Mismatch in Matrix Multiplication
2024-04-16 11:26:36 +02:00
Dion Moult
65c00f75dd
Minor test fix
2024-04-16 11:26:36 +02:00
Dion Moult
c8456532ad
Fix bug where UI didn't show applicable psets to specific predefined types
2024-04-16 11:26:36 +02:00
Dion Moult
608147c245
Fix #4195 . Fix regressions from f840da3 and add support for "contains string" comparisons.
2024-04-16 11:26:36 +02:00
Dion Moult
a9857f867c
Fix #4196 . Settings are now saved when you save Spreadsheet export JSON files. Also a new setting to generate an SVG alongside the spreadsheet (intended to be used as a schedule placed on a sheet).
2024-04-16 11:26:36 +02:00
Dion Moult
c60ad6b8a0
Minor fix
2024-04-16 11:26:36 +02:00
Dion Moult
54bf41816b
Fix #4197 . URLs in SVG schedules are now clickable.
2024-04-16 11:26:36 +02:00
Dion Moult
6846021768
Fix #4199 . Bug where external references on sheets weren't properly referenced leading to no names.
2024-04-16 11:26:36 +02:00
Dion Moult
33051c0139
Fix #4203 . Fix bug where removing nested cost items left orphaned relationships.
2024-04-16 11:26:36 +02:00
Dion Moult
d530d34441
Fix #4204 . Add support for XLSX schedules on sheets.
2024-04-16 11:26:36 +02:00
Christoph Mellueh
062822502f
sort code alphabetically
2024-04-16 11:26:36 +02:00
Christoph Mellueh
04afbce3a8
improve core file for better zen
2024-04-16 11:26:36 +02:00
Christoph Mellueh
0005f15364
update BsDD to match new API
...
+ move Functions from operator to core/tool
2024-04-16 11:26:36 +02:00
Dion Moult
a91c76b25c
Fix #4198 . Minor regression in updating text literals.
2024-04-16 11:26:36 +02:00
c4rlosdias
43259c0124
Added more comparisons in search
2024-04-16 11:26:36 +02:00
sennhvi
fd657f2b6f
Update geometry_processing.rst
...
Add an usage example of the parameter include for the Geometry Iterator
2024-04-16 11:26:36 +02:00
Christoph Mellueh
2dfd1cae6d
add pset view to groups
2024-04-16 11:26:35 +02:00
Sigma Dimensions (Yass)
e81bd9723f
fix counting elements when importing cost schedules ( and run black)
2024-04-16 11:26:35 +02:00
Dion Moult
7e262c5c9a
Fix #4186 . Support different RL insertion modes when adding occurrences of a type.
2024-04-16 11:26:35 +02:00
Dion Moult
f55b7d439f
Fix bug where updating type text literals didn't propagate and formatting rounding null values wasn't handled.
2024-04-16 11:26:35 +02:00
Dion Moult
35eda76ffd
Fix #4189 . Hidden or non-isolated objects now don't show annotations.
2024-04-16 11:26:35 +02:00
Christoph Mellueh
9ea086bdc3
add typing to BsDD
2024-04-16 11:26:35 +02:00
Christoph Mellueh
4c382760d4
add deprecation warnings
2024-04-16 11:26:35 +02:00
Christoph Mellueh
7f1a997797
update new api to BsDD
2024-04-16 11:26:35 +02:00
Dion Moult
8ce2b4d2d7
Fix #4162 . Reduce minimum area requirement for auto space generation down to 0.1sqm.
2024-04-16 11:25:27 +02:00
Dion Moult
20e599ca05
See #4162 . Fix bug with generating space from cursor due to numerical inaccuracies and colinear lines for shapely.
2024-04-16 11:25:27 +02:00
Dion Moult
009d1a0aba
Add support for groups in selection queries
2024-04-16 11:25:27 +02:00
Dion Moult
1c573aee32
Fix #4175 . Add new UI for managing IFC object and edit modes.
2024-04-16 11:25:27 +02:00
Andrej730
0a09c2d8ea
Fix breaking spatial containers UI when spatial container is deleted
...
E.g. if you had some container selected in `active_container_id` and then it got deleted UI would break and won't allow to reload the spatial manger until you reload .ifc completely
2024-04-16 11:25:27 +02:00
Christoph Mellueh
9a194939cd
turn list into tuple
2024-04-16 11:25:27 +02:00
Dion Moult
c508c94719
Fix #4161 . Deprecate unmaintained barebones LCA module.
2024-04-16 11:25:27 +02:00
Eduardo Schilling
bcce268900
Add degrees format display
2024-04-16 11:25:27 +02:00
Eduardo Schilling
997803c4b2
Add stair calculated parameter Pitch
2024-04-16 11:25:27 +02:00
Dion Moult
583f3e30d7
Fix #4167 . Bug where pset template module didn't allow creating qto template types.
2024-04-16 11:25:27 +02:00
Dion Moult
1591ad28bc
Minor fix to loading nested ports
2024-04-16 11:25:27 +02:00
Dion Moult
f7aafb6cac
Fix #4176 . Bug where tabbed interface didn't work on new or temporary screens.
2024-04-16 11:25:27 +02:00
Dion Moult
19f03639ee
Fix #4178 . Bug when removing the wrong classification reference.
2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass)
63e3786354
add conversion based unit symbols
2024-04-16 11:25:27 +02:00
Thomas Krijnen
a5f3f8c465
IfcParseExamples requires C++17 now
2024-04-16 11:25:27 +02:00
Thomas Krijnen
aca4b4f957
Generalize shortened file.schema attribute
2024-04-16 11:25:27 +02:00
CyrilWaechter
97072972f8
IfcRelSpaceBoundary: Add error handling and better error message for user
2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass)
a2eef4995c
fix resource cost calculation
2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass)
e58495161b
Record formula and resource name for cost values when calculating resource cost
2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass)
bf2027ff96
fix cost value calculation when using parent cost
2024-04-16 11:25:27 +02:00
Sigma Dimensions (Yass)
80b7267e5e
Display cost value names, and add import operator for cost schedule panel
2024-04-16 11:25:27 +02:00
CyrilWaechter
54fdfe2905
IfcRelSpaceBoundary: Create almost all boundaries for a selected space
...
* Refactor boundary creation to allow usage in a loop.
* Loop through all building element in building storey instead of stopping to the first one
* Enforce checking to prevent creation of invalid boundary geometries
2024-04-16 11:25:27 +02:00
CyrilWaechter
1c282e6828
Fix some url and add missing ones
2024-04-16 11:25:27 +02:00
CyrilWaechter
b53b7f2f0c
Bump IOS and use more update friendly url
2024-04-16 11:25:27 +02:00
CyrilWaechter
331d7e87bb
Add python 3.11 to blenderbim build matrix
2024-04-16 11:25:27 +02:00
CyrilWaechter
ee79bae426
black boundary operator.py
2024-04-16 11:25:27 +02:00
CyrilWaechter
6dd7c8103a
IfcRelSpaceBoundary: make sure parent boundary is whole
2024-04-16 11:25:26 +02:00
CyrilWaechter
e2a01fcb52
IfcRelSpaceBoundary: Improve inner boundary generation workflow and boundary names
...
# Inner boundaries
Some software or workflow generates many opening for the same element (eg. window) so it is not relevant to create inner boundaries for opening with no filling.
# Boundary name
Apply convention for 1st and 2nd Level boundaries
2024-04-16 11:25:26 +02:00
Kristoffer Andersen
d169991e13
Update meta.yaml
...
pin swig version for conda
2024-04-16 11:25:26 +02:00
Thomas Krijnen
2948d08c1d
C++ get_psets() with extensive preprocessor trickery
2024-04-16 11:25:24 +02:00
Thomas Krijnen
ebd995d98d
Update src/ifcopenshell-python/docs/ifcopenshell-python/geometry_processing.rst
2024-04-16 11:17:58 +02:00
wangsenhui
c6f7417ce8
add geometry processing with multiple representations example
2024-04-16 11:17:58 +02:00
wangsenhui
6084354932
add geometry processing with multiple representations example
2024-04-16 11:17:58 +02:00
wangsenhui
73f81b18fd
add geometry processing with multiple representations example
2024-04-16 11:17:58 +02:00
Thomas Krijnen
2db6e0193f
p21 binary should be uppercase
2024-04-16 11:17:56 +02:00
Andrej730
6baf3da67a
ifctester - added some typing for IDE type hints
2024-04-16 11:17:07 +02:00
Andrej730
3008599eec
Clean up IfcIndexedColourMap removing representation #4138
...
Because we wasn't removing colour map, remove_representation was producing orphaned IfcPolygonalFaceSet that were referred by colour map.
2024-04-16 11:17:07 +02:00
Ryan Schultz
7df5ef6cd6
Applying multiple opening objects in bulk
...
Merry Christmas.
2024-04-16 11:17:07 +02:00
Andrej730
0980075c88
ifcpixeltexture tests to reflect actual order of data
2024-04-16 11:17:07 +02:00
Andrej730
5cae82cded
Fixed issue with flipped ifcblobtexture loaded to blender
2024-04-16 11:17:07 +02:00
Andrej730
f409883536
save ifcblobtexture and ifcpixeltexture to .blend file
2024-04-16 11:17:07 +02:00
Andrej730
796dddaa7a
Fixed issue changing type of object creating opening in an aggregate
...
More: https://community.osarch.org/discussion/1888/error-after-trying-to-change-a-window-type-whose-opening-is-applied-to-an-aggregate#latest
A bit related to #3973 in case if it will be resolved
2024-04-16 11:17:07 +02:00
Andrej730
7f4c3d629b
Note on not allowing aggregates with representation #3973
2024-04-16 11:17:07 +02:00
Andrej730
a1e5aeb00a
expose assign/unassign aggregation hotkey to bim tool ui
2024-04-16 11:17:07 +02:00
Andrej730
8a1149f0de
Fix a few uses of assigning/unassigning agregation after 165262933
2024-04-16 11:17:07 +02:00
dushyant basson
21f741667e
Using transformation-matrix data; Turned off world-coords; Re-using geometry of repeating IDs
2024-04-16 11:17:07 +02:00
dushyant basson
904c0c6b06
initial camera-orientation; multiple materials in a single element; default material used from IfcGeom; improved triangle node data generation for OSG
2024-04-16 11:17:07 +02:00
dushyant basson
d91fa87dd8
update
2024-04-16 11:17:07 +02:00
dushyant basson
e513e63d9a
IFC file successfully parsed and loaded in Qt OpenGL widget
2024-04-16 11:17:07 +02:00
dushyant basson
3bb8bd5000
added header-guard
2024-04-16 11:17:07 +02:00
dushyant basson
6e7a43409e
debug messages
2024-04-16 11:17:07 +02:00
dushyant basson
ccb8135bb4
update
2024-04-16 11:17:06 +02:00
dushyant basson
c7effd2498
Implemented: Application icons; OpenSceneGraph to handle OpenGL with Qt; devicePixelRatio() for handing render on highDPI displays; Sample 3D with handler; MouseHandler not yet working as expected (WIP)
2024-04-16 11:17:06 +02:00
Dushyant Basson
341e68907f
updated .ico file
2024-04-16 11:17:06 +02:00
dushyant basson
22b953aba8
add application file icon for macos
2024-04-16 11:17:06 +02:00
Dushyant Basson
7bd08468d6
application file-icon and window-icon set on ms-windows
2024-04-16 11:17:06 +02:00
dushyant basson
d4ad055e9b
Removed .clangd file from tracking and added it to .gitignore
2024-04-16 11:17:06 +02:00
dushyant basson
4dda73b7bb
Removed .clangd file from tracking and added it to .gitignore
2024-04-16 11:17:06 +02:00
dushyant basson
86157f1e15
adding qt resources
2024-04-16 11:17:06 +02:00
Sigma Dimensions (Yass)
6660ee3788
New Clash management panel to load IFCClash collision results
2024-04-16 11:17:06 +02:00
Sigma Dimensions (Yass)
e87e53f840
fix smart clash group selection
2024-04-16 11:17:06 +02:00
Andrej730
6b7936c0ce
Fix typo in 92cf0d9
2024-04-16 11:17:06 +02:00
Andrej730
994358c50d
Support loading styles with IfcPixelTexture
2024-04-16 11:17:06 +02:00
Andrej730
6130f23a1a
Allow copying node graphs for external shaders on Blender 4.1+ #3876
2024-04-16 11:17:06 +02:00
Andrej730
0fb2a7e5ec
remove_representation not to leave brokens refs with batch_remove #4138
2024-04-16 11:17:06 +02:00
Andrej730
baf00b5b48
Purge IfcWindow/DoorStyle/IfcTypeProduct #4137
2024-04-16 11:17:06 +02:00
Sigma Dimensions (Yass)
38502734e8
consider unit basis for calculating resource costs #4122
2024-04-16 11:17:06 +02:00
Andrej730
d03e3a33b5
Fix issue renaming objects first time project was loaded after 962b8fa
...
E.g. if you load a project and try to rename some element to "test" it will renamed to "test" instead of "IfcWindow/test" e.g.
Since we relid on `obj.name` handler to set `.is_renaming` back to `False`, it didn't set it back to False when project was just loaded and renamed object was not yet linked to ifc element and name handler is not yet setup.
Another option was to check whether object is linked before changing `is_renaming` but just setting it to False should be more more explicit.
2024-04-16 11:17:06 +02:00
Andrej730
50e568b706
prefix bim.assign/unassign_object to avoid operator override #4099
...
Co-Authored-By: Bruno Perdigão <57102715+brunoperdigao@users.noreply.github.com >
2024-04-16 11:16:59 +02:00
Andrej730
9e3b3aca42
Fix for 308457300
...
Co-Authored-By: Bruno Postle <bruno@postle.net >
2024-04-16 11:16:59 +02:00
ay-ex
c2b67ac665
fix cmake regex for used blender python version
2024-04-16 11:16:59 +02:00
Andrej730
652c402d37
Temp disable setting paint_active_slot from external materials #4129
2024-04-16 11:16:59 +02:00
Andrej730
e907951952
Less console errors if failed to find external styles library
...
Now:
```
Error: Error loading external style - cannot find file: 'D:\Dropbox\GitHub\OD_Textures\Closed (Encrypted)\Materials.blend'
```
Before:
```
File "\blenderbim\bim\module\style\prop.py", line 250, in update_shading_style
Error: Error loading external style - cannot find file: 'D:\Dropbox\GitHub\OD_Textures\Closed (Encrypted)\Materials.blend'
Traceback (most recent call last):
File "\blenderbim\bim\module\style\prop.py", line 255, in update_shading_style
bpy.ops.bim.activate_external_style(material_name=blender_material.name)
File "L:\Games\SteamLibrary\steamapps\common\Blender\4.0\scripts\modules\bpy\ops.py", line 109, in __call__
ret = _op_call(self.idname_py(), kw)
RuntimeError: Error: Error loading external style - cannot find file: 'D:\Dropbox\GitHub\OD_Textures\Closed (Encrypted)\Materials.blend'
```
2024-04-16 11:16:59 +02:00
krande
747c32b9b2
remove ci-py-only.yml as ci.yml already does this
2024-04-16 11:16:57 +02:00
krande
f73a438d38
add test and update ci
2024-04-16 11:16:40 +02:00
krande
c031ffc4b4
update ci
2024-04-16 11:16:40 +02:00
krande
2f3bfb340b
add fix for ci tests
2024-04-16 11:16:38 +02:00
krande
680f075b1b
remove ifc2x3 conditional in conversion utility
2024-04-16 11:16:08 +02:00
krande
5a61173052
update name of function to make its purpose more clear
2024-04-16 11:16:08 +02:00
krande
187da13de8
update unit_assignment
2024-04-16 11:16:08 +02:00
krande
5c75cc6a39
initial proposal for updating units conversion
2024-04-16 11:16:08 +02:00
Andrej730
c9200fb73c
Fix #4124
2024-04-16 11:16:08 +02:00
Sigma Dimensions (Yass)
37b282d330
Fix CSV workschedule import - handle date-related attributes more gracefully
2024-04-16 11:16:08 +02:00
Sigma Dimensions (Yass)
7f4ab61b8a
fix displaying derived task durations
2024-04-16 11:16:08 +02:00
Thomas Krijnen
6309122516
nix build-all: don't strip non-release wrapper builds
2024-04-16 11:16:08 +02:00
Bruno Postle
c55092f234
BlenderBIM IFC Git set push.autoSetupRemote
...
When pushing to a remote repository set tracking for the current branch
so that a locally created repository behaves the same (on the
command-line) as a cloned repository
2024-04-16 11:16:08 +02:00
Andrej730
8b69bf00f6
test for loading ifc with blob textures
2024-04-16 11:16:08 +02:00
Andrej730
f526819ef3
test for loading ifc style to blender material
2024-04-16 11:16:08 +02:00
Andrej730
e676c836c9
BBIM to support loading IfcBlobTexture
2024-04-16 11:16:08 +02:00
Andrej730
c02e0a5b01
support to add all surface style types creating new IfcSurfaceStyle
...
Previously it was working only for shading styles, for other styles it worked but then produced errors as IfcSurfaceStyle.Styles end up being None.
2024-04-16 11:16:08 +02:00
Dion Moult
25552163b5
Patch recipes can now be performed in-place and are sorted in the UI.
2024-04-16 11:16:08 +02:00
Dion Moult
7baffef9de
Add support for manual classifications and references
2024-04-16 11:16:08 +02:00
Andrej730
37a7c8a41f
disable rel paths for adding ref images and textures with unsaved .ifc
2024-04-16 11:16:08 +02:00
Andrej730
35fbd3363d
Fixed issues using relative paths for external styles
...
- removed redundant notion about saving .blend file
- relative paths were saved incorrectly
- fix issue using "bim.browse_external_style" if IfcSurfaceStyle already has external style and it's either .blend file or material in it is missing (it was failing opening file browser)
2024-04-16 11:16:08 +02:00
Andrej730
863ed5f002
small error message fix
...
as it appears as one of the messages during .ifc load, that way it will be more clear that it's related to external styles
2024-04-16 11:16:08 +02:00
Andrej730
c60fed8b58
Fix issue BrowseExternalStyle not selecting current external style in file manager
2024-04-16 11:16:08 +02:00
Andrej730
1251a7838a
Pull all shading related material attributes from external styles #4053
2024-04-16 11:16:08 +02:00
Dion Moult
77bc031800
New SetWorldCoordinateSystem patch. Autodesk software is starting to pay attention to this attribute which I find really confusing.
2024-04-16 11:16:08 +02:00
Dion Moult
83a12ea7f9
Nesting collections only generate for element nesting, not port nesting
2024-04-16 11:16:07 +02:00
Andrej730
ab47291760
Support editing IfcSurfaceStyleLighting in UI
2024-04-16 11:16:07 +02:00
Andrej730
eb30b30186
style.edit_surface_style to support editing IfcSurfaceStyleLighting
...
It was failing because api method wasn't supporting IfcColourRgb attributes edit in general but only for IfcSurfaceStyleShading.SurfaceColour
2024-04-16 11:16:07 +02:00
Andrej730
3034d88a89
Support editing IfcSurfaceStyleRefraction in UI
2024-04-16 11:16:07 +02:00
Andrej730
fcd7d4186d
Hide IfcStyledItem from bim.print_unused_elements_stats
...
as IfcStyledItem can be not referred by any other element and it doesn't mean it's not used in the project
2024-04-16 11:16:07 +02:00
Andrej730
b6b0e958b5
style.add_surface_texture to work without blender material provided
2024-04-16 11:16:07 +02:00
Bruno Postle
343589f1c0
Fix Clipping divide error (reported in #4057 )
2024-04-16 11:16:07 +02:00
Andrej730
6bbb509c09
data.py rename for consistency
2024-04-16 11:16:07 +02:00
Andrej730
128afc53f0
Remove old external styles UI from material in favor of general styles UI
...
Adding external styles from other styles now also moved to general styles UI - https://i.imgur.com/uEyjKVY.png
2024-04-16 11:16:07 +02:00
Andrej730
67ec30582f
Fix after 2520a9305
2024-04-16 11:16:07 +02:00
Andrej730
33c771bc3d
Fixed #4105
2024-04-16 11:16:07 +02:00
Carlos Dias
bf3c1d4044
Update __init__.py
...
Fix bug
2024-04-16 11:16:07 +02:00
Thomas Krijnen
e2543b4374
Update build-all.py - py vers
2024-04-16 11:16:05 +02:00
Andrej730
43920f3c81
Override some more blender scene panels #3842
2024-04-16 11:12:08 +02:00
Andrej730
0b594f69b0
Fix issues unregistering overridden panels
...
Previously overridden scene panels were removed but original panels were not restored.
Also added condition check for Blender version to generate list of panels to override, so we won't miss any errors using `try - except`.
2024-04-16 11:12:08 +02:00
Andrej730
8c4bcc22a1
Procedural override for default blender panels, hide keying panels #3842
...
also fixed the issue with default scene panels that were parented to other panels - because we didn't change `bl_parent_id` the panel structure for them was broken.
2024-04-16 11:12:08 +02:00
Bruno Postle
26d42bf14e
BlenderBIM user docs update after 6452872
2024-04-16 11:12:08 +02:00
Andrej730
6dfeadf193
Fixed issues with linked elements from linked blend files #4081
...
In #4081 reported the case when during redo (changing param in operator's popup) `Ifc.rebuild_element_maps` was relinking elements without discarding possible linked blender libraries. It end up accidentally linking some library's objects to the current Ifc file leading to errors.
Also fixed possible similar issue in couple other places.
2024-04-16 11:12:08 +02:00
Andrej730
e926547c92
test for tool.Blender.copy_node_graph #3876
2024-04-16 11:12:08 +02:00
Dion Moult
6dcc8c2a5a
Fix #4085 . Classification reference URIs now have a button you can jump to that link.
2024-04-16 11:12:08 +02:00
Dion Moult
e40336be2a
Fix #4086 . Add support for non predefined bSDD pset and qto values.
2024-04-16 11:12:08 +02:00
Dion Moult
e469886cdd
Fix #4092 . Minor bug with bad detection of text literals when switching geometry.
2024-04-16 11:12:08 +02:00
Dion Moult
4d20c20cb6
Fix #4090 . Bug where profile set generator didn't accommodate optional axes.
2024-04-16 11:12:08 +02:00
Andrej730
83c9d70991
Fix reference images import after styles ui change
2024-04-16 11:12:08 +02:00
Andrej730
b92ab2c85c
Representation Items UI - replace icon for active style
...
Now it's more consistent because we use the same icon is Styles UI
2024-04-16 11:12:08 +02:00
Andrej730
32c1f20eb3
style.edit_surface_style - fix crash setting attribute to None
...
Occured on setting IfcColourOrFactor attribute to None (e.g. DiffuseColour).
2024-04-16 11:12:08 +02:00
Andrej730
fa31e10a77
Styles UI - moved UI from shader graph N-panel to Styles UI #3912
...
Moved all shading style and textures parameters from shader-graph N-panel to general Styles UI. Shader graph now also update in real time on any prop changes in Styles UI.
Now there is practically no need to switch to shader graph to edit styles shaders - all parameters are available from the Styles UI. That also allows you to edit styles and see the results in viewport even if the edited style is not the one that's currently active.
small demo - https://imgur.com/a/i2suoZw
2024-04-16 11:12:08 +02:00
Martin15135215
d0c68d3f5b
add cff for ifcsverchok
2024-04-16 11:12:08 +02:00
Martin15135215
2b49c6e752
add cff for serializers
2024-04-16 11:12:08 +02:00
Martin15135215
9ecc264e19
add cff for qtviewer
2024-04-16 11:12:08 +02:00
Martin15135215
5744c3a821
add cff for ifcwrap
2024-04-16 11:12:08 +02:00
Martin15135215
9ab54425b4
add cff for ifctester
2024-04-16 11:12:08 +02:00
Martin15135215
46f7241da5
add cff for ifcpatch
2024-04-16 11:12:08 +02:00
Martin15135215
5bec6c8e99
add cff for ifcparse
2024-04-16 11:12:08 +02:00
Martin15135215
55227daf17
add cff for ifcopenshell-python
2024-04-16 11:12:08 +02:00
Martin15135215
f9ea887de3
add cff for ifcmax
2024-04-16 11:12:08 +02:00
Martin15135215
c8b9a1bd37
add cff for ifcjni
2024-04-16 11:12:08 +02:00
Martin15135215
47e4c6c22b
add cff for ifcgeom_schema_agnostic
2024-04-16 11:12:02 +02:00
Martin15135215
b844260e13
add cff for ifcgeom
2024-04-16 11:10:59 +02:00
Martin15135215
05a7392c1a
add cff for ifcfm
2024-04-16 11:10:59 +02:00
Martin15135215
bb0feeab01
add cff for ifcdiff
2024-04-16 11:10:59 +02:00
Martin15135215
ae38d5053a
add cff for ifccsv
2024-04-16 11:10:59 +02:00
Martin15135215
9b2b808ff3
add cff for ifcconvert
2024-04-16 11:10:59 +02:00
Martin15135215
76ec22d85c
add cff for ifcclash
2024-04-16 11:10:59 +02:00
Martin15135215
a557a80228
Add cff for ifccityjson
2024-04-16 11:10:59 +02:00
Martin15135215
ea4b23d6a3
add cff for ifcblender
2024-04-16 11:10:59 +02:00
Bruno Perdigão
44bffc8672
add_aggregate now add the empty using the 3d cursor location
2024-04-16 11:10:59 +02:00
Ryan Schultz
b847656e69
Added classification to selector
2024-04-16 11:10:59 +02:00
c4rlosdias
c71ff5fb10
Update Load bSDD domains
2024-04-16 11:10:58 +02:00
Dirk Olbrich
caab8f8036
bbim-docs: add interface property editor section
...
- add stubs for each sub-tab
2024-04-16 11:10:58 +02:00
Dirk Olbrich
8a218249dd
bbim-docs: use figure with caption instead of plain image
2024-04-16 11:10:58 +02:00
Dirk Olbrich
76f25c755b
bbim-docs: update workspace doc for sidebar panels
2024-04-16 11:10:58 +02:00
Dion Moult
401db55c55
Implement support for managing nest hosts and components.
2024-04-16 11:10:58 +02:00
Bruno Perdigão
302dc8eb9f
added report messages
2024-04-16 11:10:58 +02:00
Bruno Perdigão
2fb8fafbb4
added the option to refresh different groups of linked aggregate
2024-04-16 11:10:58 +02:00
Bruno Perdigão
f859c06858
bugfix in recreate_aggregate
2024-04-16 11:10:58 +02:00
Bruno Perdigão
b2cb907599
Refresh Linked Aggregate now handles multiple selection
2024-04-16 11:10:58 +02:00
Bruno Perdigão
172ea49e30
merged the branch 'improvements-on-override-duplicat'
2024-04-16 11:10:58 +02:00
Bruno Perdigão
1d51244205
moved 'recreate_assembly' to tool/root.py
2024-04-16 11:10:58 +02:00
Bruno Perdigão
e25948bd03
added more tests
2024-04-16 11:10:58 +02:00
Bruno Perdigão
b21b0751fa
added test scenario for duplicating an aggregate
2024-04-16 11:10:58 +02:00
Bruno Perdigão
3569780f06
recreates assembly for array children objects
2024-04-16 11:10:58 +02:00
Bruno Perdigão
4d2b2ae5d2
Duplication now recreates connections path #3770
2024-04-16 11:10:58 +02:00
Bruno Perdigão
e5a6e0f761
small deletions
2024-04-16 11:10:58 +02:00
Bruno Perdigão
1366c3bed9
ifc_duplicate_operator now remove the connections with old objects. Similar solutions presented in PR #3789
2024-04-16 11:10:58 +02:00
Bruno Perdigão
55962692bb
Fix #2187 . ifc_duplicate_operator now recreates the IfcElementAssembly structure into a new Assembly
2024-04-16 11:10:58 +02:00
Bruno Perdigão
d1eddb751b
Groups are only added to the parent. Parts now have a pset with index
2024-04-16 11:10:58 +02:00
Bruno Perdigão
5381bf7e48
removed the pset and added group to all elements
2024-04-16 11:10:58 +02:00
Bruno Perdigão
60046ee93d
improvements on dealing with sub-aggregates
2024-04-16 11:10:58 +02:00
Bruno Perdigão
f244f46980
wip: RefreshLinkedAggregate is working with IfcGroup
2024-04-16 11:10:58 +02:00
Bruno Perdigão
25a4f26ffe
wip: refactor of RefreshLinkedAggregate. The operator triggers all the other linked aggregates deletion.
2024-04-16 11:10:58 +02:00
Bruno Perdigão
8d02d1d5fc
IfcElementAssembly share a group instead of a pset
2024-04-16 11:10:58 +02:00
Bruno Perdigão
70bad12d82
Changed operator name
2024-04-16 11:10:58 +02:00
Bruno Perdigão
8bb5ac3542
wip: DuplicateMoveAggregate now calls DuplicateMove function and removes code duplication
2024-04-16 11:10:58 +02:00
Dion Moult
ecc0e85c50
Fix #4076 . Fix bug where drawing activation priorities didn't match drawing generation priorities, and switching to a text literal representation failed.
2024-04-16 11:10:58 +02:00
Dion Moult
a70d1ac1ca
Fix #4078 . Bug in IfcTester that didn't allow certain facets to be used as applicabilities. Also canonicalise facet ordering for convenience.
2024-04-16 11:10:58 +02:00
Dion Moult
298363c175
Fix bug in TessellateElements patch recipe where sometimes the patch would run forever.
2024-04-16 11:10:58 +02:00
Dion Moult
325e8751c5
Run black on cityjson2ifc
2024-04-16 11:10:58 +02:00
Dion Moult
5e4a0f2577
Fix two minor bugs in cityjson2ifc
2024-04-16 11:10:58 +02:00
Andrej730
670cf33ec9
fixed couple styles ui bugs
...
1) it was failing adding a new IfcSurfaceStyle if surface_style_class != Shading/Render as surface_style was not defined
2) It was never creating render material as IfcSurfaceStyleRendering class is a child of IfcSurfaceStyleShading and if statement never got to the is_a("IfcSurfaceStyleRendering") check
2024-04-16 11:10:58 +02:00
Andrej730
fe9ad74fd5
Use paths relative to .ifc instead of .blend choosing texture paths
...
Texture path file dialog is also filtering image files now.
Removed subtype from `FILE_PATH` from all related props since `layout.prop()` for those props starts file dialog that cannot return path relative to .ifc. It can return path relative to .blend - though it can be processed in props update to convert to relative to .ifc, this doesn't allow setting relative paths if .blend is not saved. Therefore, I've created a separate operator.
add
2024-04-16 11:10:58 +02:00
Andrej730
67ef292b85
Store reference images by relative paths #3447
2024-04-16 11:10:58 +02:00
Andrej730
44c05ce71d
Fix normals for generic parametric stairs #4020
...
Also made concrete stair normals defined more explicitly.
2024-04-16 11:10:57 +02:00
Massimo Fabbro
5dc6c736ec
fix #3834 . Now clone opening produces valid IFC files
2024-04-16 11:10:57 +02:00
Dion Moult
b9f33e06bd
Fix #4072 . IDS reports now include filename.
2024-04-16 11:10:57 +02:00
Dion Moult
31e912cf12
Fix #4073 . Objects with no applicable context for the drawing view are now hidden.
2024-04-16 11:10:57 +02:00
Bruno Postle
0735dbd92b
BlenderBIM IFC Git allow branch creation from HEAD
...
Previously you could only create branches by checking out an older
revision, making changes and committing it. This was an annoyance as
typically you are making changes to the HEAD of a branch, then you
realise this should have been a branch - now you can create the branch
on commit (#3096 )
2024-04-16 11:10:57 +02:00
Ryan Schultz
24dfa57831
allow SI with CAD tools.
2024-04-16 11:10:57 +02:00
Bruno Postle
1f4c2e0989
BlenderBIM IFC Git fix typo in function name
2024-04-16 11:10:57 +02:00
Thomas Krijnen
4f64b658b0
don't fail on null guid for rooted element deletion #2796
2024-04-16 11:10:44 +02:00
Andrej730
c3d24c76f2
Reference images attached to the drawings #3447
...
You can also save them as annotation types.
Example - https://imgur.com/a/6trT7SZ
2024-04-16 11:09:32 +02:00
Andrej730
a0ae28c05b
bim.update_representation to save non-body representations styles #3447
2024-04-16 11:09:32 +02:00
Andrej730
505b95d8cd
Fixed issue importing drawing's IfcAnnotations with styles #3447
2024-04-16 11:09:32 +02:00
Andrej730
64c3550378
fix poll errors
2024-04-16 11:09:32 +02:00
Andrej730
35cfea5bd7
Revert "Minor fix - remove redundant code"
...
This reverts commit 7828508179 .
Turned out when I was assuming `bim.add_style` is assigning the style but it wasn't, it was `bim.update_representation` on the file save. So basically during the session style wasn't assigned, therefore I added back explicit style assignment. 😬
2024-04-16 11:09:32 +02:00
Andrej730
661d6bcfe7
fixed typo
2024-04-16 11:09:32 +02:00
Thomas Krijnen
f50509d2d4
occ_utils.py - #1037
2024-04-16 11:09:32 +02:00
MicheleBenedetti
aa33148fe5
mistype-fix
2024-04-16 11:09:32 +02:00
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
Ryan Schultz
d49fb90320
Select all objects from multiple selected classes
2024-04-16 11:05:27 +02:00
Andrej730
86f0af030a
fill userdefined type field during reassigning IFC class #4034
...
to avoid confusion
2024-04-16 11:05:27 +02:00
Andrej730
d5253a8cbf
store path to bcf in Blender file to reaccess it on Blender restart
...
Previously it was throwing errors if load .bcf and then restart Blender, since it was just trying to reaccess file in BcfStore.bcfxml which is gone after Blender restart. Now we store filepath to bcf in Blender properties to reload it after Blender restart.
Removed BCFProperties.is_loaded as it won't be possible to rely on it after Blender restart - after restart it will still indicate that file is loaded and it won't be possible to change it from .poll and .draw if file is gone.
2024-04-16 11:05:27 +02:00
Dion Moult
b84cb72e1d
New graphical element filtering UI for drawing filters that lets you also use saved searches.
2024-04-16 11:05:27 +02:00
Dion Moult
10a4fcfa10
If there is a Blender offset, show the non-offset placement in the placement panel
2024-04-16 11:05:27 +02:00
Dion Moult
eaf939070b
Fix bug when loading IFC with unsupported reflectance method (even though we don't fully support them yet)
2024-04-16 11:05:27 +02:00
Dion Moult
3e36e87311
Move georeferencing calculator panel until scene georeferencing panel.
...
Slowly all the N sidebar panels should be moved away.
2024-04-16 11:05:27 +02:00
Andrej730
b369c5e06e
BCF Viewpoint - clear selection before hiding IfcSpaces #4031
2024-04-16 11:05:27 +02:00
Andrej730
6fd629f707
Fixed issue reassigning class to type class with userdefined type #4018
...
When PredefinedType is not found in the related enum reassign_class is considering it USERDEFINED and trying to set .ObjectType. The problem was it was doing for type classes also, when it should have set .ElementType instead.
Why it crashed BlenderBIM - in IfcClassData.data["has_entity"] we store currently active IFC entity which is recreated during `ifcopenshell.util.schema.reassign_class` making old entity invalid. Since `root.reassign_class` was failing in the process, related BBIM operator was failing too, IfcClassData wasn't updated and removed entity was accessed from UI leading to crash.
2024-04-16 11:05:27 +02:00
Dion Moult
1dd401d77e
Fix critical georeferencing autodetection regression due to refactor of new context filters.
2024-04-16 11:05:27 +02:00
Dion Moult
b20f0dd199
Improve geometry guessing to also check placements of random sample of elements (not just site and building), not just geometry
2024-04-16 11:05:27 +02:00
Dion Moult
be584d9155
New IfcPatch recipe to tessellate elements to account for bugs in other vendors.
2024-04-16 11:05:27 +02:00
Dion Moult
15f06dee29
Fix missing LGPL license blocks in IfcPatch
2024-04-16 11:05:27 +02:00
Andrej730
4fba7461c2
Fixed more overlooked context overrides... #3876
2024-04-16 11:05:26 +02:00
Andrej730
ffce41be95
Fixed #4026 related to #3876
2024-04-16 11:05:26 +02:00
Andrej730
581014a1d5
Move code using ui index from data to ui #4028
...
As UI indices changes doesn't trigger data.py updates and information on screen is not synced with the active item anymore.
2024-04-16 11:05:26 +02:00
Dion Moult
990611c160
Add support for loading nested elements and consider nesting for indirect spatial containment.
2024-04-16 11:05:26 +02:00
Dion Moult
6e97ef66a1
Don't unnecessarily merge materials which can be very computationally consuming on file loads (e.g. from software like Solidworks) which will be made redundant now that a new materials/style management system is WIP.
2024-04-16 11:05:26 +02:00
Dion Moult
fd53adfa49
New ConvertNestToAggregate patch recipe
2024-04-16 11:05:26 +02:00
Bruno Postle
9483835356
IfcGit.load_project() can be used to refresh scene
...
If no file path is given, clear blender objects and regenerate
the scene from the current ifc project in IfcStore
2024-04-16 11:05:26 +02:00
Massimo Fabbro
44b625bf24
fix #4011 . More precise IfcRoof qto calculator
2024-04-16 11:05:26 +02:00
Massimo Fabbro
63636e1cc7
Minor fix
2024-04-16 11:05:26 +02:00
Massimo Fabbro
4b3a49dc3b
Covering Tool: fixed bug if the project is defined in units different from SI units
2024-04-16 11:05:26 +02:00
Andrej730
e17a6c326f
minor fix to support union typing before python 3.10 #3774
2024-04-16 11:05:26 +02:00
Andrej730
8dc9376844
ClippingInfo util class to pass and apply plane clippings #3774
...
Co-Authored-By: Carlos Villagrasa <carvillasil@gmail.com >
2024-04-16 11:05:26 +02:00
Andrej730
1c002c6845
minor fixes
...
- error in settings poll message for bim.assign_selected_as_product
- test that drawing.assign_product won't create new assignments for the same product
2024-04-16 11:05:26 +02:00
Andrej730
d56ec42905
minor fix - clean up after debug
2024-04-16 11:05:26 +02:00
Andrej730
bf943951c1
Tests for connecting mep elements and regenerating them
...
Also:
- fixed bug with bim.mep_connect_elements not considering actual blender blender object's position
- moved syncing ifc position with blender object position to tools (sync_object_ifc_position)
- fixed a bug in adding a bend that occured if either any of the start/end points of the start/end segments matched - in that case one of the segments end up not connected to the bend
2024-04-16 11:05:26 +02:00
Andrej730
891e4d93a7
Fixed error importing .ifc that has element aggregated by ifcproject
...
In case if some element (not another aggregate) was aggregated by IfcProject directly, importing IFC was resulting in error below since the project's collection was never added to `self.collections`.
Traceback:
```
File "\scripts\addons\blenderbim\bim\module\project\operator.py", line 732, in execute
ifc_importer.execute()
File "\scripts\addons\blenderbim\bim\import_ifc.py", line 292, in execute
self.place_objects_in_collections()
File "\scripts\addons\blenderbim\bim\import_ifc.py", line 1668, in place_objects_in_collections
self.place_object_in_collection(self.file.by_id(ifc_definition_id), obj)
File "\scripts\addons\blenderbim\bim\import_ifc.py", line 1672, in place_object_in_collection
self.place_object_in_decomposition_collection(element, obj)
File "\scripts\addons\blenderbim\bim\import_ifc.py", line 1689, in place_object_in_decomposition_collection
return self.collections[aggregate.GlobalId].objects.link(obj)
KeyError: '2bKVb8E7L6e89EQYJUk8BM'
```
2024-04-16 11:05:26 +02:00
Andrej730
485f654f93
Assigning product from selected objects #4015
2024-04-16 11:05:26 +02:00
Dion Moult
2644d080d9
Revert "You can now override custom category element functions in IfcFM"
...
This reverts commit 8a63275db0 .
2024-04-16 11:05:26 +02:00
Dion Moult
4fb01f2fe6
Minor alignment of Basic FM preset to IFC property naming
2024-04-16 11:05:26 +02:00
Dion Moult
b3a2c7c4b7
You can now override custom category element functions in IfcFM
2024-04-16 11:05:26 +02:00
Dion Moult
257b3ce1d9
Minor bug fix to COBie 2.4 space descriptions
2024-04-16 11:05:26 +02:00
Dion Moult
9985ffb413
Purge data recipe now also purges shape aspect names and layers.
2024-04-16 11:05:26 +02:00
Andrej730
0cc337fa88
fixed issue adding bend between segments located at the same point
...
also added some tests
2024-04-16 11:05:26 +02:00
Andrej730
036a670910
Fixed issue with UI for types withotu PredefinedType after 1621449
...
Noticed the issue adding IfcFurnitureType in IFC2x3
```
Traceback (most recent call last):
File "\Blender\4.0\scripts\addons\blenderbim\bim\module\model\workspace.py", line 71, in draw_settings
BimToolUI.draw(context, layout, ifc_element_type="all")
File "\Blender\4.0\scripts\addons\blenderbim\bim\module\model\workspace.py", line 230, in draw
AuthoringData.load(ifc_element_type)
File "\Blender\4.0\scripts\addons\blenderbim\bim\module\model\data.py", line 56, in load
cls.data["predefined_type"] = cls.predefined_type()
File "\Blender\4.0\scripts\addons\blenderbim\bim\module\model\data.py", line 258, in predefined_type
predefined_type = relating_type.PredefinedType
File "\Blender\4.0\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\entity_instance.py", line 191, in __getattr__
raise AttributeError(
AttributeError: entity instance of type 'IFC2X3.IfcFurnitureType' has no attribute 'PredefinedType'
```
2024-04-16 11:05:26 +02:00
Andrej730
e1246e257a
New context override method for setting viewport tools #3876
2024-04-16 11:05:26 +02:00
Andrej730
4f76df8cb1
DumpSlabPlaner.change_thickness to use si units #4004
...
It was providing project units to `geometry.add_slab_representation` resulting and then they were converted to project units once again during `geometry.add_slab_representation`.
2024-04-16 11:05:26 +02:00
Andrej730
3d5b9f5e90
black format
2024-04-16 11:05:26 +02:00
Andrej730
db7dc86cd1
Merge two Services sections in Services and Systems tab #4001
...
Two similar sections were needed in the old ui before we added tabs
2024-04-16 11:05:26 +02:00
Ryan Schultz
65859a8f83
closes #4006 : automatically update the geometry of all the objects that have 'similar openings'.
2024-04-16 11:05:26 +02:00
Ryan Schultz
8eef2392da
fixes #3908 : Close the opening (bim.edit_openings) while having the opening selected
2024-04-16 11:05:26 +02:00
VDobranov
8dfd122430
Update reference_structure.py
...
A mistype in docs: should be IfcRelReferencedInSpatialStructure instead of IfcRelContainedInSpatialStructure
2024-04-16 11:05:26 +02:00
Massimo Fabbro
6e6402e07f
Covering Tool now it is possible to add ceiling coverings from selected walls
2024-04-16 11:05:26 +02:00
Andrej730
6140e67702
show mep regenerate and connecte elements for non-profile based elements
2024-04-16 11:05:26 +02:00
Andrej730
944f8695c7
root.remove_product to remove IfcRelFlowControlElements
2024-04-16 11:05:25 +02:00
Andrej730
6cf1f8f49f
fixed issues with ports ui on undo
...
data.py doesn't update on every undo, so passed blender objects got invalidated on undo resulting in errors. changed blender objects to blender object names
2024-04-16 11:05:25 +02:00
Andrej730
fd69d91776
UI for assigning controls to flow elements #3981
...
Example - https://imgur.com/a/CZQIoHp
2024-04-16 11:05:25 +02:00
Andrej730
72b3f1e967
api for assigning/unassigning flow controls #3981
2024-04-16 11:05:25 +02:00
Andrej730
1bb5a14b65
Fixed typo in control.assign_control, added tests
2024-04-16 11:05:25 +02:00
Andrej730
61e5533598
tool.System.add_ports tests
2024-04-16 11:05:25 +02:00
Andrej730
4264b19fd8
fixed issue placing ports on a bend if start segment is bending using Z-
2024-04-16 11:05:25 +02:00
Andrej730
c2c2c4815f
fixed issue in add_ports mutating object's matrix
...
inherently modifying ports positions in some cases
2024-04-16 11:05:25 +02:00
Dirk Olbrich
b069770643
bbim docs: add user interface subsection, general workspace
2024-04-16 11:05:25 +02:00
Dirk Olbrich
9d9140252e
bbimdocs: reorder images folder in users section
2024-04-16 11:05:25 +02:00
Dirk Olbrich
ee6e273b1d
bbim docs: reorder images folder in dev section
2024-04-16 11:05:25 +02:00
Dirk Olbrich
6e00dcd05e
bbim docs: use absolute path for icon images
2024-04-16 11:05:25 +02:00
Dirk Olbrich
fb55077a86
bbim doc: fix list indentation
2024-04-16 11:05:25 +02:00
Dirk Olbrich
e602c3b68b
bbim docs: fix minor warning in ux-guidelines
2024-04-16 11:05:25 +02:00
Dirk Olbrich
ce43bd7bfe
bbim docs: update bbim version, copyright year
2024-04-16 11:05:25 +02:00
Andrej730
21c7751c14
remove BIMGroupProperties.is_adding attribute to avoid confusion
...
The problem with that attribute was that object's and project's group ui section were both using groups loaded to BIMGroupProperties.groups.
So you could run into situation when you try to load object's groups ui and it would show empty list because user never loaded the groups from the project's ui...
So it was either caching groups twice or just using same `is_editing` flag to check whether groups were previously loaded and I went with the single flag.
2024-04-16 11:05:25 +02:00
Andrej730
29e6601a4b
define inherited ports attributes in bim.add_constr_type_instance
2024-04-16 11:05:25 +02:00
Andrej730
0355aa9eef
fixed issue finding finding compatible fitting
...
it occured sometimes when segment's or fitting's PredefinedType/System were not defined
2024-04-16 11:05:25 +02:00
Andrej730
89a5519631
fixed bug with system decoration data if no system were selected
2024-04-16 11:05:25 +02:00
Andrej730
29dda335ea
test stairs calculated params
2024-04-16 11:05:25 +02:00
Andrej730
168095b1c1
Nosing Lengths / Tread Gap for parametric stairs #3422
...
Example - https://imgur.com/d8PxLV4
2024-04-16 11:05:25 +02:00
Ryan Schultz
66f57f90df
Select multiple arrays at one time, from various parts. Deselect non-compliant objects.
2024-04-16 11:05:25 +02:00
Igor.Sokolov
4404470d91
bf: IfcBSplineCurve is an isntance of abstract entity
2024-04-16 11:05:24 +02:00
Igor.Sokolov
fe4dc87cd1
bf: pass-valid-selected-enumeration.ifc
2024-04-16 11:05:24 +02:00
Igor.Sokolov
0f774a675d
bf: pass-group-1-rels-IFC2X3.ifc failed
2024-04-16 11:05:24 +02:00
Igor.Sokolov
27458cc079
bf: pass-attr-count-ok.ifc failed
2024-04-16 11:05:24 +02:00
Dion Moult
87a98afb64
Black
2024-04-16 11:05:24 +02:00
Dion Moult
26d6fdb1bc
Docs now mention historic builds
2024-04-16 11:05:24 +02:00
Dion Moult
142968559d
Minor fix
2024-04-16 11:05:24 +02:00
Andrej730
12a6bf88a9
Customize tread width for the first and last treads #3419
...
Available on all types of stairs, shouldn't break stairs previously created with BBIM.
Example - https://imgur.com/a/2wSueTM
2024-04-16 11:05:24 +02:00
Andrej730
3317dbd4a1
minor refactor
2024-04-16 11:05:24 +02:00
Andrej730
ba1a84e51b
add force depsgraph update method
2024-04-16 11:05:24 +02:00
Andrej730
2697703bb1
skip black format on type manager template description for readibility
2024-04-16 11:05:24 +02:00
Andrej730
617c8b9fd5
stair profile generation code refactor
...
hopefully it's now a bit more readable
2024-04-16 11:05:24 +02:00
Andrej730
3ec513c56a
Fixed stair calculated params not updating during edit (after 8b23c615c)
...
.data doesn't update on props change, so need to take data from props explicitly when BIMStairProperties.is_editing
2024-04-16 11:05:24 +02:00
Andrej730
7d25261395
move generate_stair_2d_profile to tool, add tests
2024-04-16 11:05:24 +02:00
ceegartner
4336b9c1ae
Update unit.py - convert function, case issue
...
Hi,
I noticed an issue and suggest a fix:
Unit names from <si_conversions> are all lowercase, whereas project units extracted from the IFC files with <get_project_unit(...).Name> are uppercase. So the convert function didn't seem to work properly.
Hope this helps!
2024-04-16 11:05:24 +02:00
Dion Moult
cc338d8acc
Forgot rabbit branding.
2024-04-16 11:05:24 +02:00
Dion Moult
0f0d600f3f
New data purging IfcPatch recipe
2024-04-16 11:05:24 +02:00
Dion Moult
fefb3cc0f2
Fix #3963 . Bind IFC separate to P hotkey and prevent separation on non-IFC meshes.
2024-04-16 11:05:24 +02:00
Dion Moult
f40281e979
Fix #3948 . Bug where IfcTester PartOf facet didn't correctly read entity XML.
2024-04-16 11:05:24 +02:00
Andrej730
611f7518d0
Fix issue with calculated params in stair ui
...
it was displaying incorrect data when stair was just loaded because it was relying on BIMStairProperties in ui.py
2024-04-16 11:05:24 +02:00
Dion Moult
9571146065
Fix #3951 . mats selector now supports IfcMaterialList.
2024-04-16 11:05:24 +02:00
Dion Moult
e2b132ba51
See #3951 . IfcCSV now supports list concatenation.
2024-04-16 11:05:24 +02:00
Dion Moult
c9dcd70cdb
Improve data type error reporting
2024-04-16 11:05:24 +02:00
Dion Moult
c94dc3b47e
Fix #3961 . Improve UI so setting null now clears the value.
2024-04-16 11:05:24 +02:00
Andrej730
01dfd6f79a
bim.select_all_array_objects not to clear previous selection #3960
2024-04-16 11:05:24 +02:00
Dion Moult
6759914188
See #3953 . Fix bug where IDSes with a single enumeration value didn't validate.
2024-04-16 11:05:24 +02:00
Dion Moult
7f1a500445
Fix #3957 . Fix bug where shared properties were not edited independently.
2024-04-16 11:05:24 +02:00
Dion Moult
2bd7ce5996
Fix #3958 . Bug where reassigning type class would incorrectly assign occurrence classes.
2024-04-16 11:05:24 +02:00
Dion Moult
f4f227ffe7
Fix regressions in mapped native swept disk handling
2024-04-16 11:05:24 +02:00
Andrej730
edfe9fbcfa
fix future warning for xml.etree
...
The warning was: FutureWarning: The behavior of this method will change in future versions. Use specific 'len(elem)' or 'elem is not None' test instead.
2024-04-16 11:05:24 +02:00
Andrej730
f6eb1b0e78
remove blf.size deprecated dpi argument #3876
...
turn out it wasn't working for awhile now and in Blender 4.0 was completely removed
2024-04-16 11:05:24 +02:00
Andrej730
f3aa456677
Move new Blender 4.0 Simulation section to Scene/Blender tab #3876
2024-04-16 11:05:24 +02:00
Andrej730
7d785d70a2
Warning message on copying node graph on Blender 4.0+ #3876
...
As we're still looking for a workaround
2024-04-16 11:05:24 +02:00
Andrej730
9d642a0f5d
Remove 3D shaders prefix #3876
...
In Blender 4.0 3D_* shaders are called without "3D_" prefix, otherwise it throws an error. Tested on Blender 3.6 - they work without "3D_" prefix too.
2024-04-16 11:05:23 +02:00
Andrej730
9499f4e80d
More context override fixes #3876
2024-04-16 11:05:23 +02:00
Andrej730
5695efa997
fixing test after 0d0b91e
2024-04-16 11:05:23 +02:00
Gorgious56
036c14b538
You can now eyedrop an object in the viewport to copy container when editing container
2024-04-16 11:05:23 +02:00
Ryan Schultz
bb5fccf6fe
More IFC class suggestions
2024-04-16 11:05:23 +02:00
Dion Moult
cd5b54e240
Disable batching for removal as it doesn't seem to help mostly from experience. Still testing.
2024-04-16 11:05:23 +02:00
Dion Moult
cbac393855
See #3955 . PyPI release now specifies compatible Python versions.
2024-04-16 11:05:23 +02:00
Gorgious56
c9199caba5
You can now eyedrop an object in the viewport to copy class and predefined type when reassigning class
2024-04-16 11:05:23 +02:00
Gorgious56
e851d6b671
Clicking on an entry in the search field popup automatically validates and closes the popup
...
No need to click on "OK" anymore.
This is not a hacky workaround using the mouse position, it uses a signal sent to Blender to close the active popup
See https://blenderartists.org/t/programatically-close-pie-menu-2-79/1488807/2
re-committing since it seems I commited to the wrong branch last week
2024-04-16 11:05:23 +02:00
Andrej730
6a9ec1aa00
Replacing old context override method #3876
2024-04-16 11:05:23 +02:00
Andrej730
8b9790822e
setup_pytest to find site-packages folder near sys.executable
...
Used to get errors running setup_pytest.py having python 3.10 installed on my pc (`sys_paths[-1]` was the system's python folder, not the blender's python).
2024-04-16 11:05:23 +02:00
Andrej730
9cd7d8428c
Fixed #3949
2024-04-16 11:05:23 +02:00
Dion Moult
1a7b95bf1e
Minor fix to Uniclass classification
2024-04-16 11:05:23 +02:00
Thomas Krijnen
a7e925b942
Update test file for case insensitivity. Thanks Igor.
2024-04-16 11:05:23 +02:00
Dion Moult
b07f7bcc58
get_footprint_area now unions 2D polygons to prevent double counting
2024-04-16 11:05:23 +02:00
Dion Moult
cdc3f70ff4
Fix #3939 . Bug where IfcLabel data type was incorrectly used for longer text data.
2024-04-16 11:05:23 +02:00
Ryan Schultz
e641120166
Updated default JoinCriteria to accommodate new facet selector for statuses.
2024-04-16 11:05:23 +02:00
Andrej730
371c54036d
test creating mep transition
2024-04-16 11:05:23 +02:00
Andrej730
1647acf0ca
ifc2x3 pset library - fix bunch of unit related vlaidation errors #3929
2024-04-16 11:05:23 +02:00
Dion Moult
682990a30d
Minor fixes
2024-04-16 11:05:23 +02:00
Dion Moult
11eefab4fc
Add support for latest uniclass and add Uniclass July 2023
2024-04-16 11:05:23 +02:00
Sigma Dimensions (Yass)
aa0d1cc230
fix displaying undefined or userdefined units in cost schedules
2024-04-16 11:05:23 +02:00
Sigma Dimensions (Yass)
c18d756e74
fix displaying cost item totals
2024-04-16 11:05:23 +02:00
Massimo Fabbro
b111d85830
New operator that creates a ceiling from cursor position in covering tool
2024-04-16 11:05:23 +02:00
Andrej730
056e0b050d
fixed core tests after switch_representation changes
2024-04-16 11:05:23 +02:00
Andrej730
e09a57a9d3
"Edit Profile" in BIM Tool for mapped representations
...
basically now "edit profile" will be shown in BIM Tool UI and will work from shift+e hotkey if the active element's representation is mapped (for example, if it has openings)
2024-04-16 11:05:23 +02:00
Andrej730
746053eefb
switch_representation to automatically switch to unresolved mapped representation
...
The cool thing about it now that it will automatically create a new mesh for "unresolved" representation if element has openings, otherwise it'll stick to the same mesh representation as the type object.
This fixed a few bugs:
- similar to b9a9abd but during extrusion profile edit
- applying void to the occurence used to remove the type and other occurences. Apparently it occured after 744c08e - previously we seems to rely on `ifcopenshell.geom.create_shape(settings, element)` to unresolve the representations. Though before 744c08e there still was an issue - it would apply the same opening to the all occurences and the type meshes but wasn't removing them.
Probably fixed a few other similar issues.
2024-04-16 11:05:23 +02:00
Andrej730
79b8125916
switch_representation not to break with temporary mesh representations
...
I've found a bug that if you have some object that consists of extrusion and can be edited in profile edit mode, when you finish editing, it would remove the type object (and I guess the other occurences objects).
It happened because during edit mode it's using temporary mesh data and `switch_representation` would replace this temp mesh data with new representation and remove the old mesh data that might still used by the other occurences and the type.
The issue also was leading to a crash during `box.template_icon(icon_value=AuthoringData.data["type_thumbnail"], scale=5)` if you had BIM Tool thumbnail preview opened in the process - removing type object would make thumbnail icon become invalid leading to the crash.
Crash mentioned here: https://community.osarch.org/discussion/1753/bbim-two-door-types-with-connected-properties
2024-04-16 11:05:22 +02:00
Dion Moult
f30ceae7da
Update beginners tutorial documentation with images from new UI.
2024-04-16 11:04:29 +02:00
Dion Moult
f9236f8b42
You can now assign and unassign styles to materials
2024-04-16 11:04:29 +02:00
Dion Moult
ca1925cc9f
You can now specify a name when adding materials
2024-04-16 11:04:29 +02:00
Ryan Schultz
acb29b5275
Additional clarification on save and save as
2024-04-16 11:04:29 +02:00
Dion Moult
13446cf6db
Reorganise new stakeholders panel, move profiles into geometry tab. General UI polish.
2024-04-16 11:04:29 +02:00
Andrej730
fb650a8516
option to set active system
...
Now it's possible to set in UI active system (currently it's done "select" button next to the system).
Also changed the elements that are going to be decorated with system decorator. Previously it was decorating all the mep elements in the projects which was very performance heavy on large projects.
2024-04-16 11:04:29 +02:00
Andrej730
424042474b
Merge systems UI into one
...
We had two very similar systems panels that were part of the old UI.
2024-04-16 11:04:29 +02:00
Dion Moult
5bb04010ae
Fix #3095 . Very basic implementation of a new zones panel.
2024-04-16 11:04:29 +02:00
Andrej730
91c7fe4628
Fixed tests after selector syntax update
2024-04-16 11:04:29 +02:00
Dion Moult
c5e5f4ab6a
Fix #3901 . Add configurable list concatenation support in IfcFM.
2024-04-16 11:04:29 +02:00
Dion Moult
eff68dda38
Fix #3903 . Bug where stairs started off with an empty mesh and had a representation added, resulting in an invalid empty point cloud.
...
Now stairs have should_add_representation=False when creating the IfcStairFlight, and the representation is updated explicitly, similar to how parametric doors and windows etc have their representations updated.
2024-04-16 11:04:29 +02:00
Dion Moult
afd3ac1881
Fix regression from 744c08e where type products cannot have an instance specified in create_shape
2024-04-16 11:04:29 +02:00
Dion Moult
b5253556a9
Adding / editing shading / rendering styles in the style manager now updates Blender materials
2024-04-16 11:04:29 +02:00
Andrej730
bc9fc0b462
Forgot to fix test after 35d66f5
2024-04-16 11:04:29 +02:00
Andrej730
5d051b5bdd
Fixed issue unlinking mesh objects
...
After d67eae5 delete_ifc_object is removing the meshes and it end up invalidating the unlinked object. Now mesh is copied before running delete_ifc_object
2024-04-16 11:04:29 +02:00
Andrej730
64f1ea9034
Fix tests after 808ff54
2024-04-16 11:04:29 +02:00
Andrej730
a5e667230d
Minor fix after a47c57c
2024-04-16 11:04:29 +02:00
Andrej730
6297afa04c
Fixed test after c34a9c5
...
Also fixed bug in the sheeter
2024-04-16 11:04:29 +02:00
Andrej730
219a5bbcf7
Fixed test after 418444a
2024-04-16 11:04:29 +02:00
Andrej730
ab39983d26
Fixed test after 90b40ff
2024-04-16 11:04:29 +02:00
Andrej730
52d67052bd
Fixed test after 88d96f7
2024-04-16 11:04:29 +02:00
Andrej730
834bde2b63
Fixed test after 6e9639446
2024-04-16 11:04:29 +02:00
Andrej730
ec97b04bde
Fixed #3907 after dd7a6a80e
2024-04-16 11:04:29 +02:00
Dion Moult
9c99085413
You can now edit rendering styles in the style manager
2024-04-16 11:04:28 +02:00
Andrej730
526dbd9e44
Added IfcZone to systems UI in IFC2X3 #3905
...
In IFC2X3 IfcZone is a subtype of IfcGroup but not subtype of IfcSystem (it become one after IFC4), therefore IfcZone wasn't presented anywhere in BBIM UI.
It's a bit confusing though to include IfcZone in systems when it's not actually a IfcSystem but having it in IfcGroups would be confusing too.
2024-04-16 11:04:28 +02:00
Andrej730
a43fd7f066
Fixed #3901
...
It was throwing an error because was failing to write a list to an excel cell, now it's explicitly converting the value to string.
Python: Traceback (most recent call last):
File "\blenderbim\bim\module\fm\operator.py", line 102, in execute
writer.write_xlsx(filepath)
File "\blenderbim\libs\site\packages\ifcfm\__init__.py", line 259, in write_xlsx
cell = worksheet.cell(row=r, column=c, value=col)
File "\blenderbim\libs\site\packages\openpyxl\worksheet\worksheet.py", line 247, in cell
cell.value = value
File "\blenderbim\libs\site\packages\openpyxl\cell\cell.py", line 218, in value
self._bind_value(value)
File "\blenderbim\libs\site\packages\openpyxl\cell\cell.py", line 187, in _bind_value
raise ValueError("Cannot convert {0!r} to Excel".format(value))
ValueError: Cannot convert ['USE TYPE CATALOG'] to Excel
2024-04-16 11:04:28 +02:00
Andrej730
c8e9acce8c
ifcfm symlink to dev environment setup script
2024-04-16 11:04:28 +02:00
Andrej730
ea2120aa00
bim.switch_representation to switch to exact representation
...
previously it was switching to the first representation that matches the context, so it wasn't possible to switch to the second one if you had more than 1 representation in the same context
using always both element and representation in `geometry.import_representation` so it will import the exact representation and not the first one found by `ifcopenshell.geom.create_shape`
2024-04-16 11:04:28 +02:00
Andrej730
915a892479
activate_drawing to prioritize already active representation
...
If there are multiple representations in the same subcontext, when it was searching for the representation for some specific subcontext, it would previously always switch to the first representation from the list, now it's going to prioritize the one that's already active.
2024-04-16 11:04:28 +02:00
Andrej730
b83732a92e
bim.create_all_shapes info message
2024-04-16 11:04:28 +02:00
Andrej730
0a309e191d
Bump build version to fix #3889
2024-04-16 11:04:28 +02:00
Andrej730
1c142a34bc
Some UI to mark booleans as manual #3709
...
Currently it allows only to either set all object's booleans to be marked as manual or all of them marked as automatic, can't change some specific boolean.
Short demo - https://imgur.com/a/bczv35N
2024-04-16 11:04:28 +02:00
Andrej730
6a7f8f65c7
move to tools methods for working with manual booleans #3709
...
Also fixed a bug adding boolean when pset is already added and representation type in add_boolean
```
File "\addons\blenderbim\tool\ifc.py", line 201, in execute
IfcStore.execute_ifc_operator(self, context)
File "\addons\blenderbim\bim\ifc.py", line 336, in execute_ifc_operator
result = getattr(operator, "_execute")(context)
File "\addons\blenderbim\bim\module\model\opening.py", line 534, in _execute
data = json.loads(pset["Data"])
File "\addons\blenderbim\libs\site\packages\ifcopenshell\entity_instance.py", line 248, in __getitem__
if key < 0 or key >= len(self):
TypeError: '<' not supported between instances of 'str' and 'int'
```
2024-04-16 11:04:28 +02:00
Andrej730
3c49dd15f7
localize mathutils dependency in tests #3895
...
replaced shapebuilder with general ifcopenshell code in `test_add_boolean` (the only place besides `test_shape_builder` where it was used), that way mathutils dependency in tests is localized only to `test_shape_builder.py`.
added test-safe option to makefile, so github workflow would ignore `test_shape_builder` tests for now and it wouldn't interrupt the entire workflow
2024-04-16 11:04:28 +02:00
Andrej730
df745345d5
refresh_aggregate to show time it took
...
since this can get very time consuming on large projects
2024-04-16 11:04:28 +02:00
Andrej730
cef9ba6001
Fix poll error after 3de9915
...
The error was
Traceback (most recent call last):
File "\blenderbim\bim\module\model\covering.py", line 64, in poll
return element.is_a("IfcCovering")
AttributeError: 'NoneType' object has no attribute 'is_a'
2024-04-16 11:04:28 +02:00
Dion Moult
2cd7df4cbc
Minor fix
2024-04-16 11:04:28 +02:00
Thomas Krijnen
f504053b27
Fixes after gltf ECEF merge
2024-04-16 11:04:21 +02:00
Andrej730
dcc600805c
small fix f38952dc5 #3898 😬
2024-04-16 11:03:55 +02:00
Andrej730
3804b4912e
small refactor
2024-04-16 11:03:55 +02:00
Andrej730
f8a2946355
Support other voiding IfcFeatureElementSubtraction elements #3889
...
Support other voiding IfcFeatureElementSubtraction besides IfcOpeningElement.
2024-04-16 11:03:55 +02:00
Andrej730
4cf6d65e1a
Fixed issue after 19345ff
...
It wasn't considering that EnumerationReference could be None
2024-04-16 11:03:55 +02:00
Thomas Krijnen
64454a001f
Apply handling of openings on IfcFeatureElementSubtraction generically #3889
2024-04-16 11:03:26 +02:00
Andrej730
ede7776a28
black formatting
2024-04-16 10:56:22 +02:00
Andrej730
e1b64fba00
Keep placement axes recalculating profiles #3879
2024-04-16 10:56:22 +02:00
Andrej730
e2077c27dd
small fix add_profile_representation - use of undefined variables
2024-04-16 10:56:22 +02:00
Ryan Schultz
3ae42a074f
Add a preference for particular app to open sheet layout
2024-04-16 10:56:22 +02:00
Bruno Postle
4375a39726
BlenderBIM minor fix after 7107a91
2024-04-16 10:56:22 +02:00
Dion Moult
12000c5aa5
Fix #3870 . Bug where element filtering wasn't initialised properly when loading a camera for the first time.
...
Raster_x/y would only be set after the handler triggers. This is no longer necessary with the new explicit width / height properties.
2024-04-16 10:56:22 +02:00
Dion Moult
6f42c71e88
New verbose option in util get_pset(s) which lets you get ID and class for complex processing.
2024-04-16 10:56:22 +02:00
Bruno Postle
8d25bfca18
BlenderBIM keep camera position on git switch
...
New 'zoom extents' behaviour on IFC load is unwanted when switching
between git revisions
2024-04-16 10:56:22 +02:00
isma3lMB
34a56cc914
Adding support for non ascii characters when reporting
2024-04-16 10:56:22 +02:00
Thomas Krijnen
7e0765639a
Update build-deps.cmd: proj compilation
2024-04-16 10:56:22 +02:00
Massimo Fabbro
21078a80dd
Fix bug in covering/space tool with matrix global and local
2024-04-16 10:56:22 +02:00
Dion Moult
e4adfb863b
See #3884 . Rewrite native geometry handling with a much more robust approach fixing a number of invalid coordinates and simplifying things.
2024-04-16 10:56:22 +02:00
Dion Moult
2c80342676
Fix bug where native meshes had normal smoothing enabled by default
2024-04-16 10:56:22 +02:00
Dion Moult
587c9858a7
Minor fixes to placement utilities for getting mapped item matrixes
2024-04-16 10:56:22 +02:00
Dion Moult
a3acc0540a
First draft of style manager panel
2024-04-16 10:55:58 +02:00
Dion Moult
30850e79b0
Material manager panel now moved to geometry tab
2024-04-16 10:55:58 +02:00
Dion Moult
648d6dfdb9
Representation items panel now shows styles and layers
2024-04-16 10:55:58 +02:00
Dion Moult
89339f807f
Accommodate bug in Revit where mapped representations were missing... well, a representation map.
2024-04-16 10:55:58 +02:00
Dion Moult
1237d82d13
Minor bug fixes with error message when selecting objects in layers without objects
2024-04-16 10:55:58 +02:00
Dion Moult
30f425af17
Modernize zone and type table mappings for COBie 2.4 with Emma Hooper
2024-04-16 10:55:58 +02:00
Thomas Krijnen
3d13b6468d
Use schema_identifier for schema and express rule validation. See #3126
2024-04-16 10:55:58 +02:00
Massimo Fabbro
7863585cce
better UI for covering tool
2024-04-16 10:55:58 +02:00
Massimo Fabbro
15233c4a21
fix generate space and covering where objects weren't created in the right location
2024-04-16 10:55:58 +02:00
Dion Moult
f14df7f523
Begin drafting out a new representation items panel for managing styles and layers properly
2024-04-16 10:55:58 +02:00
Vukas Pajic
e962c67c80
add missing attributes in ids.parse
2024-04-16 10:55:58 +02:00
Massimo Fabbro
dd9be46212
Add generate flooring from cursor and regen ( #3874 )
2024-04-16 10:55:58 +02:00
Dion Moult
f8439ed728
Fix #3873 . Regression due to new importing logic.
2024-04-16 10:55:58 +02:00
Dion Moult
c4fc00ab50
See #1619 . Fix issue where copying non-templated properties didn't work.
2024-04-16 10:55:58 +02:00
Ryan Schultz
48f57c6999
Further clarify the bim.link_ifc command
2024-04-16 10:55:57 +02:00
Dion Moult
b75dc6a056
Minor fix
2024-04-16 10:55:57 +02:00
Dion Moult
00239234ff
Manual booleans are now tracked via a Pset instead of arbitrary class conventions which should fix a bunch of issues.
2024-04-16 10:55:57 +02:00
Dion Moult
49e27788da
Write documentation for placement utility
2024-04-16 10:55:57 +02:00
Dion Moult
7170d9f06f
See #3817 . WARNING: fundamental change. Standardise prioritisation of all context permutations when loading occurrences and types.
2024-04-16 10:55:57 +02:00
Dion Moult
83a43725f9
You can now federate FM spreadsheets using the Blender UI
2024-04-16 10:55:57 +02:00
Ryan Schultz
a6ef2d6152
Adding "Manually Save Representation" and bim.get_representation_ifc_parameters back to Representation Utilities panel
...
from: https://github.com/IfcOpenShell/IfcOpenShell/commit/3a812a9ec156818061c01bd5b2ac2c2bee09faf1#r123820129
2024-04-16 10:55:57 +02:00
Andrej730
8de37b7df4
Minor fix #3862
2024-04-16 10:55:57 +02:00
Ryan Schultz
865c037474
fixed error when creating new walltype in IFC2x3
2024-04-16 10:55:57 +02:00
Massimo Fabbro
698ccceda2
Minor spatial refactor
2024-04-16 10:55:57 +02:00
Massimo Fabbro
bbfd42cf19
Refactor create_space operator and better UI for covering tool
2024-04-16 10:55:57 +02:00
Massimo Fabbro
fee390c7ed
refactor create spaces from walls
2024-04-16 10:55:57 +02:00
Massimo Fabbro
e10b5f6f44
Add predefined type to AuthoringData
2024-04-16 10:55:57 +02:00
Bruno Postle
1c12f2cbf8
BlenderBIM make fca90e9 optional
...
setup_viewport_camera() does a 'zoom extents' on IFC import.
Create a should_setup_viewport_camera option (default True)
2024-04-16 10:55:57 +02:00
Andrej730
531d3b56ed
fixed issue with placing end port for a bend
2024-04-16 10:55:57 +02:00
Andrej730
a101d7e9a0
system decorations - indicate both directions flow
2024-04-16 10:55:57 +02:00
Dion Moult
6ab6567905
Fix #3843 . Regression where IfcMaterialList UI didn't show list of materials.
2024-04-16 10:55:57 +02:00
Andrej730
9f1afdd905
Minor fix after b9a9abd30
2024-04-16 10:55:57 +02:00
Andrej730
f08cbec747
revert flow directions icons to arrows
2024-04-16 10:55:57 +02:00
Andrej730
5922d08322
Minor fix after 78c748df5
...
RuntimeError: Error: Registering panel class: parent 'BIM_PT_tab_placement' for 'BIM_PT_placement' not found
2024-04-16 10:55:57 +02:00
Hilko
995940880d
Update build-deps.cmd
2024-04-16 10:55:57 +02:00
Andrej730
9a88c4235d
Fixed adding opening to meshes of all occurences for non material based representations
...
Mentioned in #3817
2024-04-16 10:55:57 +02:00
Andrej730
ca4d4e026c
Moving some code to tool.Geometry
2024-04-16 10:55:57 +02:00
Dion Moult
be928347c5
You can now select coloured objects in a colourscheme.
2024-04-16 10:55:57 +02:00
Dion Moult
f574a3f65b
New placement panel to consolidate placement data in geometry tab
2024-04-16 10:55:57 +02:00
Dion Moult
9e573f6e62
New geometry tree documentation picture and minor documentation improvements including mention of COBie 2.4 legacy mode in IfcFM.
2024-04-16 10:55:57 +02:00
Dion Moult
83b5494c81
New documentation for shape utility
2024-04-16 10:55:57 +02:00
Dion Moult
9f23f49ecd
Implement projected surface area calculation function in util.shape
2024-04-16 10:55:57 +02:00
Dion Moult
205c6a9263
New drawing width / height / depth / raster DPI controls
2024-04-16 10:55:57 +02:00
Dion Moult
22ba8ce496
You can now easily create orthographic and perspective model drawings from a preset
2024-04-16 10:55:57 +02:00
Dion Moult
3b53246f80
Active drawing panel moved from camera properties to drawing tab.
2024-04-16 10:55:56 +02:00
Thomas Krijnen
a3cecff3d9
#3852 Update pyproject.toml
2024-04-16 10:55:56 +02:00
Andrej730
739b793cd7
test for model.get_manual_booleans() #3709
...
added test that model.get_manual_booleans will ignore IfcBooleanClippings until we find some other solution to distinguish automatic and manual clippings. And some refactor along the way.
2024-04-16 10:55:56 +02:00
Andrej730
edfe0ec580
DumbWallJoiner to work with IfcBooleanResult correctly #3831
...
It wasn't detecting extrusion as part of IfcBooleanResult and was using default wall data as fallback.
Occured after 0044ef5
Solves #3831
Related to #3709
2024-04-16 10:55:56 +02:00
Dion Moult
3ac6660da7
Revise COBie 2.4 mappings for facility, floor, and some of space worksheet in collaboration with Emma Hooper
2024-04-16 10:55:56 +02:00
Dion Moult
0e17cd7130
Fix #3845 . Select similar for predefined type now takes into account inheritance.
2024-04-16 10:55:56 +02:00
Andrej730
39169c4dd8
Fixed issue applying array with Sync Children #3822
2024-04-16 10:55:56 +02:00
taylor
c88b3a3ad8
Fixed model reference
2024-04-16 10:55:56 +02:00
Dion Moult
74ca102f6a
Georeference module now supports IFC2X3 georeferencing / conversion utilities.
2024-04-16 10:55:56 +02:00
Dion Moult
8119b3199a
Document geolocation util and add support for ePSet IFC2X3 fallbacks.
2024-04-16 10:55:56 +02:00
c4rlosdias
31bdc96130
Fix problem in getpsets(facet.py) and added descriptions to specifications (IfcTester)
2024-04-16 10:55:56 +02:00
Dion Moult
f9d45222c8
Fix #3841 . Bump IOS.
2024-04-16 10:55:56 +02:00
Andrej730
cc0ad74e50
bim.flip_object #3803
...
Added new operator bim.flip_object that flips the object by flipping two of its axes and keeps the original placement.
Currently it can be found either from F3 search or from Shift-F hotkey for IfcBeam and IfcColumn in BIM tools.
2024-04-16 10:55:56 +02:00
Andrej730
514af37e0e
.reg file for #3778
...
Forgot to commit the .reg file...
2024-04-16 10:55:56 +02:00
Andrej730
90bade7bb8
Fixed typo
2024-04-16 10:55:56 +02:00
Thomas Krijnen
2eecfd6422
Option to write Earth-Centered Earth-Fixed glTF
2024-04-16 10:55:54 +02:00
Dion Moult
d8c8ac6c15
Clean up IfcFM's Basic preset to be more true to IFC rather than follow naming schemes from stuff like COBie
2024-04-16 10:37:19 +02:00
Dion Moult
e0ae010c46
You can now select and bulk process multiple models using IfcFM in Blender.
2024-04-16 10:37:19 +02:00
Dion Moult
3cb1791525
New IfcPatch recipe to fix Revit bug with occurrence based classifications
2024-04-16 10:37:19 +02:00
Dion Moult
8df28ca8a1
New IfcPatch recipe to fix Revit bug with hardcoded Uniformat classification
2024-04-16 10:37:19 +02:00
Andrej730
d27703bcf2
IfcSverchok docs update urls
2024-04-16 10:37:19 +02:00
Bruno Perdigão
c5192774c3
fixed a bug where the refresh aggregate operator was not working after adding new objects to the parent aggregate
2024-04-16 10:37:19 +02:00
Ryan Schultz
ce3469fd58
fix #3792
2024-04-16 10:37:19 +02:00
Andrej730
750b9201a9
Fixed error creating a door type / window types after 8f6be60c6
2024-04-16 10:37:19 +02:00
Andrej730
eef3cd80b6
Getting drawing group more precisely
...
Previously it was conflicting with other possible groups assigned to the object. It's now even more important since we're actively using groups to save search queries.
Example error caused by this issue - during drawing activation if you had 2 IfcGroups on the drawing element:
draiwng's IfcGroup RelatedObjects attribute was updated, then inverse attrtibute `drawing.HasAssignments` order was updated too (DRAWING IfcGroup now would be positioned second after IfcGroup for search query) and it was leading to errors during filtering current drawing annotations
2024-04-16 10:37:19 +02:00
Andrej730
2d07e4634b
Small fix for 05d4dc566
2024-04-16 10:37:19 +02:00
Andrej730
20f3a6443f
Rever IFC Project
...
https://i.imgur.com/ajQiK8D.png
2024-04-16 10:37:19 +02:00
Andrej730
e2a08b9947
Fixed #3829 occured after ae45e6b
...
similar_openings wasn't reset on each iteration causing moving unrelated openings
2024-04-16 10:37:19 +02:00
Andrej730
984dca6408
Fixed #3832
2024-04-16 10:37:19 +02:00
Sigma Dimensions (Yass)
916917e2bb
fix f2097c0
2024-04-16 10:37:19 +02:00
Sigma Dimensions (Yass)
1fb9223434
importing csv cost schedules now allows using selector queries for effortless product assignments to cost items, and add new ods and csv format templates (in french)
2024-04-16 10:37:19 +02:00
Dion Moult
ed4df72df6
IfcFM can now be used to federate multiple spreadsheets together
2024-04-16 10:37:19 +02:00
Dion Moult
34b0970c6b
Revise COBie 2.4 contact table mapping in collaboration with Emma Hooper
2024-04-16 10:37:19 +02:00
Andrej730
89d3ee995d
Workaround for #3778
2024-04-16 10:37:19 +02:00
Andrej730
1f815619b6
copy_deep to always pass exclude_callback to the recursion
...
It wasn't passing the exclude_callback if attribute of the copied element wasn't a tuple, resulting in duplicated named profiles in case if you'd copy a IfcBooleanClippingResult #3810
For example, how copy_deep of IfcProductDefinitionShape with boolean clipping previously would work:
V IfcShapeRepresentation - copied with exlude_callback (part of .Representations[])
V IfcBooleanClippingResult - copied with exlude_callback (part of .Items[])
X IfcExtrudedAreaSolid - copied without exlude_callback becuase it's part of .FirstOperand (not an array) and we have IfcIShapeProfileDef duplicated
Case without booleanclippings:
V IfcShapeRepresentation - copied with exlude_callback (part of .Representations[])
V IfcExtrudedAreaSolid - copied with exlude_callback, since it's part of .Items[], IfcIShapeProfileDef not duplicated
2024-04-16 10:37:19 +02:00
Andrej730
fc3b68ada4
bim.remove_opening not to force Model/Body/Model_view
...
Now it won't be forcing Model/Body/Model_view representation on the objects if some other context is active for the object.
Indirectly solves #3817
2024-04-16 10:37:19 +02:00
Dion Moult
dfcafed648
Ship with fallback IFC2X3 georeferencing pset
2024-04-16 10:37:19 +02:00
Massimo Fabbro
06b5982b59
fix generate spaces from walls bug
2024-04-16 10:37:19 +02:00
Andrej730
4a507c0827
Print unused elements stats / purge unused elements
...
Added to Purge Data section in Quality Control some tools - https://i.imgur.com/Nz3YoiH.png
1) Print unused elements - useful to investigate how much unused data you have in IFC file.
https://i.imgur.com/9Fkn0JD.png
2) purge unused elements by ifc class, it's doing it in pretty naive way and can be dangerous, so maybe it should be moved to debug section.
2024-04-16 10:37:19 +02:00
Andrej730
dadb9aa8e8
info message for amount of purged elements
2024-04-16 10:37:19 +02:00
Dion Moult
9095e6dd8b
Introductory docs written for IfcFM
2024-04-16 10:37:18 +02:00
Dion Moult
cffc8b519c
New introduction section in IOS docs
2024-04-16 10:37:18 +02:00
Andrej730
b0d3049ddd
Minor fix after 22edbdd
...
Error was:
TypeError: EnumProperty(..., default='cobie'): not found in enum members
Exception in module register(): \3.6\scripts\addons\blenderbim\__init__.py
Traceback (most recent call last):
File "\Blender\3.6\scripts\modules\addon_utils.py", line 369, in enable
mod.register()
File "\3.6\scripts\addons\blenderbim\__init__.py", line 42, in register
blenderbim.bim.register()
File "\3.6\scripts\addons\blenderbim\bim\__init__.py", line 190, in register
bpy.utils.register_class(cls)
ValueError: bpy_struct "BIMFMProperties" registration error: 'engine' EnumProperty could not register (see previous error)
2024-04-16 10:37:18 +02:00
Dion Moult
4719bc0c62
IfcFM now supports writing to Pandas Dataframes
2024-04-16 10:37:18 +02:00
Dion Moult
30495f2688
You can now interact with IfcFM via CLI
2024-04-16 10:37:18 +02:00
Dion Moult
888f9c0864
You can now specify empty formatting for IfcCSV via CLI
2024-04-16 10:37:18 +02:00
Dion Moult
fd80055ef7
Fix #3788 . Fix crash when opening drawing SVGs using webbrowser module which is not recommended and the file is on a Dropbox synced external drive. Now replaced with generic os.startfile / xdg-open / open commands.
2024-04-16 10:37:18 +02:00
Sigma Dimensions (Yass)
88360a4d55
fix loading animation color scheme
2024-04-16 10:37:18 +02:00
Sigma Dimensions (Yass)
070439fa07
run black and forgotten calender utils
2024-04-16 10:37:18 +02:00
Sigma Dimensions (Yass)
09ed0a682c
maintain tasks bar visual property state when tasks properties are reloaded
2024-04-16 10:37:18 +02:00
Sigma Dimensions (Yass)
1cb0294fd6
hide spaces when creating an animation
2024-04-16 10:37:18 +02:00
Sigma Dimensions (Yass)
7f3559437f
fix warning statement when there are no saved animation color schemes
2024-04-16 10:37:18 +02:00
Sigma Dimensions (Yass)
6b25a64976
fix typo
2024-04-16 10:37:18 +02:00
Sigma Dimensions (Yass)
61831c7321
fix missing task types for animations color scheme
2024-04-16 10:37:18 +02:00
Sigma Dimensions (Yass)
22539db737
fix tasks not displaying derived calendar
2024-04-16 10:37:18 +02:00
Andrej730
ac18bba661
system decorations - live time update
...
Decoration data is now updating in live time, caching some parts in Data for performance. Real time update is needed because Data doesn't allow update on objects positions change and later will need real time update for viewport orientation data.
2024-04-16 10:37:18 +02:00
Andrej730
ae483f7aca
Add ports to MEP bends/transitions types instead of occurences
2024-04-16 10:37:18 +02:00
Andrej730
ca2b804337
system decorations to show flow direction
2024-04-16 10:37:18 +02:00
Andrej730
7de1738d30
settings flow direction without jumping to ports
...
https://imgur.com/a/F00tG7g
2024-04-16 10:37:18 +02:00
Dion Moult
06c2b06f7c
Possible optimisation by caching in IfcTester property checks
2024-04-16 10:37:18 +02:00
Claudio Benghi
4fda95a4a6
Fixed most issues with IDS auditing
2024-04-16 10:37:18 +02:00
Ryan Schultz
bf8ee909ff
proposed fix for #3792
2024-04-16 10:37:18 +02:00
Andrej730
a970b40513
Descriptions for add_representation conversion methods
2024-04-16 10:37:18 +02:00
Andrej730
2ebd00eea2
draw calculate_all_quantities hotkey in bim tool ui
...
hotkey was already there, it just wasn't added to UI
https://i.imgur.com/nar5WYI.png
2024-04-16 10:37:18 +02:00
Andrej730
e6019e8519
recalculate fills on applying changes to ifc windows / ifc doors
...
previously if you'd move the window and then change it's parametric data and try to apply it, opening's position wouldn't be updated
2024-04-16 10:37:18 +02:00
Andrej730
7404357995
Moved common duplication operators code to DuplicateMove
...
Now OverrideDuplicateMoveLinked allways will be in sync with OverrideDuplicateMove.
Also fixed the issue when DuplicateMoveLinked for non ifc elements worked the same was DuplicateMove (it was copying mesh data when it's not suppose to).
2024-04-16 10:37:18 +02:00
Andrej730
9c13ae1993
replace Drawing.remove_object_data with more general method
2024-04-16 10:37:18 +02:00
Dion Moult
0b4532b7aa
Purge IfcCOBie deps from build
2024-04-16 10:37:18 +02:00
Dion Moult
407f363648
Fix #3793 . Bug where flipping a wall with generic connection relationships would fail.
2024-04-16 10:37:18 +02:00
Sigma Dimensions (Yass)
5d6a823493
resources code cleanup
2024-04-16 10:37:18 +02:00
Sigma Dimensions (Yass)
2575348c9d
change tests due to new class assignment workflow ref commit 808ff54
2024-04-16 10:37:18 +02:00
Bruno Perdigão
d0177891e4
remove connections with old objects when duplicating aggregates
2024-04-16 10:37:17 +02:00
Dion Moult
b752048baf
We now support separating IFC meshes.
2024-04-16 10:37:17 +02:00
Dion Moult
f6cd6d2591
Splitting by edge now resolved mapped representations, voided, and non-mesh geometries
2024-04-16 10:37:17 +02:00
Sigma Dimensions (Yass)
604373415f
fix parametric duration/ resource update
2024-04-16 10:37:17 +02:00
Dion Moult
034d43502b
Minor fix during loading arrays
2024-04-16 10:37:17 +02:00
Dion Moult
9ef5dc9f8e
Fix #3791 . Add isodate as an optional dependency to ifcopenshell-python.
2024-04-16 10:37:17 +02:00
Sigma Dimensions (Yass)
c5879f2c57
improved template for resource csv imports
2024-04-16 10:37:17 +02:00
Sigma Dimensions (Yass)
8649a1a23d
fix location search filter
2024-04-16 10:37:17 +02:00
Sigma Dimensions (Yass)
609b7840b0
bring back filter operators into new Filter subpanel and change filter by storey to filter by container
2024-04-16 10:37:17 +02:00
Sigma Dimensions (Yass)
e9ed850b78
Proposal to use resource's parent cost, reducing manual insertions
2024-04-16 10:37:17 +02:00
Dion Moult
0fc478f2f3
New debug feature to override the display type.
2024-04-16 10:37:17 +02:00
Dion Moult
0e525dcbee
Autodetect dense meshes to make it faster when loading so users don't need to go into advanced mode.
2024-04-16 10:37:17 +02:00
Andrej730
6bdc4cd607
Moving common code for duplication operators
2024-04-16 10:37:17 +02:00
Andrej730
b58c25fdc9
Duplicate the array if all it's elements are selected #3763
...
Demo - https://imgur.com/a/0wYZOPl
2024-04-16 10:37:17 +02:00
Andrej730
48a88835dd
Setup arrays constraints on loading .ifc #3753
2024-04-16 10:37:17 +02:00
Andrej730
425a31ffa1
Clear constraint and transform lock on duplicating array child object
...
Previously it was locked even though it's not part of an array anymore.
2024-04-16 10:37:17 +02:00
A. R. S
2691e8a082
Try to get unit from EnumerationReference for IfcPropertyEnumeratedValue
2024-04-16 10:37:17 +02:00
Dion Moult
c5ec9a66f3
Refactor IfcFM to make it easier to exclude things
2024-04-16 10:37:17 +02:00
Dion Moult
b92c2b2dbc
Finally purge IfcCOBie to be superseded by IfcFM
2024-04-16 10:37:17 +02:00
Andrej730
1f20330772
removing arrays if all array elements are selected #3781
...
I think there is still some space to improve but it should cover the main problem with need going to array section to remove it
Demo - https://imgur.com/a/9Z3t5Q8
2024-04-16 10:37:17 +02:00
Andrej730
c1553247c1
Fixed error editing pset with prop with empty prop.NominalValue
...
Traceback:
```
Error: Python: Traceback (most recent call last):
File "\blenderbim\bim\module\pset\operator.py", line 103, in execute
self.load_from_pset_data(pset)
File "\blenderbim\bim\module\pset\operator.py", line 226, in load_from_pset_data
value = prop.NominalValue.wrappedValue
AttributeError: 'NoneType' object has no attribute 'wrappedValue'
```
2024-04-16 10:37:17 +02:00
Massimo Fabbro
d3a37bf0eb
Add model test about manual booleans
2024-04-16 10:37:17 +02:00
Massimo Fabbro
1154d60921
Added calculating quantities function for Qto_DuctSegmentBaseQuantities and Qto_DuctFittingBaseQuantities
2024-04-16 10:37:17 +02:00
Ryan Schultz
54e8421d3d
small fix for 9e67565
2024-04-16 10:37:17 +02:00
Vukas Pajic
37ed67da56
typo
2024-04-16 10:37:17 +02:00
Vukas Pajic
aabeba54f9
Update ids validation
...
see https://github.com/IfcOpenShell/IfcOpenShell/issues/2933
2024-04-16 10:37:17 +02:00
Sigma Dimensions (Yass)
5ca6de023a
small fix when calculating resource work
2024-04-16 10:37:17 +02:00
Dion Moult
672a2c4483
Autogenerate API docs for more modules.
2024-04-16 10:37:17 +02:00
Dion Moult
2587e29750
Forgot to commit BCF docs
2024-04-16 10:37:17 +02:00
Dion Moult
9736d08064
Migrate more documentation to the official Sphinx docs and mention IfcOpenShell-WASM as an installation option
2024-04-16 10:37:17 +02:00
Ryan Schultz
33b5672344
Refresh aggregate from selecting a part
2024-04-16 10:37:17 +02:00
Andrej730
590c3f0384
mep system decorators - basic implementation
...
All it does currently it draws all MEP elements connections in viewport. It also highlights with green color all elements connected to the active object
Demo - https://imgur.com/a/haAQeWt
2024-04-16 10:37:17 +02:00
Andrej730
1ae1e4c4f9
fixed error in api.system.disconnect_port
...
Error was:
TypeError: can only concatenate tuple (not "list") to tuple
2024-04-16 10:37:17 +02:00
Andrej730
9e7d04f337
get_viewport_context to also return space
2024-04-16 10:37:17 +02:00
Andrej730
9f1bfe2868
bim.draw_system_arrows updated for ifc4
2024-04-16 10:37:17 +02:00
Sigma Dimensions (Yass)
0c72ee9b0f
improve pset editing workflow and use refactored core and tool functions
2024-04-16 10:37:16 +02:00
Sigma Dimensions (Yass)
f79e6ada9b
cascade schedule when adding a sequence relationship
2024-04-16 10:37:16 +02:00
Sigma Dimensions (Yass)
a96e7d97ac
fix count_working_days when the start and finish are the same same hours
2024-04-16 10:37:16 +02:00
Sigma Dimensions (Yass)
8549debdc9
fix calculating critical path to consider:
...
- parent tasks with sequence assignments #3772
- tasks that are constrained by a schedule start
2024-04-16 10:37:16 +02:00
Sigma Dimensions (Yass)
46c775c585
fix cascading schedule when parent tasks have sequence relationships #3772
2024-04-16 10:37:16 +02:00
Bruno Perdigão
79c0779449
fix rotation from refresh aggregate operator
2024-04-16 10:37:16 +02:00
Dion Moult
39ee129724
Datatype checks in IfcTester are now case insensitive
2024-04-16 10:37:16 +02:00
Andrej730
ebd02f20db
Exposed some MEP operators in BIM Tool UI
...
https://i.imgur.com/U61QqlQ.png
2024-04-16 10:37:16 +02:00
Andrej730
0c57f8ea39
bim.mep_connect_elements to connect elements by the closest ports
...
Previously it was looking for exact match. Now operator also adjusts connected ports
2024-04-16 10:37:16 +02:00
Andrej730
f516c59784
override_outliner_delete poll error fix
2024-04-16 10:37:16 +02:00
Andrej730
39e622b559
info message for refresh_aggregate
2024-04-16 10:37:16 +02:00
Dion Moult
dd0e997935
You can now add bSDD properties when assigning bSDD classifications
2024-04-16 10:37:16 +02:00
Vukas Pajic
3e760e9406
Fix case when ids_dict has key but value is None
2024-04-16 10:37:16 +02:00
Dion Moult
855ee4c48e
Minor fix
2024-04-16 10:37:16 +02:00
Dion Moult
af9ce9d8fd
Fix crash where IFCTester read directly from IFC in the UI
2024-04-16 10:37:16 +02:00
Dion Moult
a7f33d8172
Basic integration of bSDD with BlenderBIM Add-on: you can now assign classification references from the bSDD and set the active bSDD domain.
2024-04-16 10:37:16 +02:00
Dion Moult
28ddd2aefc
Implement classification searching in bSDD library
2024-04-16 10:37:16 +02:00
Andrej730
10e19d16bd
select array parent / all array objects to work without parent guid argument
...
now it's getting parent guid from the currently active object, not from provided guid argument - so now it's possible to add those operators to quick favorites
2024-04-16 10:37:16 +02:00
Ryan Schultz
d4274e0e20
Have bim.select_aggregate make the aggregate empty the active object, as well.
2024-04-16 10:37:16 +02:00
Dion Moult
7e10d520f4
IfcTester now includes percentages per requirement
2024-04-16 10:37:16 +02:00
Sigma Dimensions (Yass)
145f601a2e
purge cost schedules
2024-04-16 10:37:16 +02:00
Dion Moult
a251816de0
Accommodate potential manual deletion of EPset drawing.
2024-04-16 10:37:16 +02:00
Dion Moult
f1d2bd0eac
Fix #3752 . Accommodate situations where layouts don't match IFC.
2024-04-16 10:37:16 +02:00
Andrej730
cfebf2549b
Associate IFC files with BlenderBIM on Windows
...
Buttons located in addon preferences - https://i.imgur.com/Unp4P9L.png
Just waiting for this to break somehow...
It's not completely automatic now and it doesn't create assign special icon for IFC files yet.
2024-04-16 10:37:16 +02:00
Andrej730
34a881da3a
Remove orphaned IfcPropertyEnumeration
...
Noticed a couple hundreds of orphaned IfcPropertyEnumeration in my .ifc like below 😁
IFCPROPERTYENUMERATION('Status',(IFCLABEL('NEW'),IFCLABEL('EXISTING'),IFCLABEL('DEMOLISH'),IFCLABEL('TEMPORARY'),IFCLABEL('OTHER'),IFCLABEL('NOTKNOWN'),IFCLABEL('UNSET')),$);
2024-04-16 10:37:16 +02:00
Andrej730
ecf3da1d86
fixed bug creating transition shapes
...
it was accidentally assigning extrusion vector instead of an offset
2024-04-16 10:37:16 +02:00
Andrej730
624d1fdc3a
Clean up orphaned meshes
...
- delete_ifc_project
- bim.add_constr_type_instance
- adding transitions and bends
- add profile / slab / wall
2024-04-16 10:37:16 +02:00
Andrej730
654f84ffb7
Save last active context editing doors/windows, solves #3735
...
previously - https://imgur.com/a/gri6zMk
now - https://imgur.com/a/GIwZP6c
2024-04-16 10:37:16 +02:00
Sigma Dimensions (Yass)
788f2d2044
MSP calendar exceptions are now also imported #3766
2024-04-16 10:37:16 +02:00
Sigma Dimensions (Yass)
d7887de3e5
fix msp .xml import: exception days for a standard working week #3766
2024-04-16 10:37:16 +02:00
Massimo Fabbro
da8cd9daba
Add new covering tool. Mock up and initial functions
2024-04-16 10:37:16 +02:00
Massimo Fabbro
4ed901204e
Partial spatial tool refactor
2024-04-16 10:37:16 +02:00
Andrej730
ed9e45bb7d
For parametric doors and windows remove "Edit Profile" button from BIM Tool UI to avoid confusion
2024-04-16 10:37:16 +02:00
Andrej730
484758e564
Add starting/saving IFC project to Blender F4 file context menu
...
https://i.imgur.com/FDvZZwc.png
2024-04-16 10:37:15 +02:00
Andrej730
37f1f6d125
MEP bends - fixed bunch of bugs related to adjusting already existing bends types
2024-04-16 10:37:15 +02:00
Dion Moult
6b15b08835
Project advanced mode filtering now uses new filter syntax
2024-04-16 10:37:15 +02:00
Andrej730
54dcf75a7e
Ooops, forgot to remove debug shape creation
2024-04-16 10:37:15 +02:00
Andrej730
9e667013a3
transitions - fixed bug finding compatible fitting
...
For example, there was a fitting from segment of type A to the segment of type B with start/end transition lengths equal a/b respectively.
And then if you'd try to create a transition from B to A and start/end transition lengths being equal to b/a, previously BBIM wouldn't be able to find that already existing fitting is still compatible.
2024-04-16 10:37:15 +02:00
Andrej730
72d5350b83
mep operators - clamp properties below zero
2024-04-16 10:37:15 +02:00
Andrej730
5f94e2b251
bends - support for zero radius bends
2024-04-16 10:37:15 +02:00
Dion Moult
7f968d6eab
IfcDiff can now visualise across linked IFCs
2024-04-16 10:37:15 +02:00
Dion Moult
4131e595bd
Make IfcDiff more forgiving when invalid geometry occurs. See #3755 .
2024-04-16 10:37:15 +02:00
Andrej730
fe99b59209
Fixed bug using tab editing arbitrary profile
...
It was assuming we were editing extrusion profile and therefore was giving errors.
2024-04-16 10:37:15 +02:00
Dion Moult
34e4ecb8a4
Include buildingSMART psets in IfcFM Basic preset
2024-04-16 10:37:15 +02:00
Dion Moult
c1bb3e482e
Minor fix
2024-04-16 10:37:15 +02:00
Dion Moult
e03a4bab23
More minor fixes to IfcFM basic preset
2024-04-16 10:37:15 +02:00
Dion Moult
b0f1c4d684
Minor fixes to IfcFM
2024-04-16 10:37:15 +02:00
Andrej730
f1184e6182
Revert "Replace currently selected objects with occurences of type"
...
This reverts commit 58199ef7c9 .
2024-04-16 10:37:15 +02:00
Andrej730
4b48b30c3b
bends - consider profile dimensions searching for compatible fitting
...
So basically now it won't reuse a bend fitting created for the same profile but with different dimension.
2024-04-16 10:37:15 +02:00
Andrej730
37eb1751b4
bends - adjusting compatible fitting rotation to match the segments
...
Demo - https://imgur.com/a/cYdWy9X (note that no bend types created in the process - it's just adjusting the type created for the first two segments).
2024-04-16 10:37:15 +02:00
Andrej730
14aa32b04a
Replace currently selected objects with occurences of type
...
Added operator to replace currently selected objects with occurences of the chosen type. I kept doing this from the code and thought it could be generally useful.
It's working pretty naive now and just replacing objects with occurences preserving the original transform (location/rotation/scale), nothing else is preserved.
Demo - https://imgur.com/a/qm8a6Ns
PS Hopefully I'm not reinventing the wheel and not missed some other similar operator
2024-04-16 10:37:15 +02:00
Andrej730
fc2aa41717
bends - considering parametric data searching for compatible fitting
2024-04-16 10:37:15 +02:00
Thomas Krijnen
42da8aba83
Correct xsi:schemaLocation
2024-04-16 10:37:15 +02:00
Thomas Krijnen
79c8594f8f
Update IDS.xsd
2024-04-16 10:37:15 +02:00
Dion Moult
e04b69717b
New FM module in BlenderBIM Add-on for interacting with IfcFM.
2024-04-16 10:37:15 +02:00
Dion Moult
4eaf9c689d
Implement COBie documents and attributes
2024-04-16 10:37:15 +02:00
Andrej730
5715a14b17
bends - use IfcArcIndex to define bends curves
...
instead of manually generating polylines of segments
2024-04-16 10:37:15 +02:00
Andrej730
e7b6fad348
bends - support for start and end segments
2024-04-16 10:37:15 +02:00
Andrej730
959f05d154
shapebuilder - replace y extrusion args with shortcut for readibility
2024-04-16 10:37:15 +02:00
Andrej730
7cef9ffe0e
Bends - replace faceset with simple extrusion
2024-04-16 10:37:15 +02:00
Andrej730
5180f40245
MEP bends - support for circular profiles
...
Demo - https://imgur.com/a/XQBOvGz
2024-04-16 10:37:15 +02:00
Dion Moult
b25fae8ca8
Don't strip selector query keys to allow for explicit "mistakes" in key names.
2024-04-16 10:37:15 +02:00
Dion Moult
728714dae3
Minor fix in IfcCSV where strings didn't get auto quoted.
2024-04-16 10:37:15 +02:00
Dion Moult
d27e0bdf10
New util.system.get_port_element function.
2024-04-16 10:37:15 +02:00
Dion Moult
cc1a2db3ff
Allow optional second arguments to substr formatting.
2024-04-16 10:37:15 +02:00
Dion Moult
cb264bac6e
Implement COBie assemblies, connections, spares, resources, and jobs.
2024-04-16 10:37:15 +02:00
Dion Moult
8976cf5c52
Implement COBie systems
2024-04-16 10:34:30 +02:00
Andrej730
afeca7d598
Fixed top and center alignment in the schedule
...
Solves #3599
Before - https://i.imgur.com/9s7MxH5.png
After - https://i.imgur.com/ojDj09G.png
Inkscape - https://i.imgur.com/pWF4Ouy.png
2024-04-16 10:34:30 +02:00
Andrej730
315e8a436a
MEP bends - more robust start/end points detection
...
also support for bends with angles > 90 degrees and some other bugs fixed
2024-04-16 10:34:30 +02:00
Dion Moult
3b070b755a
Implement COBie type and component tables
2024-04-16 10:34:30 +02:00
Dion Moult
2474b238a8
Deprecate purge_module_data in favour of newer refresh_ui_data function.
2024-04-16 10:34:30 +02:00
Dion Moult
913ccd9289
Improve usability of pset template UI by removing save button and using new explicit applicable entity defaults to mitigate possible invalid pset templates.
2024-04-16 10:34:30 +02:00
Dion Moult
d39df4a933
Minor UI bugfix where pset template files sometimes displayed with truncated filenames
2024-04-16 10:34:30 +02:00
Dion Moult
607e367448
Fix bug where you couldn't add psets that were inherited.
2024-04-16 10:34:30 +02:00
Dion Moult
61475d0846
Implement COBie zones
2024-04-16 10:34:30 +02:00
Andrej730
12c1d7991a
Spatial Manager - try to preserve the selection on loading the manager
...
Also noticed in Sigma Dimensions video that every time user deletes a storey or applies new elevation the selection was jumping to the first storey. Now it's going to be more natural.
Before - https://imgur.com/a/gbn7ryQ
After - https://imgur.com/a/QX2RulF
2024-04-16 10:34:30 +02:00
Andrej730
6700270600
Units formatting for Spatial Manager
...
Noticed in Sigma Dimensions video that we have some floating point garbage displayed in the Spatial Manager UI and I've added some simple formatting.
Now - https://i.imgur.com/eM1rDDu.png
Before - https://i.imgur.com/ySln5uU.png
2024-04-16 10:34:29 +02:00
Dion Moult
c9c449978d
Reimplement IfcCOBie contacts, facilities, floors, and spaces in IfcFM.
2024-04-16 10:34:29 +02:00
Andrej730
602ec57cba
Considering parametric data for fitting #3695
...
Search for compatible fitting wasn't taking into account that maybe fitting used for the same segments but fitting's parameters are not the same (such as start_length, end_length, angle and offset between profiles).
I also forgot to promote transition angle to operator's property😬
2024-04-16 10:34:29 +02:00
Andrej730
a1bca1bb4a
Fixed issue creating slabs in IFC2X3 #3696
...
Error traceback is below - it was trying to set IfcExtrudedAreaSolid.Position to None when in IFC2x3 Position wasn't optional, so now in IFC2X3 it's going to have some default position
RuntimeError: Error: Python: Traceback (most recent call last):
File "\bim\module\model\product.py", line 123, in execute
return IfcStore.execute_ifc_operator(self, context)
File "\bim\ifc.py", line 336, in execute_ifc_operator
result = getattr(operator, "_execute")(context)
File "\bim\module\model\product.py", line 148, in _execute
if self.generate_layered_element(ifc_class, relating_type):
File "\bim\module\model\product.py", line 274, in generate_layered_element
obj = slab.DumbSlabGenerator(relating_type).generate()
File "\bim\module\model\slab.py", line 143, in generate
return self.derive_from_cursor()
File "\bim\module\model\slab.py", line 147, in derive_from_cursor
return self.create_slab()
File "\bim\module\model\slab.py", line 179, in create_slab
representation = ifcopenshell.api.run(
File "\libs\site\packages\ifcopenshell\api\__init__.py", line 66, in run
result = usecase_class(ifc_file, **settings).execute()
File "\libs\site\packages\ifcopenshell\api\geometry\add_slab_representation.py", line 42, in execute
[self.create_item()],
File "\libs\site\packages\ifcopenshell\api\geometry\add_slab_representation.py", line 58, in create_item
extrusion = self.file.createIfcExtrudedAreaSolid(
File "\libs\site\packages\ifcopenshell\file.py", line 337, in create_entity
e[idx] = arg
File "\libs\site\packages\ifcopenshell\entity_instance.py", line 260, in __setitem__
self.wrapped_data.setArgumentAsNull(idx)
File "\libs\site\packages\ifcopenshell\ifcopenshell_wrapper.py", line 4929, in setArgumentAsNull
return _ifcopenshell_wrapper.entity_instance_setArgumentAsNull(self, i)
RuntimeError: Attribute not set
2024-04-16 10:34:29 +02:00
Andrej730
08ace6616c
automatically adjust viewport camera on loading ifc
...
It will make sure you'll be able to see the project's elements in viewport when it's loaded (same way as if you'd select all objects and hit "Numpad .").
Couldn't find any way to make it work without enablging / disabling selection - https://projects.blender.org/blender/blender/issues/112141
2024-04-16 10:34:29 +02:00
Andrej730
b5c80ebaab
Fixed issue using mitre with small angles between walls ( #3721 )
...
Normalization is unrelated, just added to be safe.
2024-04-16 10:34:29 +02:00
Andrej730
ee4568b7d2
some DumbWallJoiner.join() refactor
2024-04-16 10:34:29 +02:00
Dion Moult
271161f00f
Minor fix after 6887210
2024-04-16 10:34:29 +02:00
Dion Moult
01c1023af2
Fix bug when casting to tessellation for invalid IFCs which don't use material sets properly.
2024-04-16 10:34:29 +02:00
Dion Moult
1a59b4913e
IfcFM now uses Openpyxl and supports xlsx. Reorder columns to be more logical and group similar data types together (at least for me).
2024-04-16 10:34:29 +02:00
Dion Moult
2762d9c47f
Fix #3733 . Fix round function precision error.
2024-04-16 10:34:29 +02:00
Dion Moult
5edc6c4d8a
Enable Sphinx auto section labels. Minor doc link fix.
2024-04-16 10:34:29 +02:00
Dion Moult
073491a78a
For convenience, rounding to an integer value now also casts to integer.
2024-04-16 10:34:29 +02:00
Ryan Schultz
fa08d9d01e
Update installation.rst
2024-04-16 10:34:29 +02:00
Dion Moult
a405b36167
ResetAbsoluteCoordinates IfcPatch recipe can now choose whether to reset placements, geometry, or both points.
2024-04-16 10:34:29 +02:00
Dion Moult
678dce8fc0
Fix bug where unedited mesh objects were still tagged as edited which led to unnecessary processing prior to drawing generation or saving.
2024-04-16 10:34:29 +02:00
Dion Moult
292194c4f6
You can now customise the display of empty strings in IfcCSV.
2024-04-16 10:34:29 +02:00
Dion Moult
c4eed78ca1
Update documentation with new selector keys.
2024-04-16 10:34:29 +02:00
Dion Moult
23da63b9a6
Big clean up to IfcFM. It's almost usable!
2024-04-16 10:34:29 +02:00
Dion Moult
62b2b9983f
Fix #3682 . You can now tag setout points with dynamic xyz / enh values.
2024-04-16 10:34:29 +02:00
Dion Moult
e8b52d3d93
Drawing text annotation now use the new format functions instead of executing arbitrary code.
2024-04-16 10:34:29 +02:00
Dion Moult
b792fff98c
New substr formatting function.
2024-04-16 10:34:29 +02:00
Dion Moult
e7a90b5597
You can now choose both input and output units for imperial formatting
2024-04-16 10:34:29 +02:00
Ryan Schultz
41c6830ee0
Update ifc_classes_suggestions.json
2024-04-16 10:34:29 +02:00
Dion Moult
ee2f5fc646
Revert "Spreadsheet Import/Export: Fix feet and inch formatting"
...
This reverts commit 921d412fc7 .
2024-04-16 10:34:29 +02:00
Dion Moult
fbe52287fc
Revert "Small fix for feet and inch formatting on Spreadsheet Import/Export"
...
This reverts commit 7935bd22c2 .
2024-04-16 10:34:29 +02:00
Dion Moult
396fdc7806
Fix #3722 . Fix ifcopenshell pypi distribution to use modern manylinux tag for glibc 2.31.
2024-04-16 10:34:29 +02:00
Ryan Schultz
bf023370ef
Small fix for feet and inch formatting on Spreadsheet Import/Export
2024-04-16 10:34:29 +02:00
Andrej730
d5e222d8de
remove the orphaned data created on object duplicate
...
orphaned mesh still had ifc_definition_id of the original object and could have caused issues in theory
2024-04-16 10:34:29 +02:00
Andrej730
21aad4c4f5
Update status visibility automatically #3721
2024-04-16 10:34:29 +02:00
Dion Moult
fbad0eeac2
Fix #3705 . Fix ambiguity in using commas in unquoted strings in facet selector.
2024-04-16 10:34:28 +02:00
Dion Moult
66032dd8f3
Fix #3712 . Fix bug where grid axes couldn't be duplicated.
2024-04-16 10:34:28 +02:00
Dion Moult
de04c71335
Improve hello world documentation to be more beginner friendly
2024-04-16 10:34:28 +02:00
Andrej730
aa71025e7f
hotfix for ca4efa6e5
2024-04-16 10:33:34 +02:00
Andrej730
eeb7c9b010
Remove operator's name from set_tab tooltip #3704
2024-04-16 10:33:34 +02:00
Andrej730
98503179d9
bim.mep_add_bend
...
Added operator to create bend fittings between objects, it's still work in progress and now it only supports rectangular profiles.
Small demo - https://imgur.com/a/vM7hnJa
2024-04-16 10:33:34 +02:00
Andrej730
3827e1d267
notify about unsupported transition case
2024-04-16 10:33:34 +02:00
Dion Moult
ed9f50298c
See #3700 . Fix issue in drawing include filter where "addition" selections like GlobalIds and classes didn't have any impact.
2024-04-16 10:33:34 +02:00
Dion Moult
e336c63005
You can now load 2D point clouds.
2024-04-16 10:30:32 +02:00
Dion Moult
59c8326c51
See #3682 . You can now add symbols and multisymbols (i.e. one vertex per symbol) annotations. New default symbols for setout points in demo library.
2024-04-16 10:30:32 +02:00
Andrej730
1a3ac79dc2
Fixed bug with adding obstruction fittings
2024-04-16 10:30:22 +02:00
Andrej730
284feb5d67
couple descriptions for setting north
2024-04-16 10:30:22 +02:00
Dion Moult
2f6e702809
Fix #3470 . Fix bug where hppfcl for IfcClash was incorrectly bundled for Windows.
2024-04-16 10:30:22 +02:00
Dion Moult
7b0a10dc13
Fix bug where models that might have invalid shapes or 2D far shapes might break georeferencing and model loading.
2024-04-16 10:28:25 +02:00
Dion Moult
2bc7b98806
Minor fix
2024-04-16 10:28:25 +02:00
Dion Moult
2743d18f50
IfcTester BCFs now include viewpoints for occurrences
2024-04-16 10:28:25 +02:00
Dion Moult
69d9388f61
Add filepath popup when saving IDS reports to BCF
2024-04-16 10:28:25 +02:00
Dion Moult
39ec1f9ea0
Bump IOS
2024-04-16 10:28:25 +02:00
Dion Moult
2ea3704d96
Update BBIM tester module UI to be compatible with new IfcTester upgrades
2024-04-16 10:28:25 +02:00
Dion Moult
283961fc72
IfcTester now supports much more granular statistic reports and more detailed / beautiful HTML reports.
2024-04-16 10:28:25 +02:00
Dion Moult
68025d8204
Fix #3649 . Increase profile threshold.
2024-04-16 10:28:25 +02:00
Dion Moult
aacf902ce0
Fix #3667 . Allow removing drawings if the sheet hasn't yet been generated or manually removed.
2024-04-16 10:28:25 +02:00
Dion Moult
116ad507cf
Fix #3647 . Fix bug where Windows .exe suffix needed to be explicit in commands. No more eval, and commands must now be provided in json form, and variables should be given as simple strings.
2024-04-16 10:28:25 +02:00
Sigma Dimensions (Yass)
f1f5b7627c
fix failed context for hotkey Shitf+C #3676
2024-04-16 10:28:25 +02:00
dushyant basson
429f468e47
Update src/qtviewer/ParseIfcFile.cpp
...
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2024-04-16 10:28:25 +02:00
dushyant basson
504307791c
Update src/qtviewer/ParseIfcFile.cpp
...
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2024-04-16 10:28:25 +02:00
dushyant basson
ac8db0e21b
Revert "Updated included header files"
...
This reverts commit 65f86d929e .
2024-04-16 10:28:25 +02:00
dushyant basson
74d790a28e
Updated included header files
2024-04-16 10:28:25 +02:00
Dushyant Basson
14454d1b78
Added output panel (for debug info, etc.)
2024-04-16 10:28:25 +02:00
Dushyant Basson
98102b9df0
added IFCOS libraries; Qt include dir
2024-04-16 10:28:25 +02:00
dushyant basson
3783729900
Rename files - fixing case change
2024-04-16 10:26:59 +02:00
dushyant basson
eefe821d0a
Updated to use Qt6; Created initial structure of the viewer with OpenGL widget
2024-04-16 10:26:58 +02:00
Dion Moult
1878dedbd4
Fix #3531 . See #3660 . Exclude 2D elements from generating shapely surface polygons in drawings.
2024-04-16 10:26:58 +02:00
Thomas Krijnen
5af30b6f07
#3660 Oops... propagate setting
2024-04-16 10:26:58 +02:00
Dion Moult
2ec1a97a00
Fix #3002 . You can now have metadata classes on projection lines.
2024-04-16 10:26:58 +02:00
Dion Moult
7bcddb8951
Bump IOS to take advantage of setSegmentProjection
2024-04-16 10:26:58 +02:00
Andrej730
0001a1f98b
Fixed #3666 after 101972f
2024-04-16 10:26:51 +02:00
Thomas Krijnen
09f68ae556
Update validate.py - catch some runtime errors
2024-04-16 10:26:51 +02:00
Thomas Krijnen
100ef1d375
Update ci.yml
2024-04-16 10:26:51 +02:00
Thomas Krijnen
ecfeadbbd5
Update ci-py-only.yml
2024-04-16 10:26:51 +02:00
Thomas Krijnen
dc84f84e86
#3660 setSegmentProjection() / --svg-segment-projection options
2024-04-16 10:26:51 +02:00
Dirk Olbrich
941d25d398
docs: fix backslash in cmake command
2024-04-16 10:26:51 +02:00
Dion Moult
b33131db44
Fix #3644 . Annotation matrixes properly calculated now for RCPs.
2024-04-16 10:26:51 +02:00
Bruno Postle
0a69e3668e
BlenderBIM keep view when switching git revision
2024-04-16 10:26:51 +02:00
Sigma Dimensions (Yass)
cd890b2c2e
fix issue where add materials operator would only show when a material is selected
2024-04-16 10:26:51 +02:00
Sigma Dimensions (Yass)
41986fb051
fix toggle link selectability and visibility when linked IFCs use a relative path
2024-04-16 10:26:51 +02:00
Sigma Dimensions (Yass)
e2ab4f1ed8
fix loading and unloading linked IFCs with a relative path
2024-04-16 10:26:51 +02:00
Sigma Dimensions (Yass)
68dcbd8e5c
fix various issues by preventing data from linked IFCs to be saved in current project
2024-04-16 10:26:51 +02:00
Sigma Dimensions (Yass)
218d51cbc9
Maintain active status filters override when activating 3D model during drawing worfklows
2024-04-16 10:26:51 +02:00
Andrej730
a6f96fe0ad
IfcElementType now appears first in Object Metadata
...
Because it's seems more general workflow to create types than just assign classes.
Example - https://i.imgur.com/DD8twX3.png
2024-04-16 10:26:51 +02:00
Andrej730
2808715406
Rename IFC AU Library to IFC Furniture library
...
Just thought watching BIM Voice last video that some people may overlook it like something Australia specific with "IFC AU Library" name.
2024-04-16 10:26:51 +02:00
Sigma Dimensions (Yass)
d22095f603
fix removing drawings from sheets when deleting drawings #3645
2024-04-16 10:26:51 +02:00
Ryan Schultz
676b16bc29
Spreadsheet Import/Export: Fix feet and inch formatting
2024-04-16 10:26:51 +02:00
Andrej730
f573871493
shape_builder docs test
2024-04-16 10:26:51 +02:00
Christoph Mellueh
cac6ea6263
add build to Makefile and use it in bcf-pypi Workflow
2024-04-16 10:26:51 +02:00
Andrej730
f7b46f1265
fill-bg for text instead of the entire symbol by default #3594
...
Before - https://i.imgur.com/OsQycgW.png
After - https://i.imgur.com/rZvXIoT.png
2024-04-16 10:26:51 +02:00
Chetan
76708dd8ce
Create constants ELEMENT_ARRAY_BUFFER and ARRAY_BUFFER to allow for more descriptive bufferview construction. Change the bufferViewId variable from a static variable to a member variable because python instances of IfcOpenShell can have multiple serializers open at any given time. This commit also includes some minor code reformatting and code comments explaining the changes done. Finally integer constants GLB_FILE_HEAER, GLB_JSON_HEADER, GLB_BINARY_CHUNK_HEADER were added to make the glb file header creation more descriptive
2024-04-16 10:26:48 +02:00
Chetan
f4cce9878f
Give each accessor its own buffer view to improve the memory and rendering efficiency of the glb file
2024-04-16 10:25:02 +02:00
Sigma Dimensions (Yass)
f7609132b4
run black and fix silly code #3652
2024-04-16 10:25:02 +02:00
Sigma Dimensions (Yass)
2e5819ca0a
you can now reload linked IFCs #3652
2024-04-16 10:25:02 +02:00
Sigma Dimensions (Yass)
2e8a282276
Move grids panel under Project Setup
2024-04-16 10:25:02 +02:00
Dion Moult
8114df0263
Write documentation describing facet selector and element query syntax.
2024-04-16 10:25:02 +02:00
Dion Moult
4463b44d63
Bump IOS and enable unify inputs.
2024-04-16 10:25:02 +02:00
Dion Moult
54a0e4ebff
Minor fix to use new regex syntax in select similar dialog.
2024-04-16 10:25:02 +02:00
Dion Moult
628005333d
Minor fixes, and IfcCSV now uses pandas to import ODS/XLSX for more robust importing.
2024-04-16 10:25:02 +02:00
Dion Moult
2298201e50
Selector element key queries now allow for regex matching, and single regex matches return that only item, not a list with one item in it.
2024-04-16 10:25:02 +02:00
Dion Moult
a30b2dff31
Fix #3587 . IfcCSV now supports custom formatting functions.
2024-04-16 10:25:02 +02:00
Gorgious56
8f19e04ccc
Fix #3641 : Error when creating roof type
2024-04-16 10:25:02 +02:00
Thomas Krijnen
0b673f725e
#3158 Fix unify inputs
2024-04-16 10:25:02 +02:00
Thomas Krijnen
b4045aa960
Update draw.py --with-unify-inputs [True]
2024-04-16 10:25:02 +02:00
Andrej730
4dba048fa0
small info message on bim.get_representation_ifc_parameters
...
just to notify that it worked but haven't found any parameters
2024-04-16 10:25:02 +02:00
Dion Moult
6721468bcf
Fix incorrect implementation of regex matching
2024-04-16 10:25:02 +02:00
Dion Moult
279ddc639b
Fix #3635 . Minor fix.
2024-04-16 10:25:02 +02:00
Dion Moult
f4fda85dfa
Accommodate invalid Revit models where they have invalid material relationships.
2024-04-16 10:25:02 +02:00
Dion Moult
1fc4b921e6
Fix failing tests and optimise brick tests.
2024-04-16 10:25:02 +02:00
Andrej730
f3e38e8884
fixed errors after 13309cb8c #3624
...
for example it was throwing errors when using WindowTool you selected a wall and it would try to assign current type to wall
2024-04-16 10:25:01 +02:00
rileywong311
42be4344a1
Update core/test_brick.py
2024-04-16 10:25:01 +02:00
rileywong311
97ee85aa87
Update tool/test_brick.py
2024-04-16 10:25:01 +02:00
rileywong311
99b99fbf2c
Fix bug where split screen selection from previous page is out of range on the next
2024-04-16 10:25:01 +02:00
rileywong311
c27d9ad382
Undo indentation from commit <e08283350> (did not account for no name existing)
2024-04-16 10:25:01 +02:00
rileywong311
7220dd024e
Fix Brick core
...
- Refresh viewer now reloads both screens by default
- Rename "add_namespace" to "add_brick_namespace"
- Fix error where "view_brick_class" was run instead of "brick.run_view_brick_class"
2024-04-16 10:25:01 +02:00
rileywong311
6aa6f91be4
Update core\tool.py for Brick
2024-04-16 10:25:01 +02:00
rileywong311
d44e5987d2
Fix Brick tool
...
- Data is now stored regularly and parsed in props
- "get_convertable_brick_spaces" returns a set
- "export_brick_attributes" always returns a tuple of strings
2024-04-16 10:25:01 +02:00
rileywong311
fe8e370b8c
Fix brick.feature
...
For one particular, I removed "And I set 'scene.BIMRootProperties.new_brick_relation_type' to 'hasPart'". Although it should really be "https://brickschema.org/schema/Brick#hasPart " to begin with, it was still failing the test. So removing it as a work around.
2024-04-16 10:25:01 +02:00
rileywong311
1f48281177
Refactor UI get_brick_relations
2024-04-16 10:25:01 +02:00
rileywong311
fd948e9481
Fix condition for hiding "view_brick_item"
2024-04-16 10:25:01 +02:00
rileywong311
529dc4d984
Rename 'add_brick_failed" to "add_brick_relation_failed"
2024-04-16 10:25:01 +02:00
rileywong311
1e6d86b4d7
Fix indentation for assign Brick reference
2024-04-16 10:25:01 +02:00
Gorgious
2ff4aba6cc
Fix #3636 : Check if representation class exists before testing if it's a circle extrusion representation
2024-04-16 10:25:01 +02:00
Sigma Dimensions (Yass)
a29ae07b72
updating a duration will not auto update schedule usage
2024-04-16 10:25:01 +02:00
Andrej730
dd02925cc4
Fixed bug adding ports to the transitions between profiles with an offset
...
end port ended up located without the offset
2024-04-16 10:25:01 +02:00
Andrej730
f92709dadd
Fixed bug in shape_builder.mep_transition_calculate
...
it wasn't taking account that `h` can also end up negative
2024-04-16 10:25:01 +02:00
Andrej730
dcfd790a07
Fixed bug with segments incorrectly adjusted after adding transition
...
If transition was really long comparing to segments length then DumbProfileJoiner.join_E would start change their their length in unexpected way - ATSTART when you'd still expect ATEND and vice versa.
Also fixed the bug when segments length was incorrectly calculated - it wasn't calculating it world space when it makes more sense here to calculate it by local segments Z axis.
2024-04-16 10:25:01 +02:00
Dion Moult
feec0e2437
Fix more failing tests.
2024-04-16 10:25:01 +02:00
Sigma Dimensions (Yass)
7b52e359f2
fix bug where nested resources in task ICOM panel didn't show
2024-04-16 10:25:01 +02:00
Sigma Dimensions (Yass)
b27262f81f
Resource Features :
...
- Adding/removing and edit productivity data is now easier (+ cleaner UI)
- Pressing calculate schedule work on a parent resource will default to calculating its nested resources schedule work.
- Show derived Schedule Work for a parent resource
- Improve apperance of Resource Tree Structure
2024-04-16 10:25:01 +02:00
Gorgious56
66dbd7d8e7
Prevent user from editing the mesh of a circle based extrusion
2024-04-16 10:25:01 +02:00
Dion Moult
1c016c4212
See #3581 . Fix failing IOS tests.
2024-04-16 10:25:01 +02:00
Christoph Mellueh
50d0d16351
rename File and unify with ci-ifctester-pypi
2024-04-16 10:25:01 +02:00
Andrej730
eb95bdd21e
Fixed #3624 - tools props were updating only for BIM Tool
...
It wasn't taking into account WallTool, BeamTool and all other tools we have.
2024-04-16 10:25:01 +02:00
Andrej730
966a04e053
Update currently selected ifc class and type on selecting object
...
Had this idea for awhile now and heard it multiple times from other people. Please give feedback if this feature gets in the way instead of helping.
Example - https://imgur.com/a/K4hz2FB
2024-04-16 10:25:01 +02:00
Andrej730
8ff760261b
A button to jump back from boolean to the original object
...
Example - https://imgur.com/a/A3dVbFM
2024-04-16 10:25:01 +02:00
Dion Moult
2333997bda
Fix #3632 . Make search and CSV UIs share the same Blender props for DRY.
2024-04-16 10:25:01 +02:00
Dion Moult
6b05f4a2aa
You can now reorder columns in IfcCSV
2024-04-16 10:25:01 +02:00
Dion Moult
c190ae5aea
Loading IFCs now prioritise 2D bodies over 3D non-bodies. This helps prevent loading and seeing a bunch of Box / Clearance representations.
2024-04-16 10:25:01 +02:00
Dion Moult
f8b3b3a54f
Fix #3627 . Bug where exclude didn't take into account entities are "OR" not "AND". Whoops.
2024-04-16 10:25:01 +02:00
Sigma Dimensions (Yass)
ed58072d64
run black
2024-04-16 10:25:01 +02:00
Sigma Dimensions (Yass)
1996e98506
Feature to calculate required resources
2024-04-16 10:25:00 +02:00
Sigma Dimensions (Yass)
39d072d0ca
Calculates the number of resources based on required person-hours.
2024-04-16 10:25:00 +02:00
Sigma Dimensions (Yass)
05a5b2abfd
clean up Resource UI using column layout
2024-04-16 10:25:00 +02:00
Jesusbill
60aaf4fc2c
Fix duplicate id in EP_set_Drawing template
2024-04-16 10:25:00 +02:00
Andrej730
624d5f2580
bump ifcsverchok release in readme
2024-04-16 10:25:00 +02:00
Andrej730
8a3f2cf0ef
added UI to display connections for realizing elements
...
Example - https://imgur.com/a/1ZZlTwp
2024-04-16 10:25:00 +02:00
Andrej730
d715bd784a
Added small UI to show realizing elements for the connections
...
Example - https://i.imgur.com/JLDcnbK.png
2024-04-16 10:25:00 +02:00
Andrej730
8856d513f4
test to make sure nothing happened to ifcsverchok 😅
2024-04-16 10:25:00 +02:00
Andrej730
f88cdae500
a bit faster renaming ifc elements when renaming blender objects
...
Previously when you renamed blender object it was requiring the "Ifc.../" prefix so it would also change the name for ifc element. So when you wanted to rename something you'd only select and change the name part without prefix.
Now you can just type the name right in after using F2 which seems a bit quicker by a few less clicks.
Before - https://imgur.com/a/Rn7a17W
After - https://imgur.com/a/a3lmxte
2024-04-16 10:25:00 +02:00
Andrej730
8bb1a129dd
fixed bug in mep transitions
...
it wasn't taking into account that offset can be too big to sustain the angle
2024-04-16 10:25:00 +02:00
Andrej730
4e47827b86
added tests for shape builder transition length calculator
2024-04-16 10:25:00 +02:00
Sigma Dimensions (Yass)
9b5b5da91e
you can now also update resource numbers (usage) from the task ICOM resource list
2024-04-16 10:25:00 +02:00
Sigma Dimensions (Yass)
afce0ce76c
refactor highligh_task code
2024-04-16 10:25:00 +02:00
Dion Moult
678fb313eb
Fix #3620 . Bug where manually inserted windows should preseve the existing Z value.
2024-04-16 10:25:00 +02:00
Sigma Dimensions (Yass)
8299ae6239
when editing sequence relationships, enabling selecting successor and predecessor task
2024-04-16 10:25:00 +02:00
Sigma Dimensions (Yass)
2fc3c03170
feature to select a resource in resource tree from task ICOM list
2024-04-16 10:25:00 +02:00
Dion Moult
e444003803
Fix #3628 . Minor issue where regex queries didn't load properly.
2024-04-16 10:25:00 +02:00
Dion Moult
7a7ac30faf
The copy property tool now works on enumerated properties. Hooray for copying over statuses!
2024-04-16 10:25:00 +02:00
Andrej730
01dad745ba
Small fix for 422f772c4
2024-04-16 10:25:00 +02:00
Dion Moult
2e8c218415
IfcPatch now uses the new facet selector syntax.
2024-04-16 10:25:00 +02:00
Dion Moult
51e6d51a0d
Due to popular demand, custom EPset_Status to be used for "userdefined" status values as well as for things which don't have a status.
2024-04-16 10:25:00 +02:00
Dion Moult
4217318654
New Status panel for managing statuses in the costing / scheduling tab.
2024-04-16 10:25:00 +02:00
Andrej730
098420b858
Fixed bug with remembering materials assigned to faces
...
The problem was that bim.update_representation was assigning representation styles without taking into account that some styles may not be actually used in the mesh, so it was always assigning first style (blender material) to the first IFCPOLYGONALFACESET even though it might be using for example the 3rd style.
More - https://community.osarch.org/discussion/1636/materials-not-remembering-their-assigment
2024-04-16 10:25:00 +02:00
Sigma Dimensions (Yass)
53a43442fe
implement calculating task duration based on resource usage change for fixed person-hours and prevent constrained attributes from updating
2024-04-16 10:25:00 +02:00
Dion Moult
82f868f90c
Fix #3627 . Error where using filters incorrectly applied includes / excludes.
2024-04-16 10:25:00 +02:00
Sigma Dimensions (Yass)
f8651430e6
consolidate constraint utilities into ifcopenshell.util.constraint and refactor
2024-04-16 10:25:00 +02:00
rileywong311
7e5bcd4c49
Update Brick feature tests
2024-04-16 10:25:00 +02:00
rileywong311
a5eb5c869d
Catch Assign_Brick_Reference with no selections
2024-04-16 10:25:00 +02:00
rileywong311
328c38b640
Refactor+polish Brick UI
2024-04-16 10:25:00 +02:00
rileywong311
3e95f8a4ab
Use "split" in Brick relations list to better align layout
2024-04-16 10:25:00 +02:00
rileywong311
1e0769b254
Update Brick References Panel
2024-04-16 10:25:00 +02:00
rileywong311
a9c5464ea9
Export/assign Brick library reference uses "label" if there is one
2024-04-16 10:25:00 +02:00
rileywong311
233b31a057
Brick UI relations list uses "label" if there is one
2024-04-16 10:25:00 +02:00
rileywong311
265948f37f
Restore Brick select ifcGlobalID functionality
2024-04-16 10:25:00 +02:00
rileywong311
4c37423ff4
Move Brick "set last saved" to BrickStore
2024-04-16 10:24:59 +02:00
rileywong311
efa9cdbacb
Simplify buttons for add Brick relations manually
2024-04-16 10:24:59 +02:00
rileywong311
7a925e3078
Rework Brick UI into toggle panels
2024-04-16 10:24:59 +02:00
rileywong311
164c0adc0d
Fix up convert_ifc_to_brick
...
Remove line separation between code, but add comments
Add full URI to Brick relations
Fix typo where "system_uris" was written as "space_uris"
Remove unnecessary get of "distribution_elements = brick.get_convertable_brick_elements()" again
2024-04-16 10:24:59 +02:00
rileywong311
8ee28ecb52
Remove Brick data debugging printouts
2024-04-16 10:24:59 +02:00
rileywong311
8e74880767
Check Brick library location exists
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass)
95de43f5b6
forgotten bits and bobs + run black
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass)
a2078e8de7
Feature to constrain a resource work or number of used resources
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass)
3582ccc1d4
Fix calculating resource work based from parent's productivity and improve UI to show this
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass)
2e4e2c3173
improve purge of remove_metric usecase
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass)
2be46970fe
api usecase to add a reference path to a metric objective
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass)
8b43767a6f
fix updating an objective's metric
2024-04-16 10:24:59 +02:00
Andrej730
7b135180a8
Save blenderbim last commit hash to the ifc header
...
Now it's possible to identify blenderbim version from .ifc file which is useful for debugging
Example:
FILE_NAME('test.ifc','2023-08-22T18:07:07+05:00',(),(),'IfcOpenShell v0.7.0-fc50bdd3a','BlenderBIM 0.0.999999-64bc7af','Nobody');
2024-04-16 10:24:59 +02:00
Dion Moult
9f42a91045
New util function to format a length value in preparation for custom formatting rules in drawings and schedules.
2024-04-16 10:24:59 +02:00
Thomas Krijnen
d233f3e488
#3616 Only consider distance orthogonal to projection vector for 2d boolean preprocessing
2024-04-16 10:24:59 +02:00
Andrej730
ca7984e12e
mep transitions - correct angle when connected segments share the same dimensions
...
Basically there are 3 methods to define the transition angle (https://i.imgur.com/AtCIJty.png ). Before we supported only the second method, now we support 1 and 3 too.
2024-04-16 10:24:59 +02:00
Dion Moult
e6e364780b
IfcCSV can now create summary rows (e.g. total, average) at the end of the table (may or may not be in addition to group totals).
2024-04-16 10:24:59 +02:00
Dion Moult
5e36255efe
When you force an object to be a tessellation, automatically remove all parametric constraints for you.
2024-04-16 10:24:59 +02:00
Dion Moult
2c0b6ca464
Fix bug where split elements by plane didn't work on multiple elements due to forgetting to toggle normals of the cutting plane.
2024-04-16 10:24:59 +02:00
Dion Moult
94e3627c8c
IfcCSV now supports grouping and group operations like concat, sum, min, max, etc.
2024-04-16 10:24:59 +02:00
Dion Moult
83566845df
New support for sorting IfcCSV outputs
2024-04-16 10:24:59 +02:00
Dion Moult
4838b13d63
Drawing include/exclude filters now use the new facet selector syntax
2024-04-16 10:24:59 +02:00
Dion Moult
a73fd2b55f
Drawings now can include non-drawing specific annotations too.
2024-04-16 10:24:59 +02:00
Dion Moult
641b5e002a
Now support custom queries for advanced users in the facet selector (similar to old selector). Also support types and count keys. (e.g. filter by objects with zero types, or zero materials, etc).
2024-04-16 10:24:59 +02:00
Dion Moult
2dd6b164a9
You can now get specific container types via util.element or util.selector. E.g. if you wanted to know what building an object is in or what storey an object is on.
2024-04-16 10:24:59 +02:00
Andrej730
b998e1c927
more work on transitions for MEP
...
- support transitions from and to circle profiles
- reworked transition length algorithm now it should be more accurate
- added support for creating transitions between profiles that are parallel but not collinear
2024-04-16 10:24:59 +02:00
Andrej730
e86ba7d2fb
show error if transition length is more the segments length
2024-04-16 10:24:59 +02:00
Andrej730
c4030134f2
fix the errors occured trying to find compatible fitting type
...
1) It would stop if the first occurence would be connected to a segment without type
2) It would raise an error if one of the fitting's ports was not connected.
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass)
cb1ab7ec20
Update tests for editing sequence relationships
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass)
dddb4192af
remove unused function
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass)
efa4db344e
stop committing print statements
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass)
dde12b36f8
clean up updating selected task ICOM and UI re-ordering for work schedule subpanels
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass)
954722f40b
editing sequence relationships now requires less clicks
2024-04-16 10:24:59 +02:00
Sigma Dimensions (Yass)
c16d8a39e9
ligten up add cost schedule UI
2024-04-16 10:24:58 +02:00
Dion Moult
7f34c54327
Close #3615 . Follow (terrible, unofficial) convention that boolean result is intentional and boolean clipping result is automated.
2024-04-16 10:24:58 +02:00
Dion Moult
f51f2a0e8c
Fix #3614 . Remove_pset API now supports removing predefined property sets (E.g. door lining properties).
2024-04-16 10:24:58 +02:00
Sigma Dimensions (Yass)
df97bff203
update sequence tool functions
2024-04-16 10:24:58 +02:00
Sigma Dimensions (Yass)
3a6e9a4500
You can now save and load 4D animation color schemes
2024-04-16 10:24:58 +02:00
Dion Moult
ae0a341c95
Fix #3551 . Project specific pset templates now show up in the pset template editor.
2024-04-16 10:24:58 +02:00
Dion Moult
822bc4c08c
Fix #3610 . Glitch where editing existing float cells in IfcCSV ODS files created new cells or didn't update.
2024-04-16 10:24:58 +02:00
Dion Moult
3d933d2abe
Minor fix
2024-04-16 10:24:58 +02:00
Dion Moult
6097d4415a
Fix #3583 . BaseQuantity QTOs in IFC4 can now be set on types.
2024-04-16 10:24:58 +02:00
Dion Moult
861659c212
Fix #3605 . Bug where invalid representation type was created when booleans are added / removed.
2024-04-16 10:24:58 +02:00
Dion Moult
eac84c6965
IfcCSV now supports importing from ODS, XLSX, and Pandas dataframes in addition to CSV
2024-04-16 10:24:58 +02:00
Dion Moult
00c81a3add
Fix #3609 . IfcCSV can now optionally attempt to "preserve" formatting for XLSX and ODS.
2024-04-16 10:24:58 +02:00
Dion Moult
9d4bb4ca27
Fix #2973 . Bundle pandas, openpyxl, and odfpy in preprataion for upgrades in IfcCSV and IfcFM.
2024-04-16 10:24:58 +02:00
Dion Moult
312b2aecf0
Fix #3607 . IfcCSV now supports omitting the GlobalId column. This is great for presentation schedules, but the tradeoff is that you can't use it for imports.
2024-04-16 10:24:58 +02:00
Dion Moult
a9ea54a146
Bump IOS
2024-04-16 10:24:58 +02:00
Dion Moult
331b9cc440
See #3587 . IfcCSV now supports custom header titles.
2024-04-16 10:24:58 +02:00
Ryan Schultz
90163c822a
small fix on 'Live development environment' instructions
2024-04-16 10:24:58 +02:00
Sigma Dimensions (Yass)
aad75f19bf
fix saving and loading coulour schemes
2024-04-16 10:24:58 +02:00
Sigma Dimensions (Yass)
b9cb297b4c
fix enumartion of saved searches
2024-04-16 10:24:58 +02:00
Gorgious56
729e794091
You can now purge unused representations from the purge data panel
2024-04-16 10:24:58 +02:00
Gorgious56
035f7bcbae
You can now purge types from the Purge data panel
...
And refactor a bit the purge profiles code to make use of the profile tool module
2024-04-16 10:24:58 +02:00
Dion Moult
4a37e29429
Advanced users can now directly edit search filter queries.
2024-04-16 10:24:58 +02:00
Dion Moult
539cd047a2
Minor fix to allow edit_work_time to work seamlessly for IFC4X3.
2024-04-16 10:24:58 +02:00
Andrej730
b021103a99
Refactored svg angle decorator code, solves #3602 , more constistency between viewport and svg
...
Now it should be more consistent and more stable since svg and viewport are now using much more similar approach.
2024-04-16 10:24:58 +02:00
Dion Moult
130355f915
See #3603 . Base64 encode gantt chart JSON data to prevent JSON parsing problems.
2024-04-16 10:24:57 +02:00
Andrej730
8464fc86a4
set_objects_selection to set selection only if active_object is not None
...
It was creating errors if you'd try to add angle annotation without having any objects active.
2024-04-16 10:24:57 +02:00
Sigma Dimensions (Yass)
5c22faebe6
Start improving UI for clash detection and management
2024-04-16 10:24:57 +02:00
Gorgious56
5e25e4670d
Active profil users count is now dynamically fetched when the profile is clicked in the UI list
2024-04-16 10:24:57 +02:00
Andrej730
e1db448bad
Fixed clearing scales (after 3345d7e)
...
It was producing a bug with text rotation in elevation view
Added fix to make matrix normalization work for the cases when matrix is rotated and I've just found that mathutils.Matrix.normalize(d) is very conveniently ignoring 4th column (translation) (same for mathutils.Vector)
2024-04-16 10:24:57 +02:00
Andrej730
42316f9591
Fill-bg for template tags #3594
...
Also simplified create_text_tag a bit - now it adds fill_bg by just by copying text tags and adding fill_bg filter to them instead of going through the entire logic again.
2024-04-16 10:24:57 +02:00
Dion Moult
53f0f7c390
Support arbitrary element selection for manual groups in search / IfcCSV, with support for huge element selections.
2024-04-16 10:24:57 +02:00
Dion Moult
1f84457ac9
IfcCSV can now use the graphical filter query builder too.
2024-04-16 10:24:57 +02:00
Dion Moult
fa3c8b43f6
Add support for converting IFC spaces, systems, and feed / location / part relationships into Brick. Brick utilities can now get downstream equipment, and system util can now take into account port flow direction.
2024-04-16 10:24:57 +02:00
rileywong311
13b783feb5
Support displaying Brick Bnode relations
...
- Important for Ifc External References and other data.
- Set predicate_uri of predicates of the Bnode to None, which is used to remove the ability to delete the relationship in the UI.
- Also added try/excepts to difficult edge cases such as the object_uri not having a "#" character in it (such as "<http://qudt.org/vocab/unit/ >") and the object_uri not being a brick class, which breaks "view_brick_item".
- Removing a Bnode type from the entity's relation removes all relations of the Bnode also
2024-04-16 10:24:57 +02:00
rileywong311
85c0ecba13
HIde Brick "Create Relation:" when not toggled
2024-04-16 10:24:57 +02:00
rileywong311
acb3d42245
Refresh Brick split screen on ConvertIfcToBrick
2024-04-16 10:24:57 +02:00
rileywong311
0dfdfb6463
Rework "view brick item" conditional access
...
Change from never show the operator if the relation is "type" to not showing it only if the "type" is the current class being viewed.
This may come in handy if other list views other than hierarchy are implemented.
It also implies why we don't want to show "view brick item" here: because we already viewing it.
2024-04-16 10:24:57 +02:00
rileywong311
4066cfc7ff
Support Add Brick with IfcEntity selected (part 2 aka references)
...
Can now assign references again.
See https://github.com/BrickSchema/Brick/tree/master/examples/ifc for examples.
2024-04-16 10:24:57 +02:00
rileywong311
edb8d636d0
Support Add Brick with IfcEntity selected (part 1)
...
Next is to add the reference
2024-04-16 10:24:57 +02:00
Dion Moult
ff9903b6a2
Fix #3589 . Users can now configure how the null values are represented in IfcCSV.
2024-04-16 10:24:57 +02:00
Massimo Fabbro
a8422717fd
Clone opening initial draft
2024-04-16 10:24:57 +02:00
Gorgious
595f6a15a2
Move profile data and inverse check in data class
2024-04-16 10:24:57 +02:00
Gorgious56
a3aaa9eeba
simplify ifc class suggestions json file and operator
2024-04-16 10:24:57 +02:00
Gorgious56
abc052b667
Scene properties : Highlight buttons to make them stand out more ( #3598 )
2024-04-16 10:24:57 +02:00
Gorgious56
4c221b41ad
You can now purge unused profiles
2024-04-16 10:24:57 +02:00
Dion Moult
f9ee96c47e
Fix #3596 . Fix bug where objects marked as edited were not unmarked after saving when toggling mode. Also fix bug where updating representation didn't check whether or not the meshlike representation has openings applied (which would bake the openings, instead of leaving them dynamic).
2024-04-16 10:24:57 +02:00
Gorgious56
b331623464
Active Profile's inverse relationships count is now displayed in the profiles editor
2024-04-16 10:24:57 +02:00
Dion Moult
54eda1a81c
Fix #3591 . Fix bug where IfcCSV import was not symmetric capability wise. Now you can set all sorts of complex values with the exact same keys you are using to query.
2024-04-16 10:24:57 +02:00
Thomas Krijnen
d9e9013e38
#3429 Fix b operand non-planar face check
2024-04-16 10:24:57 +02:00
Andrej730
6f17846a87
Fix tests errors after 8689164
...
Error was AttributeError: module 'blenderbim.bim.handler' has no attribute 'setDefaultProperties'
2024-04-16 10:24:57 +02:00
Andrej730
c2013a172f
geometry.edit_object_placement was producing orphaned placements
...
It was producing orphaned IfcLocalPlacement if placement was parent to some other one. During edit_object_placement we were replacing all parent references with the new placement but wasn't removing the old one.
2024-04-16 10:24:57 +02:00
Andrej730
69daaff3e1
misspelling 😅
2024-04-16 10:24:57 +02:00
Dion Moult
b53c0d551c
Fix #3590 . Update dev instructions to symlink other utility libraries in BBIM.
2024-04-16 10:24:57 +02:00
Dion Moult
8260469c9b
Fix #2626 . New IFC overrides for setting object origins.
2024-04-16 10:24:57 +02:00
Massimo Fabbro
14bffda53c
fix #3213 Problem related with sheet created on windows and opened on Linux
2024-04-16 10:24:56 +02:00
rileywong311
26b6bc2b3c
Merge Brick classification
...
https://github.com/rileywong311/BrickIfcClassification
2024-04-16 10:24:56 +02:00
rileywong311
0e685f6fb2
Merge IfcClassification
...
https://github.com/Moult/IfcClassification/tree/master
2024-04-16 10:24:56 +02:00
Sigma Dimensions (Yass)
6d1b468166
enable an object to take part in an object type decomposition #3592
2024-04-16 10:24:56 +02:00
Dion Moult
93031f0fc0
Don't strictly require guids / class filters that exist in new facet selector.
2024-04-16 10:24:56 +02:00
Andrej730
b2868aa7f7
Calculate/guess quantity descriptions to avoid confusion
2024-04-16 10:24:56 +02:00
Dion Moult
b4e46da97f
See #3582 . Fix bug where switching representations didn't handle curves in a body / model_view.
...
This means that if you created a curve body, you couldn't switch to it, or if you deleted everything, you ended up with an empty object. If you then tried to switch to that, it would "sync" the empty object and leave you with an empty cartesian point list. E.g:
1. Create cube and assign IFC element.
2. Remove all faces only (leaving edges and verts). Save changes.
3. Switch to representation (bug!)
4. Delete everything (no verts, edges, or faces). Attempt to save.
5. "Revert" switch will fail, leading to empty mesh.
6. Manually try to switch. Empty mesh will sync, creating an empty point list.
2024-04-16 10:24:55 +02:00
Andrej730
4fe03230c5
root.copy_class to remove connections from previously connected ports
2024-04-16 10:24:55 +02:00
Dion Moult
7038eb887f
Fix #3584 . Support matching enumerated properties in new facet selector.
2024-04-16 10:24:55 +02:00
Sigma Dimensions (Yass)
39d1bc36c6
experimental import plot coordinates
2024-04-16 10:24:55 +02:00
Andrej730
520e0cd0b4
Handle ods schedules without column styles #3573
...
Turned out there are ODS files (and turned out we're producing them ourselves from ifccsv) where column styles are not defined and therefore no width/style assigned to each column which was resulting in errors on building schedule.
2024-04-16 10:24:55 +02:00
Dion Moult
62678ac491
New simplified IfcFM parser for basic object data.
2024-04-16 10:24:55 +02:00
Andrej730
2cfb10df30
Small info message on using validate
2024-04-16 10:24:55 +02:00
Andrej730
ce91e04166
Remove empty IfcDocumentInformationRelationship #3581
2024-04-16 10:24:55 +02:00
Dion Moult
faa5a78b39
Fix #3578 . Support querying surface styles in tools like IfcCSV.
2024-04-16 10:24:55 +02:00
Dion Moult
48cd3b4a11
See #3561 . Misc annotation decorator now only highlights non-internal edges.
2024-04-16 10:24:55 +02:00
Dion Moult
9d42df8315
Fix #3562 . Non-manifold geometry is no longer considered in join criteria as there is no such thing as a closed polygon.
2024-04-16 10:24:55 +02:00
Sigma Dimensions (Yass)
89826deeb9
Improve Cost Schedule Layout
2024-04-16 10:24:55 +02:00
Sigma Dimensions (Yass)
02d09a3ab0
woopsies
2024-04-16 10:24:55 +02:00
Sigma Dimensions (Yass)
79a66c47f2
fix the bug fix #07b5c49 - where counting objects controlled by a cost item stopped working
2024-04-16 10:24:55 +02:00
Dion Moult
34c8e80cf0
Fix #3253 . Bug where duplicating elements with fillings incorrectly recreated fillings at the cursor (i.e. the cursor was used as a target destination).
...
Now, instead of trying to be clever and regenerating filling locations and opening types, we simply copy the existing scenario. This also means it'll be more stable for weird fillings coming from proprietary apps.
2024-04-16 10:24:55 +02:00
Dion Moult
782e38b561
Fix #3472 . You can now toggle selectability of linked IFCs.
2024-04-16 10:24:55 +02:00
Dion Moult
072344a9b5
See #3579 . Support Google Colab as an installation option.
2024-04-16 10:24:55 +02:00
Bruno Postle
6234adf451
fix SyntaxError: '(' was never closed
2024-04-16 10:24:55 +02:00
Sigma Dimensions (Yass)
820d2f8a9d
fix api logic where only quantities of the same type can be assignmed to a cost control
2024-04-16 10:24:55 +02:00
Sigma Dimensions (Yass)
b92bbf1672
fix orphaned data when unassigning element quantities from cost item control
2024-04-16 10:24:55 +02:00
Dion Moult
e659e033e2
Fix #3554 . Support editing IfcIndexedPolyCurve profiles where IfcLineIndex has >2 indices.
2024-04-16 10:24:55 +02:00
Sigma Dimensions (Yass)
f0032ec4cf
Fix contracting/expanding cost schedule tree and add tests to avoid proof changes
2024-04-16 10:24:55 +02:00
Massimo Fabbro
8785dfbe65
Fix #3569 Variable name override caused the bug ( #3575 )
2024-04-16 10:24:55 +02:00
Dion Moult
8e444489d2
Fix #3564 . Bug where IfcBuiltSystems didn't show up due to missing icon in IFC4X3.
2024-04-16 10:24:55 +02:00
Dion Moult
9462d906ef
Fix #3576 . Explicit drawing annotations are now immune to "include / exclude" filters.
2024-04-16 10:24:55 +02:00
Dion Moult
da5fd9092c
Fix #3556 . Bug where quantities could not be imported using IfcCSV. Also make IfcCSV support any qset name, not just "Qto" prefixed names.
2024-04-16 10:24:55 +02:00
Dion Moult
e24e15cb50
IfcCSV now uses the new filter query system.
2024-04-16 10:24:55 +02:00
Dion Moult
afe87a6aec
Fix #3577 . Don't force uppercase in schedules.
2024-04-16 10:24:55 +02:00
rileywong311
ec0d3c1129
Make refresh Brick viewer refresh both screens
2024-04-16 10:24:55 +02:00
rileywong311
fae02aaff2
Second level query for Brick equipment+point roots
2024-04-16 10:24:55 +02:00
rileywong311
405e449380
Polish Brick UI and add "last saved" label
2024-04-16 10:24:55 +02:00
rileywong311
5b970dd7ea
Filter Brick class if deprecated
2024-04-16 10:24:55 +02:00
rileywong311
1a24107497
Filter more (all) Brick ontology namespaces
...
I'm not sure if this method of filtering out the entire domain will cause problems. This could use investigation.
2024-04-16 10:24:55 +02:00
rileywong311
d23fe7b301
Clear Brick breadcrumbs on close project
2024-04-16 10:24:55 +02:00
rileywong311
15a8b4d120
Remove another needless BrickStore.graph.triples check
...
As before, this returns a generator type which always evaluates true, even if it is empty.
2024-04-16 10:24:55 +02:00
rileywong311
7dc3c62455
Add description to Brick operators
2024-04-16 10:24:54 +02:00
rileywong311
f2dc98e64e
Move Brick "set root" button and change roots on update instead of operator
2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass)
10dfacd794
fix Cost schedule of rates UI bug where linked types dont't refresh correctly (and black formatting)
2024-04-16 10:24:54 +02:00
Dion Moult
b5cbeb3fb1
See #3561 . Fix bug where schedules couldn't be removed.
2024-04-16 10:24:54 +02:00
Dion Moult
600456641d
Auto create relevant context when attempting to add an annotation to make it friendlier for new users.
2024-04-16 10:24:54 +02:00
Dion Moult
7fcc3f8e3b
Fix #2894 . Implement reflected ceiling plans. Note that this requires new bot build.
2024-04-16 10:24:54 +02:00
Dion Moult
5ae55cd89e
See #3501 . Minor matrix math fix that caused annotations to not appear in global coordinates.
2024-04-16 10:24:54 +02:00
Dion Moult
a7cb0cdac7
Improve default search filter to include types and spatial elements.
2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass)
f125032d46
Feature to add a camera to extents of the scene objects
2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass)
a0768ff408
feature to clear previous 4D Animation (object keyframes & colors)
2024-04-16 10:24:54 +02:00
Kristoffer Andersen
144a61662c
Update bld.bat
...
reduce number of schema variations on windows as well
2024-04-16 10:24:54 +02:00
Kristoffer Andersen
1eff547af2
Update meta.yaml
...
pin compatible boost, occt and cgal-cpp
2024-04-16 10:24:54 +02:00
Kristoffer Andersen
cf8945ec2c
Update build.sh
...
limit number of schema variants
2024-04-16 10:24:54 +02:00
Dion Moult
9cb3ce1f9a
See #2894 . Implement SVG mirroring options (typically used for RCPs or useful when converting to other things like DXF).
2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass)
eaffd4a2a1
simplify setup_default_task_columns
2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass)
73f81a9bd3
animation settings now use human readable durations to make it less confusing
2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass)
f728004077
simplify updateTaskDuration
2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass)
8dbdfa2301
WIP - Scheduling UI improvements
2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass)
c864bb88f5
Hide Header for Costing and Schedule Tab
2024-04-16 10:24:54 +02:00
Sigma Dimensions (Yass)
044a2f8960
Revert "Rename and move sub panels of Costing and Schedule Tab"
...
This reverts commit 9d4715c0a9 .
2024-04-16 10:24:54 +02:00
Andrej730
b6ed12589f
plug add_transition to fit_flow_segments
2024-04-16 10:24:54 +02:00
Andrej730
ba9fa8a091
Adjusting connected elements on bim.regenerate_distribution_element
...
Basically commented out automatic adjustment after 45f81b478 - now it's hapenning only when you decide to regenerate it.
It's adjusting connected segments extrusion and location, for all other elements besides segments it's adjusting only location. The idea is it will try to change as less as possible.
Demo - https://imgur.com/oZ1I2Bl
2024-04-16 10:24:54 +02:00
Andrej730
4f8a53f048
quickly connect mep elements if they have matching ports
...
Demo - https://imgur.com/a/o9u8M1u
2024-04-16 10:24:54 +02:00
Andrej730
75e0d94588
fixed bug getting port relating element in ifc2x3
2024-04-16 10:24:54 +02:00
Andrej730
fe2b22b6cd
More descriptive error message on attempt to delete drawings category
2024-04-16 10:24:54 +02:00
Andrej730
c2f515402b
small refactor
2024-04-16 10:24:53 +02:00
Thomas Krijnen
76235f151e
Update draw.py --include-curves
2024-04-16 10:24:53 +02:00
Kristoffer Andersen
57a36de71e
Update build.sh
...
fix env var declaration
2024-04-16 10:24:53 +02:00
Kristoffer Andersen
e7ace4c0bd
Update build.sh
...
Reduce number of schema versions
2024-04-16 10:24:53 +02:00
Thomas Krijnen
9adb4ac82b
#3510 Sample points along diagonal as well for quick and dirty occlusion detection
2024-04-16 10:24:53 +02:00
Andrej730
040cd398cf
remove_product to also remove psets for types
2024-04-16 10:24:53 +02:00
Andrej730
dbc482dfee
More Ports UI
...
Created more UI for ports.
Now you can see the list of ports from UI and what objects they are connected to, you can quickly select any ports/connected objects or disconnect objects.
From port UI you can see what object's it located on and what object it's connected to and quickly jump across them.
Demo - https://imgur.com/a/Gu4Vz7V
2024-04-16 10:24:53 +02:00
Andrej730
86b63242d8
bim.add_transition
...
Added simple operator to add transition between two mep segments (now only rectangular collinear segments are supported).
It also reuses the transition type that was previously used to connect segments of the same type.
Demonstration - https://imgur.com/a/c1AOxj1
2024-04-16 10:24:53 +02:00
Andrej730
2c98ab078a
Fix default mep profile names
...
Previously it was generating names like 4000000x4000000 in mm projects.
2024-04-16 10:24:53 +02:00
Thomas Krijnen
1f4b12443a
fix edge segments in world coords #3536
2024-04-16 10:24:43 +02:00
Dion Moult
00bd159ee7
IfcTester JSON reporter now also stores identification data separately for convenient reporting.
2024-04-16 10:22:47 +02:00
Dion Moult
c9adefd947
Store applicability in IfcTester JSON results
2024-04-16 10:22:47 +02:00
Dion Moult
9b2455e0f0
Fix #2753 . Disable mapping representations when appending assets via the ExtractElements recipe to be more forgiving (and faster) on invalid models.
2024-04-16 10:22:47 +02:00
Dion Moult
3cabe935cd
Fix SurfaceColour typo that broke loading colours in some IFCs
2024-04-16 10:22:47 +02:00
Dion Moult
73b93e7020
Fix #3547 . Bug where using existing clippings were not preserved when editing profile or wall representations.
2024-04-16 10:22:47 +02:00
arun
bd1bfe548a
Update create_2pt_wall.py ( #3553 )
...
* Update create_2pt_wall.py
included unit scale for use cases other than si unit
* Revised Update create_2pt_wall.py
included is_si kwarg to select between si units and other units and also changed the dtype of p1 and p2 array to float incase they are entered as integers
2024-04-16 10:22:46 +02:00
Carlos Dias
a85fdf3f8e
Add element guId in BCF report ( #3549 )
2024-04-16 10:22:46 +02:00
Thomas Krijnen
ee09f2404b
Filter duplicate edge indices #3546
2024-04-16 10:22:34 +02:00
Dion Moult
c6438933ba
Whoops
2024-04-16 10:10:51 +02:00
Dion Moult
a6c8a2abd4
Dissolve specifically IOS triangulated edges for meshes instead of generic Blender limited dissolve.
2024-04-16 10:10:51 +02:00
Dion Moult
65b5a6f8f9
Skeleton operator to regenerate distribution elements recursively
2024-04-16 10:10:51 +02:00
Dion Moult
dca25e8475
Initial implementation of scale dependent map conversion for IFC4X3
2024-04-16 10:10:51 +02:00
rileywong311
9910c53f38
Add brick create relation with split screen
2024-04-16 10:10:51 +02:00
rileywong311
866a6d429b
Implement Brick split screen
2024-04-16 10:10:51 +02:00
rileywong311
6dd908c207
Add more subclasses to Brick root options
2024-04-16 10:10:51 +02:00
rileywong311
eea577d463
Move Brick list root setting
2024-04-16 10:10:51 +02:00
rileywong311
d5159be571
Reformat Brick props order and singularize "brick_entity_classes"
2024-04-16 10:10:51 +02:00
rileywong311
abd4fb18fd
Refactor AddBrickRelation to combine object namespace+label in operator
...
This is an important change that should make adding relations through other methods easier to implement
2024-04-16 10:10:51 +02:00
rileywong311
242d2cb4ef
Guard loading brick files from bad paths
...
Referred to "IFCFileSelector.is_existing_ifc_file" method for to make this
2024-04-16 10:10:51 +02:00
rileywong311
5c6ff36813
Add "rdfs:label" to Brick relation options
...
This is a tricky one because "rdfs:label" cannot really be queried from the Brick ontology, so it is a special case that probably needs to get added manually. Furthermore, an entity really shouldn't have multiple labels, so the option to give an entity an "rdfs:label"
should only appear if it doesn't have one already. The way I did it meant I had to manually reset the Enum type in Blender because it was the active one selection and made the Enum blank since it got removed now that the entity has a "rdfs:label." One possible alternative solution is to allow multiple labels, but in the query to import bricks in the UI list only select one label somehow.
2024-04-16 10:10:51 +02:00
rileywong311
a56ec73f3e
Change BrickschemaData.relations to BrickschemaData.active_relations
2024-04-16 10:10:51 +02:00
rileywong311
49b5fb35a8
Load Brick relationships from schema
2024-04-16 10:10:51 +02:00
rileywong311
7f049f0067
Remove if Brickstore.graph.triples check
...
This returns a generator type which I believe is always truthy, so it didn't change anything.
2024-04-16 10:10:51 +02:00
rileywong311
17317c65cb
Implement basic Brick create relation
2024-04-16 10:10:51 +02:00
rileywong311
07bd99d461
Add "remove brick relation" operator
2024-04-16 10:10:51 +02:00
rileywong311
b5d9c3f5ff
Rename Brick "attributes" to "relations"
2024-04-16 10:10:51 +02:00
Dion Moult
ed66572d66
Fix #3538 . Update bl_info metadata to reflect that we are a native IFC authoring platform not an import-export add-on.
2024-04-16 10:10:51 +02:00
Andrej730
442918e3a3
option to provide step_id into bim.create_shape_from_step_id directly
2024-04-16 10:10:51 +02:00
Andrej730
1a88191173
remove_product to remove object placement too
...
previously it wasn't deleting object placement when you removed the objects (and related elements like IfcDirections etc) and working on project long enough you might had a bunch of orphaned data in it
2024-04-16 10:10:51 +02:00
Andrej730
1496cc04ff
automatically assign ports predefined type
2024-04-16 10:10:51 +02:00
Andrej730
a998cd476d
small change for readibility
2024-04-16 10:10:51 +02:00
Andrej730
7cfdf1f1d5
adjust obstruction position on changing segment length
...
Now when you change the segment's length connected obstructions will adjust. Same for changing obstruction's length. You can also move obstructions/segment around and then use "Regenerate" to make them fit.
Small demo - https://imgur.com/a/atm8Mdx
2024-04-16 10:10:51 +02:00
Andrej730
6f975529f4
add_obstruction to fit_flow_segments, derive it's position from cursor
2024-04-16 10:10:51 +02:00
Andrej730
cd9854707a
Fixed #3533 (also fixed the same issue for windows)
2024-04-16 10:10:51 +02:00
Andrej730
f4f04db952
Fixed error on drawing tester UI
...
Error was:
Traceback (most recent call last):
File "\3.6\scripts\addons\blenderbim\bim\module\tester\ui.py", line 39, in draw
row.prop(self.props, "should_load_from_memory")
AttributeError: 'BIM_PT_tester' object has no attribute 'props'
2024-04-16 10:10:51 +02:00
Dion Moult
b2db70a2ac
Whoops
2024-04-16 10:10:51 +02:00
Dion Moult
b6b2c718f6
Skeleton of "add fitting" operator which decides appropriate fitting type
2024-04-16 10:10:51 +02:00
Andrej730
fa3e3bc9b8
Fixed TestGetApplicableTypes after 0e69f484f
2024-04-16 10:10:51 +02:00
Andrej730
391cecdb21
keep the default flow direction for ports NOTDEFINED as it's not yet set
2024-04-16 10:10:51 +02:00
Andrej730
0df12194d6
operator to add mep obstruction
...
Currently it's not yet available from UI, only from F3 menu.
On changing segment's length obstruction is not yet adjusted.
Short demonstration - https://imgur.com/a/I5fybpO
2024-04-16 10:10:51 +02:00
Andrej730
25ec0ee36c
root.remove_product to remove IfcRelConnectsPorts too
...
previously if you deleted some flow segment that was connected to another the connection would stay resulting in invalid ifc and other bugs
2024-04-16 10:10:51 +02:00
Andrej730
72c2ef1dd1
Poll check for show/hide ports
...
https://i.imgur.com/NFAM1UC.png
2024-04-16 10:10:51 +02:00
Andrej730
8c21c74ff5
Communicate that blend file is also saved on Ctrl-S
...
https://i.imgur.com/BnzTDhM.png
2024-04-16 10:10:51 +02:00
Andrej730
c2320bb320
small add_constr_type_instance refactor
...
ifc_class removed as it was never used - ifc_class was always figured either from BIMModelProperties.relating_type_id or operator.relating_type_id
2024-04-16 10:10:50 +02:00
Dion Moult
a2b972707e
Another minor documentation fix
2024-04-16 10:10:50 +02:00
Dion Moult
17de7a1808
Easily create a "default" duct / pipe even if you have no demo library.
2024-04-16 10:10:50 +02:00
Dion Moult
ec4f4bd158
Minor documentation fix
2024-04-16 10:10:50 +02:00
Andrej730
9812e5a603
Fixed error opening type manager from window_tool, slab_tool etc
...
Th error was:
Error: Python: Traceback (most recent call last):
File "\scripts\addons\blenderbim\bim\module\model\ui.py", line 54, in invoke
props.type_class = props.ifc_class
TypeError: bpy_struct: item.attr = val: enum "" not found in ('IfcActuatorType', 'IfcAirTerminalBoxType', 'IfcAirTerminalType', 'IfcAirToAirHeatRecoveryType', 'IfcAlarmType', 'IfcAudioVisualApplianceType', 'IfcBeamType', 'IfcBoilerType', 'IfcBuildingElementPartType', 'IfcBuildingElementProxyType', 'IfcBurnerType', 'IfcCableCarrierFittingType', 'IfcCableCarrierSegmentType', 'IfcCableFittingType', 'IfcCableSegmentType', 'IfcChillerType', 'IfcChimneyType', 'IfcCivilElementType', 'IfcCoilType', 'IfcColumnType', 'IfcCommunicationsApplianceType', 'IfcCompressorType', 'IfcCondenserType', 'IfcControllerType', 'IfcCooledBeamType', 'IfcCoolingTowerType', 'IfcCoveringType', 'IfcCurtainWallType', 'IfcDamperType', 'IfcDiscreteAccessoryType', 'IfcDistributionChamberElementType', 'IfcDistributionElementType', 'IfcDoorStyle', 'IfcDoorType', 'IfcDuctFittingType', 'IfcDuctSegmentType', 'IfcDuctSilencerType', 'IfcElectricApplianceType', 'IfcElectricDistributionBoardType', 'IfcElectricFlowStorageDeviceType', 'IfcElectricGeneratorType', 'IfcElectricMotorType', 'IfcElectricTimeControlType', 'IfcElementAssemblyType', 'IfcEngineType', 'IfcEvaporativeCoolerType', 'IfcEvaporatorType', 'IfcFanType', 'IfcFastenerType', 'IfcFilterType', 'IfcFireSuppressionTerminalType', 'IfcFlowInstrumentType', 'IfcFlowMeterType', 'IfcFootingType', 'IfcFurnishingElementType', 'IfcFurnitureType', 'IfcGeographicElementType', 'IfcHeatExchangerType', 'IfcHumidifierType', 'IfcInterceptorType', 'IfcJunctionBoxType', 'IfcLampType', 'IfcLightFixtureType', 'IfcMechanicalFastenerType', 'IfcMedicalDeviceType', 'IfcMemberType', 'IfcMotorConnectionType', 'IfcOutletType', 'IfcPileType', 'IfcPipeFittingType', 'IfcPipeSegmentType', 'IfcPlateType', 'IfcProtectiveDeviceTrippingUnitType', 'IfcProtectiveDeviceType', 'IfcPumpType', 'IfcRailingType', 'IfcRampFlightType', 'IfcRampType', 'IfcReinforcingBarType', 'IfcReinforcingMeshType', 'IfcRoofType', 'IfcSanitaryTerminalType', 'IfcSensorType', 'IfcShadingDeviceType', 'IfcSlabType', 'IfcSolarDeviceType', 'IfcSpaceHeaterType', 'IfcSpaceType', 'IfcSpatialZoneType', 'IfcStackTerminalType', 'IfcStairFlightType', 'IfcStairType', 'IfcSwitchingDeviceType', 'IfcSystemFurnitureElementType', 'IfcTankType', 'IfcTendonAnchorType', 'IfcTendonType', 'IfcTransformerType', 'IfcTransportElementType', 'IfcTubeBundleType', 'IfcUnitaryControlElementType', 'IfcUnitaryEquipmentType', 'IfcValveType', 'IfcVibrationIsolatorType', 'IfcWallType', 'IfcWasteTerminalType', 'IfcWindowStyle', 'IfcWindowType')
WARN (bpy.rna): C:\Users\blender\git\blender-v360\blender.git\source\blender\python\intern\bpy_rna.c:1343 pyrna_enum_to_py: current value '8' matches no enum in 'BIMModelProperties', '', 'ifc_class'
2024-04-16 10:10:50 +02:00
Andrej730
bd6e4fbd64
tests for system.get_connected_to / get_connected_from
2024-04-16 10:10:50 +02:00
Andrej730
c5c8a3ba0b
error message on setting flow direction for disconnected port
...
previously it just did nothing which was a bit confusing
2024-04-16 10:10:50 +02:00
Chetan
0ef14bad6f
When creating a GLTF file, make the material double sided to fix a bug where some surfaces were transparent. This will allow surfaces created from a mesh to be be viewed from all angles regardless of the shape of the mesh or the directions of the normals.
2024-04-16 10:10:50 +02:00
Dion Moult
b044ddfaa2
Flow segments are now created at a specific RL above the active storey in the BIM Tool
2024-04-16 10:10:50 +02:00
ay-ex
f94aa6b313
fix_choco_cmake_url ( #3528 )
...
fixed problematic url for blender cmake
2024-04-16 10:10:50 +02:00
Andrej730
a3d1c60375
fixed bug in system.get_connected_to / get_connected_from
...
import was missing
2024-04-16 10:10:50 +02:00
Andrej730
d5e26b5efe
Create empty at object placement from debug panel
...
Small feature for debugging - https://i.imgur.com/OSOCIqG.png
2024-04-16 10:10:50 +02:00
Andrej730
81dc68d11d
Fixed #3262
2024-04-16 10:10:50 +02:00
Andrej730
60d62c2dd4
sort keys in the entity to type mapping
2024-04-16 10:10:50 +02:00
Andrej730
871902de12
More general solution for #3466
2024-04-16 10:10:50 +02:00
Dion Moult
e49c373011
Fix #3465 . Move representation utilities into new tab system.
2024-04-16 10:10:50 +02:00
Dion Moult
d330b2f0c6
Fix #3483 . You can now conveniently duplicate material layers.
2024-04-16 10:10:50 +02:00
Bruno Postle
ed470b6380
Fix some broken restructured text formatting
2024-04-16 10:10:50 +02:00
Dion Moult
418a3feb6c
Fix #3453 . Hidden annotation type removed, and demo library now comes with linetypes for dashed, fine, thin, medium, thick, and strong.
2024-04-16 10:10:50 +02:00
Wei Yang
8203b2b6d9
Add UV texture support for IfcTessellatedFaceSet ( #3523 )
...
* Add texture support for IfcIndexedTextureMap
* fix description.
* Fix posible duplicate coordinate index issue
* Clean up code.
* revert default clean_mesh.
* Fix errors.
* change to EXTEND mode when not RepeatS/T
* remove tris merge to support mix quads and tris.
2024-04-16 10:10:50 +02:00
Massimo Fabbro
44517f3b1d
Add new api function that allows to create arbitrary profiles with voids ( #3522 )
2024-04-16 10:10:50 +02:00
Dion Moult
7d03b0017b
Fix #3466 . Bug in upstream IFC where distribution elements and furnishing elements had no corresponding type and occurrence.
2024-04-16 10:10:50 +02:00
Dion Moult
84c91518b5
Fix #2906 . Basic support added for perspective drawings.
2024-04-16 10:10:50 +02:00
Dion Moult
dc18f7a68a
Fix #3484 . You can now have project-specific pset templates distributed with your project in a relative path. Defaults to pset/.
2024-04-16 10:10:50 +02:00
Dion Moult
43f9d8888f
Purge obsolete search operators in favour of new search filters, colour legend system.
2024-04-16 10:10:50 +02:00
Dion Moult
0b306ccee3
Purge select similar prop operator in favour of dedicated select similar panel
2024-04-16 10:10:50 +02:00
Dion Moult
557fe5fd87
Purge obsolete & risky module unloading / loading feature in favour of tabs.
2024-04-16 10:10:50 +02:00
Dion Moult
1e1ab453bf
Fix #3501 . Annotation tool now creates annotations at the 3D cursor.
2024-04-16 10:10:50 +02:00
Dion Moult
7739779ed6
Fix #3511 . You can now use a query to load in occurrences from another project (library).
2024-04-16 10:10:50 +02:00
Dion Moult
c076cbc5db
Fix #3502 . New select similar feature.
2024-04-16 10:10:50 +02:00
Dion Moult
1d8738fea4
Fix #3273 . Don't use simple string replacement when renaming drawings but instead identify elements by attributes which is preferred.
2024-04-16 10:10:50 +02:00
Thomas Krijnen
23d096be07
SVG serialization UnifyInputs option
2024-04-16 10:10:48 +02:00
Thomas Krijnen
aa7b5bd1e3
Implement IfcGridPlacement
2024-04-16 10:08:33 +02:00
Thomas Krijnen
9214b00893
ci-ifctester-pypi.yml Add workflow_dispatch event
2024-04-16 10:05:52 +02:00
Thomas Krijnen
642e10a6a8
Include .xsd in ifctester package pypi distribution
2024-04-16 10:05:52 +02:00
Dion Moult
e6528559d6
Fix #3521 . Forgot to commit function.
2024-04-16 10:05:52 +02:00
Sigma Dimensions (Yass)
850b3d1c65
Rename and move sub panels of Costing and Schedule Tab
2024-04-16 10:05:52 +02:00
Dion Moult
4176bfa7d2
Fix #3471 . Allow to select hidden types (except if the type is excluded).
2024-04-16 10:05:52 +02:00
Dion Moult
2843d86ad4
Fix #3518 . Default to deeper opening extrusions to handle more wall thicknesses.
2024-04-16 10:05:52 +02:00
ay-ex
19dd89515f
add ids html report template percentage bars per section ( #3520 )
...
adding html report template percentage bars to each section
2024-04-16 10:05:52 +02:00
Dion Moult
fefda94153
Revert "Example of UI if we sentence-cased IFC classes. Good or bad? Please comment at https://community.osarch.org/discussion/comment/16493 "
...
This reverts commit 53bd4bf5ea .
2024-04-16 10:05:52 +02:00
Dion Moult
1426481cf8
Fix #3509 . Backport Qto_BodyGeometryValidation to IFC4 (via EQto) and fix bug where there was no way to have custom Qtos show up in the qto dropdown.
2024-04-16 10:05:52 +02:00
Dion Moult
be2e2f7e91
Fix #3517 . Fix bug where edit arbitrary profile button doesn't show if your profile has voids.
2024-04-16 10:05:51 +02:00
Dion Moult
4b5fcdf30f
Potential fix for #3273 where renamed drawings might not get moved on Windows.
2024-04-16 10:05:51 +02:00
Dion Moult
472da333b9
Fix #3513 . Minor issue where new hierarchical drawing list broke print all feature.
2024-04-16 10:05:51 +02:00
Dion Moult
d927754d11
Fix #3512 . Fix incorrect shapely fills due to unclosed polygons (tolerance issue) and incorrect raycast results.
2024-04-16 10:05:51 +02:00
Bruno Postle
66d4f04ba2
BlenderBIM filter Git messages, remove sort #3096
2024-04-16 10:05:51 +02:00
Ryan Schultz
df699de97d
added to ifc_classes_suggestions.json
2024-04-16 10:05:51 +02:00
Dion Moult
f71bc79559
Fix #3006 . Don't affect visibility of types when activating drawing.
2024-04-16 10:05:51 +02:00
Dion Moult
0de8275f84
Fix #3223 . Fix #3474 . When creating new representations, give the option to generate bounding box or "outline" curves (60 degree crease threshold hardcoded) instead of full 3D mesh.
2024-04-16 10:05:51 +02:00
ay-ex
5f295ab568
add collapsible detail results ( #3508 )
2024-04-16 10:05:51 +02:00
Dion Moult
0b42202490
Redo mechanism that allows filtered BIM Tool classes to be less "magic" and more explicit whether it filters all vs a specific element type.
2024-04-16 10:05:51 +02:00
Dion Moult
ad1800b486
Fix #3479 . Regression in 69fa124 when addressing #3421 that led to objects with multiple paths not taking part in the wall / slab joining procedure.
2024-04-16 10:05:51 +02:00
Dion Moult
d275615829
Fix #3486 . If Z index isn't specified, text is prioritised over other annotation types.
2024-04-16 10:05:51 +02:00
ay-ex
30cd295b13
fix choco url constants ( #3504 )
2024-04-16 10:05:51 +02:00
Dion Moult
1e8662f079
Fix #3497 . Set closed vs unclosed polygonal face sets to allow loading in some IFC software.
2024-04-16 10:05:51 +02:00
Dion Moult
5b6f1323a5
Fix #3469 . Fix bug where you couldn't load models if there was no style due to no polygons.
2024-04-16 10:05:51 +02:00
rileywong311
bc71ccd9f1
Refactor BrickStore.root_classes
2024-04-16 10:05:51 +02:00
Trashman247
546f8d6fe7
Ignore populate Brick attributes if active entity is a brick entity
2024-04-16 10:05:51 +02:00
Trashman247
d0673f185d
Make Brick "root_classes" one source of truth
2024-04-16 10:05:51 +02:00
Trashman247
b68f064346
Change brick attributes query "name" and "value" to "predicate" and "object"
2024-04-16 10:05:51 +02:00
Trashman247
23c5c7cc24
Move brick entity classes to BrickStore and create drop-down for entity type creation
2024-04-16 10:05:51 +02:00
Trashman247
06331105fc
Move Brick namespace from data to BrickStore
2024-04-16 10:05:51 +02:00
Trashman247
2c18823d93
Add Brick "Set View" operator to change list hierarchy
...
- "System" as a root may need different logic since children of a system are not "subClasses" but rather "parts". Currently, "part" would be listed as attribute rather than a direct object in the group.
2024-04-16 10:05:51 +02:00
Trashman247
0b09c9f719
Reformat BrickSchema UI
2024-04-16 10:05:51 +02:00
Dion Moult
0a52f51145
Fix #3498 .
2024-04-16 10:05:51 +02:00
Dion Moult
4a5769c322
Fix #3391 #3491 #3493 . New space generation that uses a cutting plane across all eligible objects instead of a simplified "straight wall" analysis.
...
This makes generating spaces significantly more robust, makes it easier to add / remove "space separating objects" (so we now have support for virtual elements), and only acts on visible objects.
2024-04-16 10:05:51 +02:00
Dion Moult
f3df78784a
New projects now load with a Views and Types collection with appropriate visibility settings.
2024-04-16 10:05:51 +02:00
Dion Moult
e4063f8de5
Demo library now ships with example text annotation types (door tag, window tag, etc)
2024-04-16 10:05:51 +02:00
Dion Moult
4f55ffc13d
More explanatory images in geometry creation docs
2024-04-16 10:05:51 +02:00
Dion Moult
eb95ff5e5c
Add documentation specifically about swept disk solid geometry for rebar
2024-04-16 10:05:51 +02:00
Gorgious
8b644d8415
You can now directly apply an ifc array modifier
...
Previously one would have to click on "remove" then "keep objects"
2024-04-16 10:05:51 +02:00
Dion Moult
c56d9b01de
Finish writing documentation on geometry creation
2024-04-16 10:05:51 +02:00
Gorgious
ea1e7c567f
Array children are now transform-unlocked & unconstrained when the array is applied
2024-04-16 10:05:51 +02:00
Gorgious
a2042fc7f0
Array children are now transforme-locked after editing the array
...
I have yet to find how to set it on ifc load though
2024-04-16 10:05:51 +02:00
Gorgious
847117ae7e
Array children now follow their parent with a "child-of" constraint #3492
2024-04-16 10:05:51 +02:00
Gorgious
c1c6dfc47e
Clicking on the "Select all array objects" button now sets the parent object as active #3492
...
Moved the array objects fetching code to tool.Blender
Also a bit of housekeeping and fixing minor typos here and there
2024-04-16 10:05:51 +02:00
Dion Moult
f5d5f44458
Revert "Small tester UI fix #3487 "
...
This reverts commit c7a1acf974 .
2024-04-16 10:05:50 +02:00
Carlos Dias
8dea80aff7
[BlenderBIM] Update IfcTester (2023_07_21) ( #3489 )
2024-04-16 10:05:50 +02:00
Ryan Schultz
428412b3e5
Allow negative X_angle values
2024-04-16 10:05:50 +02:00
Dion Moult
441be1427f
Fix #3488 . Minor regression in IFC4X3 mapping.
2024-04-16 10:05:50 +02:00
Dion Moult
aa325d521b
You can now save, load, and create custom colour legends of properties
2024-04-16 10:05:50 +02:00
Dion Moult
50bc77a149
Search now renamed filtering and grouping. New "sandbox" section for more experimental panels. Old selector moved to sandbox along with augin/lca/covetool/temporary cutaways also moved there.
2024-04-16 10:05:50 +02:00
Dion Moult
4396f937b5
You can now load and save searches from the search panel
2024-04-16 10:05:50 +02:00
Dion Moult
7bbc89a3c3
More powerful search interface that uses the new facet selector syntax
2024-04-16 10:05:50 +02:00
Andrej730
1525b380bc
Spatial manager elevation in projects units and some bug fixed
...
1) Elevation prop now is taking into account project units (previously it was hardcoded to meters)
2) Fixed a bug that occured when you started changing spatial element name/elevation right after you loaded spatial manager.
https://i.imgur.com/1keMGus.png
2024-04-16 10:05:50 +02:00
Andrej730
13a5317863
Fixed errors after b6ddc0d
...
`element.is_a() in ...` wasn't taking into account spatial classes that inherit from IfcSpatialElement/IfcSpatialStructureElement
2024-04-16 10:05:50 +02:00
Andrej730
0c97e56791
Small tester UI fix #3487
2024-04-16 10:05:50 +02:00
Andrej730
91a11ccb69
Fixed ifctester tests by the latest ids schema #3458
...
Commented out tests involving minOccurs and maxOccurs until https://github.com/buildingSMART/IDS/issues/144 gets resolved.
2024-04-16 10:05:50 +02:00
Dion Moult
3d3c6acd91
Fix #3477 . Move text panels to object information tab.
2024-04-16 10:05:50 +02:00
Gorgious56
23132503b4
Minor fix in wall creation code
2024-04-16 10:05:50 +02:00
Dion Moult
4ca203cb1e
New wall tool, slab tool, etc in toolshelf to improve usability.
2024-04-16 10:05:50 +02:00
Andrej730
4b03cace3e
moving code to shape builder
2024-04-16 10:05:50 +02:00
Gorgious56
274f42993c
#3478 : Ifc class name suggestions can now autofill predefined type
...
If they are correctly filled in the json file :)
2024-04-16 10:05:50 +02:00
Andrej730
99fd807805
fixed error after 190153347
2024-04-16 10:05:50 +02:00
Andrej730
7a6ae07f83
Distance subtype for rl1, rl2 and x/y/z (opening dimensions) in BIM Tool
2024-04-16 10:05:50 +02:00
Andrej730
9d80da9ed5
small matrix math refactor
...
more readable and allows avoiding jumping between 3d/4d vectors
2024-04-16 10:05:50 +02:00
Andrej730
048d77f983
A bit more descriptive port UI
...
Before - https://i.imgur.com/ZhVRoJM.png
After - https://i.imgur.com/tI1h2i7.png
2024-04-16 10:05:50 +02:00
Andrej730
fc5f4f7776
Added some MEP related type templates
...
3 more new types for distribution segments.
Distribution segments work the same way as beams - they come without representation but with IfcMaterialProfileSet defined with some profile. Occurences will also have ports at the start and the end of the segment (ports can be displayed in "Ports" section in "Services and Systems"). If you extend the segment or move it around - ports will move accordingly.
Small demo - https://imgur.com/a/Aq0utXa
2024-04-16 10:05:50 +02:00
Andrej730
80d08ba81f
Small type manager refactor and more descriptions
2024-04-16 10:05:50 +02:00
Dion Moult
7fec467565
Implement guid facet in facet selector
2024-04-16 10:05:50 +02:00
Dion Moult
62c120e4bb
New facet based selector syntax. Proposed to supersede existing selector syntax.
2024-04-16 10:05:50 +02:00
Dion Moult
46c5a5c820
You can now explicitly create new IfcTypeProducts.
2024-04-16 10:05:50 +02:00
Gorgious56
ac28bbdee1
Fix #3480 : Scene tabs now show their individual description on hover
...
Also correct minor typo
2024-04-16 10:05:50 +02:00
Andrej730
f6307520e9
Support looped railings #3415
...
Example - https://imgur.com/a/RaLORbk
2024-04-16 10:05:50 +02:00
Dion Moult
9c5096ea1d
Write docs describing how to create profile representations
2024-04-16 10:05:49 +02:00
Dion Moult
5e3b45a591
Fix #3469 . Minor regression in linking refactor.
2024-04-16 10:05:49 +02:00
ay-ex
e7bd5ca8be
fix error messages
2024-04-16 10:05:49 +02:00
ay-ex
2baf07a8ee
fix choco_regex
...
fixes new regex needed for upstream blender cmake adjustment,
pulls all regex and url into contant variables,
improves error message, when a version cannot be retrieved
2024-04-16 10:05:49 +02:00
Carlos Dias
5ec1dec6ec
Update __init__.py
2024-04-16 10:05:49 +02:00
Carlos Dias
8c7791828e
Update handler.py
2024-04-16 10:05:49 +02:00
c4rlosdias
e6402e5afc
add export bcf to ifctester (2023_07_18)
2024-04-16 10:05:49 +02:00
c4rlosdias
d6caf4a6b9
Add bug fixes
2024-04-16 10:05:49 +02:00
c4rlosdias
e767db18df
Add select entities (2023_07_17)
2024-04-16 10:05:49 +02:00
c4rlosdias
7981f26c57
Update 2023_07_16
2024-04-16 10:05:49 +02:00
c4rlosdias
13295d2abf
update ifctester - 2023_07_14
2024-04-16 10:05:49 +02:00
Gorgious
654e884e8e
Boolean subpanel is now located in the Geometric Relationships panel
2024-04-16 10:05:49 +02:00
Gorgious56
e440eca988
Show ifc modifiers only when applicable to current element
2024-04-16 10:05:49 +02:00
Gorgious56
660aacd6cc
Disable some tab buttons when no ifc file is loaded
2024-04-16 10:05:49 +02:00
Andrej730
b918911e6e
Small description for some type templates
2024-04-16 10:05:49 +02:00
Gorgious56
8e2afaae39
Housekeeping - Reorder suggestion dictionary keys alphabetically
2024-04-16 10:05:49 +02:00
Gorgious56
dda47ce24f
Refactor edit mode toggle logic for profile based representations
2024-04-16 10:05:49 +02:00
Gorgious56
0b82d129b5
Add ifc modifier utilities to tool.Blender
2024-04-16 10:05:49 +02:00
Andrej730
726c8d833e
Fixing railing/roof bug #3416
...
Issue occured when you imported .ifc and then would try to edit roof/railing path and then cancel/finish editing.
Added safe check to avoid using `change_object_data` in edit mode - https://projects.blender.org/blender/blender/issues/110232
2024-04-16 10:05:49 +02:00
Gorgious56
db64fabf43
Fix bug when using the search operator (F3) with no active object
2024-04-16 10:05:49 +02:00
Dion Moult
e0fffbfdfe
New geometry.create_2pt_wall API function to create a wall-like representation from two points.
2024-04-16 10:05:49 +02:00
Dion Moult
f3c4858d2f
Add documentation for basic geometry creation
2024-04-16 10:05:49 +02:00
Dion Moult
7a7c38db5b
Rename sverchok representation to mesh representation
2024-04-16 10:05:49 +02:00
Dion Moult
84570a69f8
Utility function to create rotation matrixes in numpy.
2024-04-16 10:05:49 +02:00
Gorgious56
7aab0ccfd7
Fix Ifc modifier error after #3393064 because of legacy context.object
...
For some reason in the scene properties context.object returns None even if an object is active in the viewport, so ifc modifiers would randomly throw errors. AFAIK functionally they are supposed to point to the same thing, but active_object seems to be the superior one and context.object deprecated and kept for legacy reasons. Couldn't find dev quote but I'm sure I saw it at some point
2024-04-16 10:05:49 +02:00
Gorgious56
79e67c3f12
Ensure positive extrusion depth
...
This prevents an error and mesh corruption when trying to input a negative extrusion depth
2024-04-16 10:05:49 +02:00
Dion Moult
139b124ccb
Move all modifier panels into Representations and Materials tab.
2024-04-16 10:05:49 +02:00
ay-ex
6ead57abd2
fix choco_update action
...
fix according to upstream makefile change:
https://github.com/blender/blender/blob/main/build_files/cmake/Modules/FindPythonLibsUnix.cmake
2024-04-16 10:05:49 +02:00
Andrej730
f01f659fa0
Revision Clouds - option to match revision cloud with the selected object
...
Works similarly to tagging, example - https://imgur.com/a/Atr0nYE
This feature also can be useful in the future if we integrate revision clouds with ifcgit
2024-04-16 10:05:49 +02:00
Dion Moult
26ee0ca7b7
More tab and panel shuffling. Top level panels now have a tab prefix.
2024-04-16 10:05:49 +02:00
Dion Moult
6929c1a614
Disable Shift-D duplication of drawings for now until drawings stabilise more. Use the dedicated duplicate drawings feature.
2024-04-16 10:05:48 +02:00
Andrej730
0dce32ff4f
Fixing bugs on small revision clouds #3310
...
Bugs were:
1) svg print ZeroDivisionError if there was less than 1 pattern segment
2) svg drawing wasn't preserving edge direction if there was less than 1 pattern segment
2024-04-16 10:05:48 +02:00
Andrej730
06df22e793
Fixed #3441
2024-04-16 10:05:48 +02:00
Dion Moult
85a633cd9a
Fix #3449 . Fix bug where you couldn't edit the relating type of an annotation.
2024-04-16 10:05:48 +02:00
Dion Moult
91b23ae853
Fix bug where loaded point geometry had unlinked meshes or placements with wrong units.
2024-04-16 10:05:48 +02:00
Dion Moult
1248059f39
Fix #3275 . You can now rename annotation types from the annotation manager.
2024-04-16 10:05:48 +02:00
Dion Moult
ff3bff13d2
Add support for arbitrary point annotations and survey point, traverse points, control points, spot elevations, etc.
2024-04-16 10:05:48 +02:00
Dion Moult
633ab31544
Fix #3288 . Implement undo / redo until specified named transaction. Fix fundamental undo bug where Blender doesn't track the undo UUID property if you toggle edit mode.
...
This also has the nice side effect of implementing "Jump to point in history" so you can now use the Edit > Undo History menu.
2024-04-16 10:05:48 +02:00
Dion Moult
4926c486c5
More panel shuffling, new Quality and Coordination tab. Geometry is now part of materials.
2024-04-16 10:05:48 +02:00
Dion Moult
88d201ed85
Bulk rename panels to remove redundant IFC prefix
2024-04-16 10:05:48 +02:00
Dion Moult
2c976a4b59
Example of UI if we sentence-cased IFC classes. Good or bad? Please comment at https://community.osarch.org/discussion/comment/16493
2024-04-16 10:05:48 +02:00
Andrej730
73a74c1d66
small fix 90fce1804
2024-04-16 10:05:48 +02:00
Dion Moult
9f091e0a3f
New icon tabbed interface so you don't need to click twice to change tab.
2024-04-16 10:05:48 +02:00
Dion Moult
3c2f4cd2f8
DANGER! Potentially fix a bunch of undo bugs by completely rebuilding undo id_map tracking with a much simpler solution.
...
In the past, we used undo_pre and redo_pre and a bunch of complex commit_link and rollback_link tracking to figure out what IDs and GUIDs were added / removed during transactions and how to handle invalidated objects in the id/guid maps.
I really don't know why I made it that complex.
Now we simply treat all data as bad and rebuild the either map. This means slower undos / redos for large projects, but in theory the maps will never invalidate.
This either fixes a lot of things or breaks a lot of things :) Watch out!
2024-04-16 10:05:48 +02:00
Dion Moult
e7d4e3e50d
Fix undo bugs in the type module where some operators were not part of the undo system for some reason.
2024-04-16 10:05:48 +02:00
Dion Moult
c3c018283b
Fix #3275 . You can now rename types from the type manager.
2024-04-16 10:05:48 +02:00
Andrej730
d42aa7d8cb
root.remove_product fix
2024-04-16 10:05:48 +02:00
Andrej730
a5dedbedbb
oops, forgot to clean up the test name
2024-04-16 10:05:48 +02:00
Andrej730
b5902e0e5d
Fixed plan level annotation rotation #3440
2024-04-16 10:05:48 +02:00
Andrej730
0fe3e56c63
StairData refactor, solves #3416
2024-04-16 10:05:48 +02:00
Andrej730
38dd5a218c
root.copy_class to support copying ports in ifc2x3
2024-04-16 10:05:48 +02:00
Andrej730
6c88d55cb8
Clean up type objects on ifc import
2024-04-16 10:05:48 +02:00
Andrej730
197ecdf51c
avoid IfcSpatialElement errors in ifc2x3
...
IfcSpatialElement was added only in ifc4
2024-04-16 10:05:48 +02:00
Andrej730
8943b71d4e
clean up after running test_wall_opening.py
2024-04-16 10:05:48 +02:00
Andrej730
661441b231
remove_product to remove IfcRelConnectsElements
2024-04-16 10:05:48 +02:00
Andrej730
37bcbd077d
Fixing confusing UI #3357
...
It was showing "Edit Profile" when you have slab and wall selected when it will actually extend the wall to the slab.
2024-04-16 10:05:48 +02:00
Dion Moult
8a64675e2c
See #3421 . Fix drawing bug where IfcOpenShell might return unclosed paths even though the shape is closed and therefore break cut polygon fills.
2024-04-16 10:05:47 +02:00
Dion Moult
efd3ef1a89
See #3421 . Fix bug where some projection fills wouldn't polygonize correctly in shapely due to numerical tolerance.
2024-04-16 10:05:47 +02:00
Dion Moult
a1faf4fe08
Fix #3442 . Update sheet list if drawing name changes.
2024-04-16 10:05:47 +02:00
Dion Moult
551db039d0
Move object data out of object tab and into new object dropdown.
2024-04-16 10:05:47 +02:00
Dion Moult
8553c79dea
You can now open projects from the Ctrl-N shortcut.
2024-04-16 10:05:47 +02:00
Gorgious56
8339d04326
Improve slightly the boolean interface in mesh properties editor
2024-04-16 10:05:47 +02:00
Dion Moult
60b06bbc44
Fix #3414 . The project wizard now doesn't load a fresh session by default. Note that File > Open still enforces a fresh session.
2024-04-16 10:05:47 +02:00
Andrej730
36e476b744
Cleaning up connections on delete_ifc
...
Noticed an error if you connect wall and slab, then remove the slab and try to regenerate the wall - error occured because connection to that slab wasn't removed.
The error was:
Error: Python: Traceback (most recent call last):
File "\3.6\scripts\addons\blenderbim\bim\module\model\workspace.py", line 381, in invoke
return self.execute(context)
File "\3.6\scripts\addons\blenderbim\tool\ifc.py", line 136, in execute
IfcStore.execute_ifc_operator(self, context)
File "\3.6\scripts\addons\blenderbim\bim\ifc.py", line 421, in execute_ifc_operator
result = getattr(operator, "_execute")(context)
File "\3.6\scripts\addons\blenderbim\bim\module\model\workspace.py", line 373, in _execute
getattr(self, f"hotkey_{self.hotkey}")()
File "\3.6\scripts\addons\blenderbim\bim\module\model\workspace.py", line 465, in hotkey_S_E
bpy.ops.bim.join_wall(join_type="T")
File "C:\software\Steam\steamapps\common\Blender\3.6\scripts\modules\bpy\ops.py", line 113, in __call__
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Error: Python: Traceback (most recent call last):
File "\3.6\scripts\addons\blenderbim\tool\ifc.py", line 136, in execute
IfcStore.execute_ifc_operator(self, context)
File "\3.6\scripts\addons\blenderbim\bim\ifc.py", line 421, in execute_ifc_operator
result = getattr(operator, "_execute")(context)
File "\3.6\scripts\addons\blenderbim\bim\module\model\wall.py", line 76, in _execute
joiner.join_E(context.active_object, context.scene.cursor.location)
File "\3.6\scripts\addons\blenderbim\bim\module\model\wall.py", line 1038, in join_E
self.recreate_wall(element1, wall1, axis, body)
File "\3.6\scripts\addons\blenderbim\bim\module\model\wall.py", line 1145, in recreate_wall
height = self.clip(obj, tool.Ifc.get_object(rel.RelatingElement))
File "\3.6\scripts\addons\blenderbim\tool\ifc.py", line 89, in get_object
return IfcStore.get_element(element.id())
AttributeError: 'NoneType' object has no attribute 'id'
2024-04-16 10:05:47 +02:00
Dion Moult
57cb163c8f
Fix #3393 . Bug where duplicating a typed text didn't also copy its literal.
2024-04-16 10:05:47 +02:00
Andrej730
fa5e785849
Delete edit text from BIM Tool since it's already in Annotation Tool
2024-04-16 10:05:47 +02:00
Andrej730
1d56538152
handle null diffuse color loading ifc styles
...
The error was:
Traceback (most recent call last):
File "\3.6\scripts\addons\blenderbim\bim\module\style\prop.py", line 99, in update_shading_style
tool.Style.set_surface_style_props(blender_material)
File "\3.6\scripts\addons\blenderbim\tool\style.py", line 174, in set_surface_style_props
style_data["DiffuseColour"] = style_data["DiffuseColour"][1]
TypeError: 'NoneType' object is not subscriptable
2024-04-16 10:05:47 +02:00
Gorgious56
5e709d5e64
Enable drawing generation buttons only when an actual drawing is selected
2024-04-16 10:05:47 +02:00
Andrej730
3cc3bace3a
Fixed error on canceling editing railing/roof
...
Since we do not update representation for railing / roofs and just mark them wtih `tool.Ifc.edit(obj)` their previous representation may still be incorrect. So we restore the previous representation just using bmesh update method.
For example if create a new roof, enter editing roof properties mode and then cancel editing, then it would result in "Failed to process a shape" because roof still had just empty Body/PointCloud representation.
2024-04-16 10:05:47 +02:00
Andrej730
056f76c7c0
Fixing errors on loading ifc after ef8f82501
...
The error was:
RuntimeError: Operator bpy.ops.object.editmode_toggle.poll() failed, context is incorrect
Location: C:\software\Steam\steamapps\common\Blender\3.6\scripts\modules\bpy\ops.py:113
Traceback (most recent call last):
File "\3.6\scripts\addons\blenderbim\bim\module\project\operator.py", line 594, in execute
bpy.ops.bim.load_project_elements()
File "C:\software\Steam\steamapps\common\Blender\3.6\scripts\modules\bpy\ops.py", line 113, in __call__
ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Error: Python: Traceback (most recent call last):
File "\3.6\scripts\addons\blenderbim\bim\module\project\operator.py", line 653, in execute
ifc_importer.execute()
File "\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 265, in execute
self.clean_mesh()
File "\3.6\scripts\addons\blenderbim\bim\import_ifc.py", line 1347, in clean_mesh
bpy.ops.object.editmode_toggle(context_override)
File "C:\software\Steam\steamapps\common\Blender\3.6\scripts\modules\bpy\ops.py", line 111, in __call__
ret = _op_call(self.idname_py(), C_dict, kw, C_exec, C_undo)
RuntimeError: Operator bpy.ops.object.editmode_toggle.poll() failed, context is incorrect
Location: C:\software\Steam\steamapps\common\Blender\3.6\scripts\modules\bpy\ops.py:113
2024-04-16 10:05:47 +02:00
Andrej730
d9b124715a
Fixed console errors on checking modeling data
2024-04-16 10:05:47 +02:00
Dion Moult
a00e47f822
Fix #3300 . Bug where it was impossible to delete normal Blender objects in the outliner when an IFC existed.
...
Also port over batch deletion to the outliner override.
2024-04-16 10:05:47 +02:00
Andrej730
17420ca779
model data parameters renamed to pset_data for consitency
2024-04-16 10:05:47 +02:00
Andrej730
ee308ed0b8
DoorData use refactor
2024-04-16 10:05:47 +02:00
Andrej730
577aacb746
WindowData use refactor
2024-04-16 10:05:47 +02:00
Andrej730
8217fcdf47
change .is_editing type for ifc modifiers to boolean
2024-04-16 10:05:47 +02:00
Andrej730
403c5caf0c
RoofData use refactor
2024-04-16 10:05:47 +02:00
Dion Moult
a386a14a6f
Group drawings by target view in the drawing list
2024-04-16 10:05:47 +02:00
Bruno Perdigão
6b98626210
Select all objects in array modifier #3331
2024-04-16 10:05:47 +02:00
Dion Moult
0602711104
Fix #3411 . Filtering sheets now doesn't break sheet hierarchy and also lets you search for sheet identification, name, and names of drawings / titleblocks / things on sheets.
2024-04-16 10:05:47 +02:00
Dion Moult
bee4e77d63
Fix #3432 . Bug where null applicable occurrence of a type product caused the annotation tool to fail.
2024-04-16 10:05:47 +02:00
Andrej730
e92217a362
makefile fix
2024-04-16 10:05:47 +02:00
Andrej730
0a546d847c
minor change for RailingData
2024-04-16 10:05:47 +02:00
Andrej730
984b33cd77
bim.load_project to refresh session on execute not invoke
...
if you accidentally opened file dialog or just changed your mind it shouldn't remove all objects from the current blender session
2024-04-16 10:05:47 +02:00
Andrej730
6505758171
RailingData use refactor, solves #3416
2024-04-16 10:05:47 +02:00
smr02
f0263b0e6c
ifcsverchok delete api_WIP
2024-04-16 10:05:47 +02:00
Andrej730
928ccf1b9f
display current commit in status bar
...
it works for users who symlinked their blenderbim/bim folders to git repository or installed blenderbim from release created from makefile
https://i.imgur.com/mEBH9I7.png
2024-04-16 10:05:47 +02:00
Gorgious56
55821117d5
Fix error when trying to edit an object that doesn't support edit mode with the TAB keypress
...
Also run black on the rest of the file
2024-04-16 10:05:47 +02:00
Dion Moult
5a0192c5c4
Fix #3420 . Fix missing sheet references on drawings and incorrect direction of section references.
2024-04-16 10:05:47 +02:00
Andrej730
3abd3b1b0d
more consistency in values for plan-, section level and diameter
2024-04-16 10:05:47 +02:00
Andrej730
1ae6a0eb5a
radius annotation - support for prefix/suffix/fill-bg
...
and more consistency between viewport and svg
2024-04-16 10:05:46 +02:00
Andrej730
97b3bf5511
PLAN/SECTION_LEVEL consistency between viewport and svg
...
before - https://i.imgur.com/bwYbozz.png
after - https://i.imgur.com/7BlmQIg.png
NOTE that if you're using markers.svg that was created before this update you won't see the changes for the section-/plan-level markers.
2024-04-16 10:05:46 +02:00
Andrej730
710dce845e
fill-bg for diameter, plan- and section-level annotations
2024-04-16 10:05:46 +02:00
Dion Moult
e75afc9ffb
Fix #3417 . Apply 50mm offset to camera to ensure text isn't "behind" the camera. This 50mm convention is used in quite a few places, we should standardise it.
2024-04-16 10:05:46 +02:00
Dion Moult
dc9b11832b
Fix #3425 . Fix invalid IFC data where grid axes should be 2D not 3D.
2024-04-16 10:05:46 +02:00
Thomas Krijnen
c2aa09b374
Update entity_instance.py
2024-04-16 10:05:46 +02:00
Thomas Krijnen
ffa9015798
Lingering changes after conflict resolution
2024-04-16 10:05:40 +02:00
Andrej730
8e4b93fb03
Prevent resetting selected tab on blender restart
...
Not sure if there is any caveats to that
2024-04-16 10:05:08 +02:00
Dion Moult
a5af1ad79b
Fix #3407 . Override Ctrl-S to the export IFC which checks for Blender projects.
...
1. No IFC --> Saves Blend file
2. IFC, unsaved Blend --> Saves IFC
3. IFC, saved Blend --> Saves IFC and Blend
2024-04-16 10:05:08 +02:00
Andrej730
a43863cad3
PLAN_LEVEL annotations support for prefix, suffix #3399
...
Viewport - https://i.imgur.com/XRa3oJO.png
SVG - https://i.imgur.com/C8PjoiO.png
2024-04-16 10:05:08 +02:00
Dion Moult
2d19b82a63
Fix #3414 . Only clear default scene, not custom scene when loading / creating IFCs.
2024-04-16 10:05:08 +02:00
Andrej730
3d96187a91
SECTION_LEVEL annotations support for prefix, suffix #3399
...
also added support for "show only description" for section_level
2024-04-16 10:05:08 +02:00
Andrej730
e5c5c18d8d
Fixed #3400 introduced in dda16c8
2024-04-16 10:05:08 +02:00
Dion Moult
ef0ccfd48f
Resolve merge conflict
2024-04-16 10:05:08 +02:00
Dion Moult
cdf617e95b
Fix registration bug that created hundreds of workspaces due to continuous triggering of the depsgraph_update.
...
Use an is_registering check to only run the on_register once.
Rename setDefaultProperties to load_post to better reflect what handler it is.
Unregister our custom scene panels upon addon activation.
Move aprops getting to tool.Blender because it is a bit complex. Also, aprops may not be setup until load_post is called, so the len() check protects against that.
2024-04-16 10:05:08 +02:00
Gorgious56
b3c4c05690
Keep active object when unlinking an IFC element
...
Unlinking an element recreates a new blender object so the active object would be lost, jumping the properties to the scene panel which was slightly annoying
2024-04-16 10:05:08 +02:00
Andrej730
03aa63bd61
fixed properties search after 949a2bb and fixed console errors on search
...
1) When you search not from the SCENE properties blender creates some kind of phantom area to check search results. As this area is not present in `context.screen.areas` it was resulting in the error below.
2) After 949a2bb search in scene properties was limited to currently selected tab. Given the amount of tools we have in properties and native blender approach for searching across all available sections in properties, it seems reasonable to make search work across all tabs.
Console error was:
The error was
Python: Traceback (most recent call last):
File "\3.6\scripts\addons\blenderbim\bim\ui.py", line 281, in draw
aprops = context.screen.BIMAreaProperties[context.screen.areas[:].index(context.area)]
ValueError: bpy.data.screens['Layout.001']...Area is not in list
2024-04-16 10:05:08 +02:00
Dion Moult
562c775da2
Integrate brickschema undo system into BlenderBIM Add-on undo system wrapper
2024-04-16 10:05:08 +02:00
Andrej730
88defa07ce
Fixed #3412
...
After 949a2bb printing happens not fron N-panel (which is part of viewport) but from scene properties - so current context doesn't have region_3d anymore.
PS The same issue was there all along if you'd try to print the drawing from Camera Properties tab.
2024-04-16 10:05:08 +02:00
Andrej730
37f3ecc8c5
allow to call select/color by attribute by providing arguments
...
instead of always checking scene.BIMSearchProperties. This allows to add different setups of selections to quick favorites
2024-04-16 10:05:08 +02:00
Dion Moult
e451844e13
Implement Ctrl-Tab in properties to conveniently toggle between two tabs.
2024-04-16 10:05:08 +02:00
Dion Moult
e72396585f
Move built-in scene panels to a dedicated "Blender Properties" tab instead of unregistering permanently.
2024-04-16 10:05:08 +02:00
Andrej730
01ebb649d9
Library for US AISC15 Steel Profiles #3203
2024-04-16 10:05:08 +02:00
Gorgious56
f2dd6a6fc1
Trying to edit a railing modifier path while modifying the parameters is now prevented and user is informed with a tooltip
2024-04-16 10:05:08 +02:00
Gorgious56
332db04aa5
Fix IfcRailing modifier support spacing <= 0 would throw an error, and deactivate support spacing field if manual support is selected
2024-04-16 10:05:08 +02:00
Thomas Krijnen
4940f95d7a
2dc4bbf8cd Apply same logic for derived attributes
2024-04-16 10:05:08 +02:00
Dion Moult
d29f0f171c
Override Ctrl-N new file menu to make it easier to start new projects and new IFC icon.
2024-04-16 10:05:08 +02:00
Andrej730
acc5ca339f
Using EPset_Drawing data instead of camera props on drawing print #3396
...
Previously if you change `HasUnderlay` in pset it caused errors because camera properties `has_underlay` wasn't updated.
Still some work need to be done for updating keep camera properties in sync with pset - probably we can should call something like `tool.Drawing.import_drawing()` on EPset_Drawing edit
2024-04-16 10:05:08 +02:00
Dion Moult
4359769d54
See #3411 . Sheets are now sorted alphabetically by default.
2024-04-16 10:05:08 +02:00
Dion Moult
4eba6bd6c0
See #3016 . Scene shading styles are now stored as part of the drawing style.
2024-04-16 10:05:08 +02:00
Dion Moult
a81a48dc75
Update splash image to be centered
2024-04-16 10:05:07 +02:00
Dion Moult
ac0f432190
Fix #3410 . Minor regression when moving UI to properties panel.
2024-04-16 10:05:07 +02:00
Dion Moult
a99f1e15cb
Add support for Point representations too, not just point cloud.
2024-04-16 10:05:07 +02:00
Dion Moult
4ed1eedbfc
Fix bug where all grouped annotations were excluded when opening models, whereas we only want drawing annotations to be excluded.
2024-04-16 10:05:07 +02:00
Massimo Fabbro
d68294d420
Fix bug where drawing decimal places couldn't be 0. Now it's possible to define 0 as value
2024-04-16 10:05:07 +02:00
Dion Moult
8f555db5a4
Forgot to commit updated IfcTester test suite
2024-04-16 10:05:07 +02:00
Dion Moult
52ef8a6042
Fix critical undo sync bug related to invoking instead of executing. See notes.
...
Currently, the undo system works by wrapping the execute operator. What was not considered was that execute() isn't the only entry point to operators. Operators can be invoked. If an invoked operator calls a bpy.ops.bim.something in its invoke() function, then bpy.ops.bim.something will start and finish its own transaction, and then when the invoke finishes and finally runs execute(), another transaction will be started and finished. This means that we get at least one extra transaction logged (one per any call to bpy.ops.bim.foo in invoke()).
This mismatch of number of transactions and undo stack means that when the user presses ctrl-z, the undo doesn't actually occur. This leads to a sync bug.
To be safe, all IFC invokes must be wrapped. This will take some time to review so expect another commit soon.
2024-04-16 10:05:07 +02:00
Dion Moult
05a3a33a9a
Drawing panels now moved to the drawings and documents "tab"
2024-04-16 10:05:07 +02:00
Dion Moult
ea44fa8b89
Update IfcTester to comply with latest modifications to IDS XSD.
2024-04-16 10:05:07 +02:00
Dion Moult
2dbb566072
Visual clean up of annotation tool to only activate when a drawing is active and have a type manager similar to the BIM tool.
2024-04-16 10:05:07 +02:00
Dion Moult
17d9ddd57d
Update tool icons to all use the same underlying "cube" shape and add bracing for structural icon and background walls for spatial icon.
2024-04-16 10:05:07 +02:00
Bruno Perdigão
81504ebb29
recreate decompositions in Refresh operator
2024-04-16 10:05:07 +02:00
Bruno Perdigão
9b89263ad6
changed keymap
2024-04-16 10:05:07 +02:00
Bruno Perdigão
e580269c75
clear BIMObjectPropertis.collection after duplication
2024-04-16 10:05:07 +02:00
Bruno Perdigão
d25fcb8fbf
initial commit
2024-04-16 10:05:07 +02:00
Dion Moult
daf3c6dffc
Fix #3390 . Type products should not be set in the model interface.
2024-04-16 10:05:07 +02:00
Thomas Krijnen
d6250aaf2a
#3189 proposal ( #3190 )
2024-04-16 10:05:07 +02:00
Bruno Perdigão
8b71db92e2
removed total_items from the operator
2024-04-16 10:05:07 +02:00
Bruno Perdigão
a4c90d8b53
implementation of #3332
2024-04-16 10:05:07 +02:00
Dion Moult
02bca5a622
Fix #3402 . Activate drawing no longer affects the visibility of non-IFC objects.
2024-04-16 10:05:07 +02:00
Dion Moult
8977d37ccd
Fix #3403 . Templates must be specific to the version you are creating.
2024-04-16 10:05:07 +02:00
Dion Moult
8c1214e8c4
Start mocking up our own property "tabs" with the intention to use this new tab system instead of Blender property tabs
...
Blender property tabs are hardcoded and we cannot customise them. IFC data only "somewhat" maps to Blender property tabs, and some things fail to map causing user confusion. For example material and styles are very confusing. Also scene and object properties are crazy overpopulated (see how many times IFCArchitect bulk collapses things). And this also causes things to be spread out and lost (e.g. some random panels in viewport N menu). This should give us a lot more control to organise panels exactly how we want them.
2024-04-16 10:05:07 +02:00
Dion Moult
387bf6aa58
Workspace inspired by IFCArchitect's layout is now setup by default and irrelevant Blender scene panels are hidden. You can disable this behaviour for advanced users, or use your own workspace layout but at least now there is a better "BIM-optimised" layout.
...
The layout uses three columns with a focus on a larger outliner (important as BIM models have lots of objects and complex hierarchies!) and properties, and removes the mostly irrelevant timeline for beginners.
2024-04-16 10:05:07 +02:00
Dion Moult
44ff5b12cd
You can now create, open, and save projects from the file menu, with simple project presets. Also the scene is cleared so no more manual cube / light / camera deletion. Also poll prior to saving. No more import / export menu to confuse users.
...
https://imgur.com/a/EIt2H5b
2024-04-16 10:05:07 +02:00
Dion Moult
8e053de4e5
Delete old annotation panel in favour of annotation tool
2024-04-16 10:05:07 +02:00
luzpaz
1819a45e4c
Fix various typos in src/ifcgeom* subdirs
2024-04-16 10:05:04 +02:00
Richard Brice
e946e34823
Apparent fix to cant placement matrix
2024-04-15 12:41:36 -07:00
Dion Moult
3e7afbed08
Minor doc improvements and SQL/stream code cleanup
2024-04-15 13:30:42 +02:00
Dion Moult
bb7a73feac
Fix #3394 . Fix bug where railing and roof type names were hardcoded. Also improve UI of create type form so you can actually read the fields.
2024-04-15 13:30:42 +02:00
Dion Moult
cb412c78b5
Fix #3213 . Internally, we should always use Unix path separators.
2024-04-15 13:30:42 +02:00
Dion Moult
7d83eb114a
The user can now toggle between rotate before / after translating in OffsetObjectPlacements
2024-04-15 13:30:42 +02:00
Dion Moult
c45b28e78a
Fix #3016 . Drawing styles that set the shading style will change shading style upon activating the style.
2024-04-15 13:30:42 +02:00
Dion Moult
8896a74d1b
Fix #3121 . Merge equivalent contexts when merging projects in MergeProject Ifcpatch recipe.
2024-04-15 13:30:42 +02:00
Dion Moult
fac527b0fe
Fix failing tests since Github test runner only has IFC4X3_ADD1 not TC1 compiled in.
2024-04-15 13:30:42 +02:00
Trashman247
73d2146a6c
Remove binding namespace new project (already in schema)
2024-04-15 13:30:41 +02:00
Trashman247
0c5a8bea4e
remove import BrickStore in props
2024-04-15 13:30:41 +02:00
Trashman247
301800d8ed
Add brick operator accepts label parameter & add toggle for namespace editing
2024-04-15 13:30:41 +02:00
Trashman247
a28b8c1cd4
Add filter to listed namespaces (need add more aliases)
2024-04-15 13:30:41 +02:00
Trashman247
79e9bef565
Double space core functions and clear brick browser on project close
2024-04-15 13:30:41 +02:00
Trashman247
8b2fae4369
Separate serialize into "save" and "save as" with file selection
2024-04-15 13:30:41 +02:00
Sigma Dimensions
676c96c6e2
Georeferencing utility to convert an angle in degrees to X Axis Abscissa and Ordinate
2024-04-15 13:30:41 +02:00
Dion Moult
13075dcae4
See #3126 and 5b4010c. Fix failing tests, and allow schema_by_name to follow the same schema_version distinction as file.
2024-04-15 13:30:41 +02:00
Andrej730
236581baa3
w-type US steel profiles #3203
2024-04-15 13:30:41 +02:00
Dion Moult
e8d6f122f3
See #3126 . Forgot to commit tests related to explicit schema versions.
2024-04-15 13:30:41 +02:00
Thomas Krijnen
22ffd3d2b7
Update win32 download links installation.rst
2024-04-15 13:30:41 +02:00
Thomas Krijnen
26d0f98cd9
#3359 return early in case of no-prefiltering
2024-04-15 13:30:41 +02:00
Andrej730
8f6f03cd27
fill-bg support for dimensions #3387
...
Example - https://i.imgur.com/lvJwtDI.png
works the same way as for text by adding "fill-bg" to EPset_Annotation.Classes
2024-04-15 13:30:41 +02:00
Dion Moult
54492e3769
Fix #3383 . Disallow any extrusion angles >=90 which are invalid.
2024-04-15 13:30:41 +02:00
Dion Moult
1c739dfa55
Test all shapes in the debug panel now also attempts 2D checks to prevent false positives.
2024-04-15 13:30:41 +02:00
Dion Moult
6d37104280
Revert "More descriptive RuntimeError: Failed to process shape #3383 "
...
This reverts commit 1542217117 .
2024-04-15 13:30:41 +02:00
Andrej730
6f9c9d1032
More descriptive RuntimeError: Failed to process shape #3383
...
Example of the new error - https://i.imgur.com/0FMQw5V.png
2024-04-15 13:30:41 +02:00
Dion Moult
e9d12d5e31
Fix #3126 . Implement mapping from IFC4X3 to IFC4X3_ADD1 and explicit version identifiers in ifcopenshell.file
2024-04-15 13:30:41 +02:00
Dion Moult
814bec11e9
Fix #3386 .
2024-04-15 13:30:41 +02:00
Dion Moult
69e650cc50
Fix #3349 . Allow inserting a filling into an uncontained building element.
2024-04-15 13:30:41 +02:00
Bruno Perdigão
7d56f91aa0
fix #3063
2024-04-15 13:30:41 +02:00
Dion Moult
8ba976078b
Fix #3382 . Minor regression in wall join refactor from d64c135
2024-04-15 13:30:41 +02:00
Sigma Dimensions
3e2a509793
fix #3385 - renaming grids with "F2"
2024-04-15 13:30:41 +02:00
Bruno Perdigão
1486dc26e6
minor fix
2024-04-15 13:30:41 +02:00
Bruno Perdigão
72b2cf626f
bugfix and alt+click functionality
2024-04-15 13:30:41 +02:00
Bruno Perdigão
4be1fa7632
implements #3268
2024-04-15 13:30:41 +02:00
Andrej730
e792471725
Moving editing roof and railing paths hotkey from Shift+E/Q to Tab
2024-04-15 13:30:41 +02:00
Andrej730
444166b37c
Fix #3263
2024-04-15 13:30:41 +02:00
Andrej730
7a91b3d153
railing modifiers - fixing normals for frameless_panel #3277
2024-04-15 13:30:41 +02:00
Dion Moult
200aeb896d
See #3359 . Bump IfcOpenShell and enable HLR prefiltering optimisation for drawing generation
2024-04-15 13:30:41 +02:00
Andrej730
20d19bfcba
type selection error #3318
...
if you switch ifc_class then relating_type_id can become invalid and we wasn't taking it into account
Also fixed bunch of warning like `pyrna_enum_to_py: current value '17' matches no enum in 'BIMModelProperties', '', 'relating_type_id'`` when some ifc_class has N related types and then you switch to other ifc_class that has less than N related types.
2024-04-15 13:30:40 +02:00
Andrej730
461eeba9ff
Revert "enable activating object type when trying to select type from an object ( whilst the type is hidden from view layer)"
...
This reverts commit 4bc987924d since there was some unintentional changes.
Now when you use select_type in object properties - ifc class and related type gets selected in the BIM Tool - https://i.imgur.com/drIHYDz.png
#3318
2024-04-15 13:30:40 +02:00
Andrej730
5b10923b45
ShapeBuilder.polyline - skip creating segments if they are not needed
2024-04-15 13:30:40 +02:00
Dion Moult
4efe780df7
Fix #3356 . Include version info in status bar for debugging and new copy debug info button to help bugreporting.
2024-04-15 13:30:40 +02:00
Dion Moult
a5579d1d69
Fix #3256 . Support file profiles made out of multiple representation items.
2024-04-15 13:30:40 +02:00
Dion Moult
f1e3fb38ad
See #3334 . Fix some get_pset implementation errors in 64516a1
2024-04-15 13:30:40 +02:00
OrionSehn
0f6e934ca8
Proposed fix to #3352
2024-04-15 13:30:40 +02:00
Andrej730
1109d4cc51
Sync ifc class in BIM Tool and Type Manager
...
It's seems it would be better for ux if they will be connected
2024-04-15 13:30:40 +02:00
Andrej730
bd70f7bf7f
add_representation - detect non consequtive curves and handle them
...
Basically if current mesh curve is non consequtive we handle it in similar way to b03c4da7b - convert it to curves using Blender and then save them to ifc.
The advantage is that it creates less curves in ifc because mesh method wasn't able to detect separate curves correctly if vertex order was messed up (usually it is) and it would create separate curve for each curve segment.
I've also replaced figuring vertex duplicates with `bmesh.ops.remove_doubles` manually with `bmesh.ops.remove_doubles` and it's now much faster. In some cases because of the manual calculations it was taking too long - in #3233 Ryan mentiones that it freezes blender, it wasn't really freezing Blender but to finish calculations it would take 10 minutes.
2024-04-15 13:30:40 +02:00
Dion Moult
d81e64f7a2
See #3376 . Bump updated build of IfcSverchok.
2024-04-15 13:30:40 +02:00
Dion Moult
00ccb77f86
Merge AWS Lambda installation documentation into official docs
2024-04-15 13:30:40 +02:00
Dion Moult
5dd9a24647
Whoops
2024-04-15 13:30:40 +02:00
Dion Moult
d435152904
Close #3377 . Implement xyz coordinates for COBie object placement.
2024-04-15 13:30:40 +02:00
Dion Moult
5840b1770e
Write IfcOpenShell documentation for geometry trees.
2024-04-15 13:30:40 +02:00
Andrej730
33d3afc35d
experimental support for spline curves representation #3233
...
there is still no full support but as a workaround I've added blender converting curves to meshes and back to curves so we could preserve the actual shapes
before - https://i.imgur.com/9F542Iy.png
after - https://i.imgur.com/t58RlkF.png
2024-04-15 13:30:40 +02:00
Dion Moult
ce8a9293bb
See #3334 . Optimise pset getting and add simple "broadphase" filtering for all facets for faster validation.
2024-04-15 13:30:40 +02:00
Dion Moult
b8e2e693f1
Fix bug where IfcTester would pass derived attribute facets.
...
Now that IfcOpenShell supports derived attributes, we need to explicitly make sure the attribute facet only considers forward attributes.
2024-04-15 13:30:40 +02:00
Dion Moult
9af7ddaf56
See #3334 . Fix bug where get_pset didn't handle property inheritance correctly.
2024-04-15 13:30:40 +02:00
c4rlosdias
31a6049eb6
Add extra formats to output file
2024-04-15 13:30:40 +02:00
Andrej730
5474d0f56a
Prevent crash on attempt to link the current .blend file
2024-04-15 13:30:40 +02:00
Andrej730
d57e152c7d
Storing external styles paths as posix for cross platform compatibility
...
Also it was wrongly referring to .blend file instead of .ifc to generate relative paths.
2024-04-15 13:30:40 +02:00
Andrej730
3fa5679bd7
disable default vebose mode for getting shader attribute to prevent spam
2024-04-15 13:30:40 +02:00
Andrej730
5ce7abbda0
adding default ifc objects added from shift-a menu to the current collection
2024-04-15 13:30:40 +02:00
Andrej730
1b39f243eb
Editiing arbitrary profile without enabling editing profile
...
It was a bit confusing UX since when you finish editing arbitrary profile path the data is already saved in ifc but you were still in editing profile properties
2024-04-15 13:30:40 +02:00
Andrej730
9864f7d19e
Update type manager thumbnails on editing profiles
...
Example - https://imgur.com/a/IcV8IIR
2024-04-15 13:30:40 +02:00
Andrej730
5a5e1e9892
disable chaching sound running the bim tests
...
to save someone's ears (probably mine 😁 ) from running 10 chaching sounds per second
2024-04-15 13:30:40 +02:00
Dion Moult
4845242769
Fix #3366 . Fix crash in IfcDiff if you are comparing a model with no geometry.
2024-04-15 13:30:40 +02:00
Andrej730
847d30fdaa
Fixed errors displaying IFC Connections for IfcRelConnectsElements
...
IfcRelConnectsElements type of connection wasn't handled properly resulting in errors.
Now you should be able to see connections for connected slabs, walls etc - https://i.imgur.com/LpFBKBC.png
Traceback:
Traceback (most recent call last):
File "\blenderbim\bim\module\geometry\ui.py", line 102, in draw
ConnectionsData.load()
File "\blenderbim\bim\module\geometry\data.py", line 100, in load
cls.data = {"connections": cls.connections()}
File "\blenderbim\bim\module\geometry\data.py", line 134, in connections
relating_element_connection_type = rel.RelatingConnectionType
File "\blenderbim\libs\site\packages\ifcopenshell\entity_instance.py", line 171, in __getattr__
raise AttributeError(
AttributeError: entity instance of type 'IFC4.IfcRelConnectsElements' has no attribute 'RelatingConnectionType'
2024-04-15 13:30:40 +02:00
Dion Moult
99e2598c00
Fix #3355 . Reimplement graphical clash snapshots in BCF from IfcClash in the BlenderBIM Add-on.
2024-04-15 13:30:40 +02:00
Dion Moult
6758d878d8
You can now unload BCF projects to load another one.
2024-04-15 13:30:40 +02:00
Trashman247
6986b901d0
Move Brick.ttl ignore to main git-ignore file
2024-04-15 13:30:10 +02:00
Trashman247
9cedd37694
Silence known rdflib_sqlalchemy TypeError warning
2024-04-15 13:29:29 +02:00
Trashman247
2b52ab930c
Implement fully undo/redo with checks
...
While these actions are short in the backend--taking about 0.01 seconds to run--the Blender UI lags a lot leading to 2-3 second pauses because of the "refresh_brick_viewer" function being slow. This should be investigated.
2024-04-15 13:29:29 +02:00
Trashman247
36d0e33958
Change namespace selector to only show alias
2024-04-15 13:29:29 +02:00
Trashman247
6a88905e23
Add changeset versioning to Brick add/remove
2024-04-15 13:29:29 +02:00
Trashman247
64d1fb4ee7
Reformat commenting, remove prints, and remove BrickStore.project
2024-04-15 13:29:29 +02:00
Trashman247
bcd7c79004
Implement fully serialize operator
...
- Turns out, you need the keyword "graph=" in graph_at() to actually select a graph of that name from the collection, otherwise it just returns the entire collection, so I changed that, which correctly isolates the project from the collection for serialization now.
- With this same change, I opted turn BrickStore.VersionedGraphCollection simply into BrickStore.graph and create a new BrickStore.get_project() to return the isolated graph. - This meant I should remove the reload_graph() function because I was actually just loading the entire collection into it still, and its functionality breaks when it isn't the entire collection
2024-04-15 13:29:29 +02:00
Trashman247
38788cc95b
Implement early testing for serialize operator (not functional)
...
All the right code seems to be in place, but it seems the package won't go through with the serialize function because of read/write permissions (ERRNO 13)
2024-04-15 13:29:29 +02:00
Trashman247
4a04411262
Change graph naming to all caps
2024-04-15 13:29:29 +02:00
Trashman247
590049638e
Add Brick.ttl to .gitignore
2024-04-15 13:29:29 +02:00
Trashman247
b13f6116d0
Update BrickStore.purge()
...
I wanted to just have a BrickStore.clear() which would so this:
BrickStore.VersionedGraphCollection = None
BrickStore.graph = None
BrickStore.path = None
(aka not also set BrickStore.schema = None, since it should theoretically just load in the same path anyway) but for some reason Blender crashes when clearing a project and loading one again this way.
2024-04-15 13:29:29 +02:00
Trashman247
d2815415df
Rework NewBrick and LoadBrick in test_brick.py to fit with new VGC format
...
- VGC means VersionedGraphCollection.
- BrickStore.schema is now a filepath, so make that the case in the testing also.
2024-04-15 13:29:29 +02:00
Trashman247
c85b97af5a
Implement VersionedGraphCollection to Brick module
...
- Reworked `load_brick_file` and `new_brick_file` to fit under the VersionedGraphCollection implementation. (Other methods may have broken).
- Added `undo_brick` and `redo_brick`.
- Kept BrickStore.graph the same as to generally still work with the rest of the code. This was done by parsing the VersionedGraphCollection with the new `reload_brick_graph` method.
2024-04-15 13:29:29 +02:00
Carlos Dias
205128400e
Update operator.py
...
missing output file format in arguments
2024-04-15 13:29:28 +02:00
Andrej730
6e01d5ce01
reworked detecting neighbour walls when placing new ones
...
hopefully it will be a bit more natural now - please give feeback
before - https://imgur.com/a/VYQt5ua
now - https://imgur.com/a/5LRAmrd
2024-04-15 13:29:28 +02:00
Andrej730
6a1d1cf039
More responsive UI for IFC search
2024-04-15 13:29:28 +02:00
Andrej730
62ecb1e261
a bit of bim.join_wall refactor
2024-04-15 13:29:28 +02:00
Andrej730
4e186f4a62
Error editing roof profile #3357
...
it was assuming it's a slab and was giving errors trying to start editing slab profile
File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\blenderbim\bim\module\model\slab.py", line 618, in _execute
if extrusion.Position:
AttributeError: 'NoneType' object has no attribute 'Position'
2024-04-15 13:29:28 +02:00
Bruno Postle
84b08fa448
BlenderBIM Git documentation minor corrections
2024-04-15 13:29:28 +02:00
Bruno Postle
e61c572743
BlenderBIM document Git merge asymmetry ( #3096 )
2024-04-15 13:29:28 +02:00
Dion Moult
fcd68a1e64
Whoops
2024-04-15 13:29:28 +02:00
Dion Moult
623ac1fe93
Fix hppfcl segfault by bumping hppfcl and its dependencies. Remove support for py37.
2024-04-15 13:29:28 +02:00
Andrej730
2122ab7bdc
Added warning for a86456392
2024-04-15 13:29:28 +02:00
Andrej730
49abaf6798
improved relative path handling for textures #3365
...
now we're going to store all texture paths in .ifc as posix to keep them working if .ifc moved from one platform to another
previously it was saving all paths as absolute
2024-04-15 13:29:28 +02:00
Andrej730
bfcc8decc0
Calculating angle based on world position instead of camera pos #3362
2024-04-15 13:29:28 +02:00
Andrej730
1357b83d99
Added support for OCCLUSION textures for 3aff29dec
2024-04-15 13:29:28 +02:00
Andrej730
0d74ffd52f
Shape builder - detect AdvancedSweptSolid
...
To avoid validation errors on creating wall mounted railings
#143=IfcShapeRepresentation(#15,'Body','SweptSolid',(#116,#126,#129,#139,#142))
Rule IfcShapeRepresentation.CorrectItemsForType:
IfcShapeRepresentationTypes(self.RepresentationType, self.Items)
Violated by:
False
+ where False = IfcShapeRepresentationTypes('SweptSolid', (#116=IfcSweptDiskSolid(#115,10.,$,$,$), #126=IfcExtrudedAreaSolid(#120,#124,#125,20.), #129=IfcSweptDiskSolid(#128,10.,$,$,$), #139=IfcExtrudedAreaSolid(#133,#137,#138,20.), #142=IfcSweptDiskSolid(#141,25.000000372529,$,$,$)))
+ where 'SweptSolid' = #143=IfcShapeRepresentation(#15,'Body','SweptSolid',(#116,#126,#129,#139,#142)).RepresentationType
+ and (#116=IfcSweptDiskSolid(#115,10.,$,$,$), #126=IfcExtrudedAreaSolid(#120,#124,#125,20.), #129=IfcSweptDiskSolid(#128,10.,$,$,$), #139=IfcExtrudedAreaSolid(#133,#137,#138,20.), #142=IfcSweptDiskSolid(#141,25.000000372529,$,$,$)) = #143=IfcShapeRepresentation(#15,'Body','SweptSolid',(#116,#126,#129,#139,#142)).Items
2024-04-15 13:29:28 +02:00
Andrej730
805d6652f1
set default position on creating window and door
...
to avoid validation errors like IfcProduct.PlacementForShapeRepresentation
2024-04-15 13:29:28 +02:00
Andrej730
2fc79e0bd3
Fixing ifc git poll errors if .ifc file is not yet saved
...
Errors:
Traceback (most recent call last):
File "\Blender\3.6\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 20, in poll
if not os.path.isfile(path_ifc):
File "\Blender\3.6\python\lib\genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
Traceback (most recent call last):
File "\Blender\3.6\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 48, in poll
if not os.path.isfile(path_ifc):
File "\Blender\3.6\python\lib\genericpath.py", line 30, in isfile
st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType
2024-04-15 13:29:28 +02:00
Andrej730
d511b6fdc8
updated furniture library after f5031035c and a385938
2024-04-15 13:29:28 +02:00
Andrej730
5c1a96c24c
Shape builder - avoid duplicated indices in polylines
...
For example
IfcLineIndex((1,2,3,4,1))
instead of
IfcLineIndex((1,2,2,3,3,4,4,1))
2024-04-15 13:29:28 +02:00
Thomas Krijnen
cb804f2e84
Fix openbot build
2024-04-15 13:29:28 +02:00
Massimo Fabbro
62a0b64b2a
Add regen button also under space tool
2024-04-15 13:29:20 +02:00
Dion Moult
3dd75e98a0
See #3283 . Minor fix where IfcContext is abstract, so IfcProjectLibrary should be checked instead when loading filtered models.
2024-04-15 13:29:20 +02:00
Dion Moult
82519a56c2
Fix failing build
2024-04-15 13:29:20 +02:00
Dion Moult
5f73a2b36d
Bundle qhull for hppfcl on Linux too
2024-04-15 13:29:20 +02:00
Thomas Krijnen
4e599cf132
Fix openbot build
2024-04-15 13:29:20 +02:00
Thomas Krijnen
b76beabb43
Fix openbot build
2024-04-15 13:29:20 +02:00
Andrej730
57f43fe608
Support for door/window/stair modifiers in ifc2x3
2024-04-15 13:29:20 +02:00
Andrej730
ced6326bfd
ShapeBuilder to use IfcPolyline of IfcIndexedPolyCurve to support ifc2x3
...
needed it to add suport for window/door modifiers in ifc2x3 in the next commit
2024-04-15 13:29:20 +02:00
Andrej730
2b3a7ba30c
fixing errors running tests if no tool selected in blender startup file
...
Error was: AttributeError: 'NoneType' object has no attribute 'idname'
2024-04-15 13:29:20 +02:00
Dion Moult
34d44c9e7c
Bundle qhull for ifcclash on macosm1
2024-04-15 13:29:20 +02:00
Thomas Krijnen
fe7d550ef7
Help swig not to trip over old occt handle definitions
2024-04-15 13:29:18 +02:00
Thomas Krijnen
727d075e0e
Add --prefilter flag to draw.py
2024-04-15 13:28:16 +02:00
Thomas Krijnen
09d7cd97c8
SVG prefiltering elements based on large faces
2024-04-15 13:28:13 +02:00
Andrej730
212b707464
simplified dev installation script for mac/linux
2024-04-15 13:25:51 +02:00
Andrej730
ac45b16e73
Fixed crash on Mac m1 on removing unused types (similar to 4d0be1972)
2024-04-15 13:25:51 +02:00
Andrej730
7a4baed6e6
Fix crash on Mac M1 on removing cost item
...
Crash happened because we were addressing `.id()` of already deleted `cost_item`.
Surprisingly for me on windows addressing `cost_item` was causing crash too but `cost_item.id()` worked fine.
2024-04-15 13:25:51 +02:00
Andrej730
704ec5e8f9
avoid errors unregistering tools from tests
2024-04-15 13:25:51 +02:00
Dion Moult
0e47b6ff34
Attempt to bundle hppfcl for macosm1
2024-04-15 13:25:51 +02:00
Andrej730
d522174247
Console warnings if drawing's assets not found #3325
2024-04-15 13:25:51 +02:00
Andrej730
5d01489251
unregistering spatial and structural tools on disabling addon
2024-04-15 13:25:51 +02:00
Andrej730
8d18a8a023
Fix for f88835b #3271
...
Now we do not rely on small offset to keep using inner curves to create linings, if some part of the lining is not present (which happens on mullions and transoms) we'll create U or L shape extrusion instead of rectangle with inner curve.
Long story short - this should keep ifc for windows valid.
2024-04-15 13:25:51 +02:00
Andrej730
e3b77613d3
Corrected L shapes in window lining after e89a9cd #3271
...
From this - https://i.imgur.com/hQuCcR3.png
To this - https://i.imgur.com/qZ2Lyfo.png
It's a bit hacky since we still use really small offsets to keep "The outer curve shall enclose all inner curves." rule for IfcArbitraryProfileDefWithVoids valid.
2024-04-15 13:25:51 +02:00
Andrej730
61be440545
Disable default stream mode for now to avoid errors #3354
2024-04-15 13:25:51 +02:00
Andrej730
1a7382ef40
Poll message for bim.file_unassociate/bim.file_associate
2024-04-15 13:25:51 +02:00
Andrej730
8a9dcbad2f
Fixed error on saving styles without textures after 3aff29dec
2024-04-15 13:25:51 +02:00
Andrej730
4e1acc7955
Added IFC override operators to outliner/object context menus #3345
...
Outliner context menu - https://i.imgur.com/TkJKbLh.png
Object context menu - https://i.imgur.com/JXOEdYH.png
2024-04-15 13:25:50 +02:00
Dion Moult
9d462dab7d
Docs now point to the popular Search IFC Class website.
2024-04-15 13:25:50 +02:00
Dion Moult
bde5b52495
You can now exclude classes from streaming in ifcopenshell.stream
2024-04-15 13:25:50 +02:00
Andrej730
2fbb3c8ac6
adjust window offset on transoms/mullions for symmetry #3271
...
Before - https://i.imgur.com/DbEzJ9H.png
After - https://i.imgur.com/0CERh86.png
Added it for modifier preview and ifc 2d and 3d repr but still need to work some things in 3d representation (L shape lining is not always detected correctly).
2024-04-15 13:25:50 +02:00
Dion Moult
531dc21d8e
New option to enable streaming IFC data into BBIM.
...
To test, go into add-on preferences and enable "Should Stream". Then load an IFC-SPF in advanced mode, and disable "Load Geometry" before loading (the geometry iterator doesn't work with streaming).
2024-04-15 13:25:50 +02:00
Dion Moult
17582f00cf
Naive implementation of file stream and Lark based IFC-SPF reader to handle huge IFCs.
2024-04-15 13:25:50 +02:00
Andrej730
bc20b4a899
Fixing tests after 2dc9dc200
2024-04-15 13:25:50 +02:00
Andrej730
6d152c4fc4
Support for import IfcSurfaceStyleWithTextures
...
Added UI for adding textures in BBIM shader graph generator
https://imgur.com/a/BI5pOZn
2024-04-15 13:25:50 +02:00
Dion Moult
9beae21615
See #3347 . Hotfix latest IfcOpenShell SQLite features when making builds.
2024-04-15 13:25:50 +02:00
Dion Moult
115bd32846
The BlenderBIM Add-on now supports loading IFCSQLite files!
2024-04-15 13:25:50 +02:00
Dion Moult
304a5594bb
You can now toggle loading geometry in advanced mode when loading a project
2024-04-15 13:25:50 +02:00
Dion Moult
fee6ea52ba
ifcopenshell.sqlite wrapper now handles JSON fields by default, which is significantly more performant
...
f attributes holding entity lists are expanded in SQL, this means that you end up with significantly more rows. Also, you cannot have the ifc_id marked as a UNIQUE field / benefit from unique primary key index. So leaving the fields as JSON is actually significantly more efficient (almost 10X faster to load a model into BBIM).
2024-04-15 13:25:50 +02:00
Dion Moult
af796d5f9d
Ifc2Sql patch now can store inverses for efficient queries.
2024-04-15 13:25:50 +02:00
Andrej730
0a22e8d7c2
Fixed typo in e3a7f7627
2024-04-15 13:25:50 +02:00
Andrej730
46bc71eac9
Fixing bug after 28cc168
...
Was causing some tests to fail
2024-04-15 13:25:50 +02:00
Andrej730
5cb1936412
Avoid ui errors after 2dc9dc200
2024-04-15 13:25:50 +02:00
Andrej730
91fa5b1ec6
Unhide in render for not excluded objects #3338
...
Objects were hidden in render but never unhidden if they were no more in drawing's .Exlcude
2024-04-15 13:25:50 +02:00
Andrej730
48d91dac21
Generating IFC compatible shader graphs
...
Added new panel. in shader graph N-panel that allows you to create fully GLTF and IFC compatible shader graphs by just tweaking parameters from the panel. Note that it's still saved to IFC only when you hit "Save Current Style", before that it's still just stored in blender.
https://imgur.com/a/vmkoLPH
The premise is that if you want to have non-external style you'd be able to create it entirely from this panel - so there will no need to guess or to remember which parameters from the graph are supported by IFC and which are not.
It's still work in progress, still need to polish it, add support for more reflectance methods and add suport for textures (need to be able to import/export it with .ifc and set them from this panel).
2024-04-15 13:25:50 +02:00
Andrej730
ebcc6b534d
Fixed #3342
2024-04-15 13:25:50 +02:00
Andrej730
f79053433f
Set shading flat by default to solve #3336
...
Before blender 3.6 it was setting flat shading by default, so we just keeping the same behaviour.
2024-04-15 13:25:50 +02:00
Thomas Krijnen
20f279dfa3
IFC4X3 codegen #2805
2024-04-15 13:24:59 +02:00
Thomas Krijnen
3266648896
IfcGeom dynamic casting updates #2805
2024-04-15 13:23:11 +02:00
Andrej730
77839efd6a
option to keep the viewport position on activating drawing #3333
...
currently it works with alt clicking activate drawing button
https://i.imgur.com/lgvP4QA.png
2024-04-15 13:03:26 +02:00
Andrej730
7f6cf90759
Fixed #3335 caused by 36b746d
2024-04-15 13:03:26 +02:00
Bruno Postle
7e9cef2d8e
BBIM fix Git panel polling repo on refresh ( #3096 )
...
Just scrolling Git panel shouldn't do any Git IO
2024-04-15 13:03:26 +02:00
Massimo Fabbro
eb225070d3
Add toggle space visibiity button into spatial tool menu
2024-04-15 13:03:01 +02:00
Andrej730
2ac74fb535
refactor with SKIP_SAVE option on operator props
...
Co-Authored-By: Gorgious56 <25156105+Gorgious56@users.noreply.github.com >
2024-04-15 13:03:00 +02:00
Andrej730
89146ea046
More options to save .ifc as relative path in blender
2024-04-15 13:03:00 +02:00
Andrej730
7f10eaa14f
Fixed tests after a4a6dce
2024-04-15 13:03:00 +02:00
Andrej730
4d3ed81971
Fixed test after b035129
2024-04-15 13:03:00 +02:00
Andrej730
5e019bbc42
Fixed test after c8c0c9a
...
Taking into account that now we have error messages if user will try to remove the last material layer which would make layer set invalid ifc.
FAILED test/bim/test_feature.py::test_remove_material_set_layer - AssertionError: Failed to run operator bpy.ops.bim.remove_layer(layer=IfcStore.get_file().by_id(93).MaterialLayers[...
2024-04-15 13:03:00 +02:00
Andrej730
765d52d4e1
Fixed missing ifc file in api call after 28cc168
...
Some bim test was failing because of it
FAILED test/bim/test_feature.py::test_assign_material__material_profile_set - AssertionError: No material Default found in profiled materials: []
2024-04-15 13:03:00 +02:00
Andrej730
07401c4b1c
Fixed void tests after d3d2c36
2024-04-15 13:03:00 +02:00
Andrej730
0f206fe709
Fixing test after 1c12a98
...
FAILED test/bim/test_feature.py::test_export_ifc__with_basic_contents_and_saving_as_a_relative_path - AssertionError: Value is C:\IfcOpenShell\src\blenderbim\test\files\temp\export.ifc
2024-04-15 13:03:00 +02:00
Andrej730
3a0d09a6dc
Small fix related to 5c2ae98c0 and a bit more descriptive operator error
...
FAILED test/bim/test_feature.py::test_create_project__ifc2x3 - AssertionError: Failed to run operator bpy.ops.bim.create_project
2024-04-15 13:03:00 +02:00
Andrej730
5397b95df5
Fixing collections tests related to 99d9c0f5b
...
FAILED test/bim/test_feature.py::test_remove_drawing - AssertionError: The collection "IfcGroup/PLAN_VIEW" does not exist
2024-04-15 13:03:00 +02:00
Bruno Postle
489436449c
BlenderBIM push Git tags to remote
...
Shows error message if push fails
2024-04-15 13:03:00 +02:00
Andrej730
a7283ca538
Fixed duplicated objects collections issue after 586707dd2
...
Duplicated objects were not able to have their own collection after 586707dd2
Also fixed bim test
FAILED test/bim/test_feature.py::test_copy_a_storey - AssertionError: assert 'IfcBuildingStorey/My Storey.001' in ['IfcBuildingStorey/My Storey']
2024-04-15 13:03:00 +02:00
Andrej730
6b0200e1f0
Preserving original name on unlinking
...
Unlinking was using copied object name for the unlinked object instead of the original one.
So it worked like Cube -> IfcWall/Cube -> Cube.001 and bim test was failing:
FAILED test/bim/test_feature.py::test_unlink_object - AssertionError: The object "Cube" does not exist
2024-04-15 13:03:00 +02:00
Andrej730
f45e3b99ca
Fixed couple bugs in test_feature
...
1) Explicitly set empty ifc project not to load demo library - was still loading because it was using my default scene which caused errors.
2) typo in dimension check assertion message
2024-04-15 13:03:00 +02:00
Andrej730
787f9cd7be
Fixing collectors tests after 1f43ec8
2024-04-15 13:03:00 +02:00
Andrej730
ea9457a49f
Fixing tool tests
2024-04-15 13:03:00 +02:00
Andrej730
664d0e0fa6
Fixing core tests
2024-04-15 13:03:00 +02:00
Andrej730
f4067abc42
Fixed import error with filtering out IfcGrid's spatial element #3283
...
Fixed error that was occuring if you try to import .ifc file where spatial element contains only grid and will use advanced mode, filter mode = "IFC Class" and check "Filter Spatial Elements".
Error occured because spatial element was filtered out but then when ifc grid was created and importer to find a spatial element based collection for the grid it couldn't find it.
Traceback:
Error: Python: Traceback (most recent call last):
File "\blenderbim\bim\module\project\operator.py", line 595, in execute
ifc_importer.execute()
File "\blenderbim\bim\import_ifc.py", line 260, in execute
self.place_objects_in_collections()
File "\blenderbim\bim\import_ifc.py", line 1494, in place_objects_in_collections
self.place_object_in_collection(self.file.by_id(ifc_definition_id), obj)
File "\blenderbim\bim\import_ifc.py", line 1498, in place_object_in_collection
self.place_object_in_decomposition_collection(element, obj)
File "\blenderbim\bim\import_ifc.py", line 1517, in place_object_in_decomposition_collection
return self.place_object_in_spatial_decomposition_collection(element, obj)
File "\blenderbim\bim\import_ifc.py", line 1545, in place_object_in_spatial_decomposition_collection
self.collections[container.GlobalId].children.link(grid_collection)
KeyError: '33AiKftFj2aAf2MqQr5Gs7'
2024-04-15 13:03:00 +02:00
Andrej730
ae44957464
Fixed getting filtered spatial elements at import for ifc2x3 #3283
...
In ifc2x3 IfcProject is not IfcContext because there is no IfcContext in ifc2x3 and it was causing the error below on .ifc import with filtered spatial elements.
Also added small refactor
Traceback:
Error: Python: Traceback (most recent call last):
File "\blenderbim\bim\module\project\operator.py", line 595, in execute
ifc_importer.execute()
File "\blenderbim\bim\import_ifc.py", line 253, in execute
self.create_spatial_elements()
File "\blenderbim\bim\import_ifc.py", line 688, in create_spatial_elements
self.create_generic_elements(self.spatial_elements)
File "\blenderbim\bim\import_ifc.py", line 698, in create_generic_elements
products = self.create_products(elements)
File "\blenderbim\bim\import_ifc.py", line 717, in create_products
iterator = ifcopenshell.geom.iterator(settings, self.file, multiprocessing.cpu_count(), include=products)
File "\blenderbim\libs\site\packages\ifcopenshell\geom\main.py", line 99, in __init__
raise ValueError("include and exclude need to be an aggregate of IfcProduct?")
ValueError: include and exclude need to be an aggregate of IfcProduct?
2024-04-15 13:03:00 +02:00
Thomas Krijnen
29fbbc2a02
Remove dependency on bootstrap
2024-04-15 13:03:00 +02:00
Thomas Krijnen
970b71663e
#3120 item_id vector test case
2024-04-15 13:03:00 +02:00
Thomas Krijnen
dc81be8a9a
item_id vector #3120
2024-04-15 13:02:45 +02:00
Andrej730
17ee5e6f43
Getting shader graph nodes by type rather than name #3316
...
Because relying on names doesn't work for non english users
2024-04-15 12:04:44 +02:00
Andrej730
e52e9d4ac0
Fixed error on disabling editing window
2024-04-15 12:04:44 +02:00
Andrej730
3e0adb8dfd
Added button to update current style #3293
...
Example - https://i.imgur.com/f4Yi3MR.png
Now changing style type should be a bit more intuitive - previously there were no button and it wasn't possible to change style type for all selected objects / changing style type for the entire scene were hidden in N-panel Miscellaneous section.
Now it also able to change style type for all blender materials, even the ones that don't have any objects using them (wasn't possible before 7c0c934b4 )
2024-04-15 12:04:44 +02:00
Bruno Postle
d15f7cf88e
BlenderBIM Git merge asymmetry heuristic ( #3096 )
...
`ifcmerge` is asymmetrical. When both branches have new entities, either
local or remote step Ids need to be renumbered to resolve the merge
conflict.
If the remote branch is 'origin/main' or 'main' we preserve remote Ids,
otherwise we preserve local Ids.
This should support a workflow where a local 'main' branch is kept
pristine, but other local branches are treated as disposable; it should
also support a workflow where multiple authors access a shared 'origin'.
2024-04-15 12:04:44 +02:00
Thomas Krijnen
88823943f0
Further defer sql.py imports for ifcopenbot to succeed
2024-04-15 12:04:44 +02:00
Thomas Krijnen
4f387e723b
Comment out import mysql.connector
2024-04-15 12:04:44 +02:00
Thomas Krijnen
5a601f16fd
Correct if-clause
2024-04-15 12:04:44 +02:00
Thomas Krijnen
a7b10a2880
Add test
2024-04-15 12:04:44 +02:00
Totally a booplicate
aced364a08
smol fix
2024-04-15 12:04:44 +02:00
Totally a booplicate
0b2cfc7560
fix missing else clause
2024-04-15 12:04:44 +02:00
Totally a booplicate
dc5a0d4568
raise TypeError on invalid pset
2024-04-15 12:04:44 +02:00
Totally a booplicate
79983e5097
rework unpack_unit_value
...
handle the `None` case, simplify logic
2024-04-15 12:04:44 +02:00
Totally a booplicate
e31047e8c6
improve naming of the new method
2024-04-15 12:04:44 +02:00
Totally a booplicate
182aa3ed01
improve update_existing_properties
...
explicit class check
error out on a not supported type
better methods names
2024-04-15 12:04:44 +02:00
Totally a booplicate
0632c9bf1b
implement _try_purge
...
per review comment about repeating code
2024-04-15 12:04:44 +02:00
Totally a booplicate
cd5baefb55
restructure if/elif/else chain
2024-04-15 12:04:44 +02:00
Totally a booplicate
53dd817d97
support tuples
2024-04-15 12:04:43 +02:00
Totally a booplicate
0ce987f788
move prop check
2024-04-15 12:04:43 +02:00
Totally a booplicate
f4c618701c
per review
...
change exception message
remove TODO
pass `Unit`
raise `NotImplementedError` when no template was found
2024-04-15 12:04:43 +02:00
Totally a booplicate
c186e7120c
resolve TODO
...
This is being fixed, we should always have a class to use
2024-04-15 12:04:43 +02:00
Totally a booplicate
1f89fea569
attempt to improve pset support
...
1. Adds support to directly passed in property entities
2. Adds support for tuples
3. Adds support for P_LISTVALUE
2024-04-15 12:04:43 +02:00
Balázs Dukai
2b71b33c82
Don't use importlib for version
2024-04-15 12:04:43 +02:00
Balázs Dukai
435090e7f1
Get package version from pyproject.toml
2024-04-15 12:04:43 +02:00
Balázs Dukai
4a4186e3ce
Include GenericCityObject extension
2024-04-15 12:04:43 +02:00
Balázs Dukai
fb3c553249
Add parameters
2024-04-15 12:04:43 +02:00
Balázs Dukai
bc3cc94500
Init package
2024-04-15 12:04:43 +02:00
Vasile-Corjan
ffebfca277
Update README.md
2024-04-15 12:04:43 +02:00
Vasile-Corjan
eb67a809ce
Update README.md
...
I have added the parameters "minOccurs" and "maxOccurs"
2024-04-15 12:04:43 +02:00
Dion Moult
e7bb823f15
Run black on existing entity_instance
2024-04-15 12:04:43 +02:00
Dion Moult
aafb905199
Build testing prototype of an SQLite based file / entity_instance.
2024-04-15 12:04:43 +02:00
Dion Moult
35a346e412
Document two answers to frequently reported bugs: missing numpy and blend / ifc out of sync.
2024-04-15 12:04:43 +02:00
Dion Moult
297ac5af3a
Minor geometry processing documentation fix
2024-04-15 12:04:43 +02:00
Dion Moult
ef98bd5120
Convert Ifc2Sql script to IfcPatch recipe and add geometry support
2024-04-15 12:04:43 +02:00
Dion Moult
816efc8810
Fetch pset and qto names via pset data instead of real time to prevent UI lag on larger models.
2024-04-15 12:04:43 +02:00
Dion Moult
0e02c97fc6
Lazily check for BBIM_Railing psets to prevent unnecessarily fetching psets for every element when loading models.
2024-04-15 12:04:43 +02:00
Dion Moult
a572bcfcb9
IfcPatch can now support patches that write to arbitrary files or have no output.
2024-04-15 12:04:43 +02:00
Dion Moult
534247daa1
Fix bug for getting psets of materials and profiles in IFC2X3
2024-04-15 12:04:43 +02:00
Thomas Krijnen
7c6620550a
add assert #3308
2024-04-15 12:04:26 +02:00
Thomas Krijnen
7feeb441ff
#2819 Handle periodic bspline curves in serialization
2024-04-15 11:58:51 +02:00
Sigma Dimensions
e17b9fa111
enable activating object type when trying to select type from an object ( whilst the type is hidden from view layer)
2024-04-15 11:44:56 +02:00
Massimo Fabbro
240f9b0100
Now generate spaces from walls considers also columns in order to create the contours
2024-04-15 11:44:56 +02:00
Thomas Krijnen
cd8bc823c2
#3305 Less pessimistic tolerance comparison in newells method
2024-04-15 11:44:56 +02:00
Thomas Krijnen
1efe5761c0
#3305 one more iteration on lower fuzziness level for boolean ops
2024-04-15 11:44:56 +02:00
Sigma Dimensions
8a108627e4
temporarily hide IFC Spatial Manager for IFC2X3 models
2024-04-15 11:44:56 +02:00
Sigma Dimensions
62b5f080ab
Enable selecting group elements
2024-04-15 11:44:56 +02:00
Sigma Dimensions
2b4c21615b
Enable selecting a container's children from the IFC Spatial Manager panel
2024-04-15 11:44:56 +02:00
Sigma Dimensions
c280bfa7ae
fix replacing material with material profile
2024-04-15 11:44:56 +02:00
Sigma Dimensions
ab19c9ff46
experimental patch of non parametric mep segments
2024-04-15 11:44:56 +02:00
Sigma Dimensions
da41469c43
fix missing import
2024-04-15 11:44:55 +02:00
Sigma Dimensions
ee0dca4898
Move Spatial Manager UI to "IFC Project Set-up"
2024-04-15 11:44:55 +02:00
Sigma Dimensions
2cf50dc48f
split material assign/unassign operators into tool and core
2024-04-15 11:44:55 +02:00
Sigma Dimensions
5ce156bfa9
fix delete material operator
2024-04-15 11:44:55 +02:00
Sigma Dimensions
a38784cdc4
Fix displaying connections for selected distribution ports
2024-04-15 11:44:55 +02:00
Sigma Dimensions
0959a7f6a3
Refactor and re-use common spatial_tool.select_products
2024-04-15 11:44:55 +02:00
Andrej730
a7faa3ec3e
Support external shaders from currently opened blend file
...
Previously it was crashing if you try use shader from current .blend file as external.
I guess we now kind of support external internal shaders 🙃
2024-04-15 11:44:55 +02:00
Andrej730
00a87819e4
switch to external styles for rendered shading in viewport
...
Unfortunately I couldn't find a way to make it work with areas that user created during current blender session. But new areas will have this feature too after blender restart
2024-04-15 11:44:55 +02:00
Andrej730
70eaa1a7df
prioritize external styles on ifc import
...
also found a way to switch shade graph for two materials without juggling active materials and active objects - it was necessary to make it work on import without adding temporary active object
2024-04-15 11:44:55 +02:00
johanrd
9648a51e04
fix typo in README.md
2024-04-15 11:44:55 +02:00
Bruno Postle
4318cec65a
BBIM show all fetched remote Git branches ( #3096 )
2024-04-15 11:44:55 +02:00
Gorgious
eb35157f8f
Fix #3142 : Use Tab hotkey to edit horizontally layered objects
2024-04-15 11:44:55 +02:00
Ahmad Saleem Z
3ebd31a486
added link to aws/lambda guide in installation guide
2024-04-15 11:44:55 +02:00
Ahmad Saleem Z
a152474e6d
fix ARG in Dockerfile
2024-04-15 11:44:55 +02:00
Ahmad Saleem Z
d009188805
documentation
2024-04-15 11:44:55 +02:00
Ahmad Saleem Z
8d17838af1
example fixes
2024-04-15 11:44:55 +02:00
Ahmad Saleem Z
829870a416
added aws/lambda sample
2024-04-15 11:44:55 +02:00
Bruno Postle
c07cb2141e
BlenderBIM operator to add remote repo ( #3096 )
...
Procedure to merge a pull request would be: Add Remote, select the added
remote in the pull-down, Fetch from remote, select the added remote
branch in the pull-down, Merge, delete remote
2024-04-15 11:44:55 +02:00
Dion Moult
ada978ed1f
Toggle between full schema (i.e. all tables for every declaration) and partial schema dump into SQL
2024-04-15 11:44:55 +02:00
Bruno Postle
84cd96a48d
BlenderBIM operator to delete a Git remote ( #3096 )
2024-04-15 11:44:55 +02:00
Bruno Postle
567ad3bf63
BlenderBIM fix warning writing .git/config ( #3096 )
2024-04-15 11:44:55 +02:00
Balázs Dukai
6f6ff416c9
Add copyright
2024-04-15 11:44:55 +02:00
Balázs Dukai
a97cd7ad24
Update to ifcopenshell 0.7.0 and cjio 0.8
...
LoD is string in v1.1
2024-04-15 11:44:55 +02:00
Balázs Dukai
818f77da2b
Update to v1.1 CityObject types
2024-04-15 11:44:55 +02:00
Andrej730
8ac1bc6900
IfcGitData update to ifcgit operators poll() methods
...
Added loading IfcGitData to ifcgit operator's poll() methods because it was getting a bit spammy in console if you don't use git.
Traceback (most recent call last):
File "\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 255, in poll
if IfcGitData.data["ifcmerge_exe"]:
KeyError: 'ifcmerge_exe'
Traceback (most recent call last):
File "\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 147, in poll
repo = IfcGitData.data["repo"]
KeyError: 'repo'
Traceback (most recent call last):
File "\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 18, in poll
path_ifc = IfcGitData.data["path_ifc"]
KeyError: 'path_ifc'
Traceback (most recent call last):
File "\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 45, in poll
path_ifc = IfcGitData.data["path_ifc"]
KeyError: 'path_ifc'
Traceback (most recent call last):
File "\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 190, in poll
repo = IfcGitData.data["repo"]
KeyError: 'repo'
Traceback (most recent call last):
File "\scripts\addons\blenderbim\bim\module\ifcgit\operator.py", line 111, in poll
repo = IfcGitData.data["repo"]
KeyError: 'repo'
2024-04-15 11:44:55 +02:00
Andrej730
dfe7421dab
External Styles
...
Added support for external blender styles that will be saved to ifc.
What it basically means that you can append material from external .blend file as a style that can be loaded in your blender material anytime.
1) External style can be added in Material Tab
https://i.imgur.com/BYfesi5.png
Note that you select material name at the right side of file selecting panel:
https://i.imgur.com/mvqaaod.png
2) After adding external style you can switch between external and other surface styles:
https://i.imgur.com/YtCz8an.png
3) There is also option to switch styles to External for all objects in the scene:
https://i.imgur.com/u3zTcX9.png
Some other changes:
- some ui adjustments
- moved functions that create blender shaders to tool.Loader (they also reset shader graph now so it's possible to use them on non-default blender materials)
- some new tools for copying node graph from one material to another, appending data blocks
- new operator for browsing external styles can be reused later to append other data blocks
2024-04-15 11:44:55 +02:00
Dion Moult
a4224b104d
Experimental support for storage of IFC in MySQL and SQLite
2024-04-15 11:44:55 +02:00
D4ve-R
26ea4fd583
Revert "build scripts"
...
This reverts commit 6c1218d352 .
2024-04-15 11:44:52 +02:00
D4ve-R
809f3463f0
build scripts
2024-04-15 11:43:45 +02:00
D4ve-R
fc29710c1d
prepare for referencing
2024-04-15 11:39:21 +02:00
D4ve-R
b915da223d
metersPerUnit
2024-04-15 11:39:21 +02:00
D4ve-R
8723d14aee
usd rotateXYZop
2024-04-15 11:39:21 +02:00
D4ve-R
9b9dce33a1
Update submodule
2024-04-15 11:39:21 +02:00
D4ve-R
7c40ce10e6
fix typo
2024-04-15 11:39:21 +02:00
D4ve-R
7d5024bdf4
refactor
2024-04-15 11:39:21 +02:00
D4ve-R
82438f279f
stage up axis
2024-04-15 11:39:21 +02:00
D4ve-R
448f543e3d
fix filename bug
2024-04-15 11:39:21 +02:00
D4ve-R
b9f2dbb0b3
filename bug
2024-04-15 11:39:21 +02:00
D4ve-R
fca79ddb6c
material subsets
2024-04-15 11:38:40 +02:00
D4ve-R
c8b0b65564
works fine
2024-04-15 11:38:39 +02:00
D4ve-R
38b4a225ad
compile & link successful
2024-04-15 11:37:03 +02:00
D4ve-R
7e090f5709
materials
2024-04-15 11:29:06 +02:00
D4ve-R
c8205b4a9e
Add USDSerializer to IfcConvert
2024-04-15 11:29:01 +02:00
D4ve-R
93042ca1ef
Add USDSerializer write-only
2024-04-15 11:17:03 +02:00
Thomas Krijnen
01ad84901c
#2942 Escape SVG text labels
2024-04-15 11:17:03 +02:00
Nelson Henrique
f31132b24e
implements fileselect to export_cost_schedules
2024-04-15 11:17:03 +02:00
Andrej730
66bd1d0d5f
Fixed small error on disabling editing extrusion axis
2024-04-15 11:17:02 +02:00
Chetan
86c93ac1e7
If an IFC file has an IFCRELASSOCIATESMATERIAL but did not supply an IFCMATERIAL, IfcConvert will crash. This commit prevents the crash, catches the exception and prints an error on the terminal
2024-04-15 11:16:59 +02:00
Dion Moult
2c4227384d
Fix bug where you couldn't unassign inherited materials.
2024-04-15 11:07:37 +02:00
Dion Moult
408115b94b
Fix sync bug where unused styles would be purged when reloading a blender file.
2024-04-15 11:07:37 +02:00
Martin15135215
c5e4914bdf
CITATION.cff for BIMTester
2024-04-15 11:07:37 +02:00
Martin15135215
c50a171ae9
CITATION.cff for ifc5d
2024-04-15 11:07:37 +02:00
Martin15135215
2b72291e71
CITATION.cff for ifc4d
2024-04-15 11:07:37 +02:00
Martin15135215
3765c72684
CITATION.cff for ifc2ca
2024-04-15 11:07:37 +02:00
Martin15135215
f0a4244c77
CITATION.cff for bsdd
2024-04-15 11:07:37 +02:00
Martin15135215
bfcc624249
CITATION.cff for bcf
2024-04-15 11:07:37 +02:00
Bruno Postle
6c45936118
BlenderBIM fix Git error on simple merge ( #3096 )
...
Running git commit after a simple merge (that hasn't required conflict
resolution) is a noop, but generates an annoying message anyway.
2024-04-15 11:07:37 +02:00
Dion Moult
1eb1ba604e
Fix #3272 . See #3069 . Fix incorrect refactoring when I was decoupling collections.
2024-04-15 11:07:37 +02:00
Gorgious56
e5003651ed
Fix error when going out of edit mode with TAB when editing an arbitrary profile
2024-04-15 11:07:37 +02:00
Gorgious56
2008868e0e
Fix profile based geometry not re-generating properly when exiting edit mode and the profile geometry wasn't modified
2024-04-15 11:07:37 +02:00
Martin15135215
d3ea921165
Update author in CITATION.cff
2024-04-15 11:07:37 +02:00
Martin15135215
e32de7350d
CITATION.cff file for BlenderBIM
2024-04-15 11:07:37 +02:00
Thomas Krijnen
5714bd1ec4
take into account edge orientation correctly #3201
2024-04-15 11:07:23 +02:00
Andrej730
374f411b59
ids/classes namespaces for drawings in the sheet #3047
...
Now we add some prefix based on drawing id to each id in the drawing and also add this prefix as a class and add it to all css selectors.
Reason for that so each drawing on the sheet can have it's own set of styles that won't be affecting other drawings.
Example - https://i.imgur.com/kqRCwJW.png
2024-04-15 11:04:27 +02:00
Dion Moult
a4f7da598f
See #3266 . Write documentation on how to use IfcCSV.
2024-04-15 11:04:27 +02:00
Dion Moult
2896c23143
Add support for Pandas DataFrames in IfcCSV and clean up function signatures
2024-04-15 11:04:26 +02:00
Dion Moult
02462c1209
Fix #3264 . Describe IFC to JSON conversion (and other formats) in documentation.
2024-04-15 11:04:26 +02:00
Bruno Postle
482f97961d
BlenderBIM fix Git merge log history ( #3096 )
...
The GitPython commit() method isn't suitable for completing a merge as
it only sets one parent, losing all history from the merged branch.
2024-04-15 11:04:26 +02:00
Thomas Krijnen
236c064849
unreferened param #3255
2024-04-15 11:04:09 +02:00
Gorgious56
9ec43b7d9e
Revert unselect non-ifc object using TAB
2024-04-15 10:59:03 +02:00
Gorgious56
4def4c2445
Fix wall mounted handrail railing modifier not regenerating properly when going out of edit mode with the tab key if the path wasn't modified
2024-04-15 10:59:03 +02:00
Dion Moult
7437f0d20c
Fix #3226 . There is now a faster deletion mode that kicks in for large models and large geometry deletions.
2024-04-15 10:59:03 +02:00
Dion Moult
13b80af97e
See #3226 . New batched remove_deep2() which uses serialisation for faster removal performance on large graphs.
2024-04-15 10:59:03 +02:00
Andrej730
c94adb7980
Fixed #3259
2024-04-15 10:59:03 +02:00
Bruno Postle
641962f0e0
BlenderBIM use git shortlog to summarise merge log
2024-04-15 10:59:03 +02:00
Gorgious56
9180fdce5a
Edit profile based representations with TAB ( #3142 )
...
* You can now edit profile based representations with TAB
* Minor fix
* Minor fix
* You can now edit parametric railing paths with TAB
Still not sure about the implementation though
* use shortcut instead of direct link to railing edition
* Add utility to check if a mesh is profile based or its representation is a swept solid
* Fix bug when trying to edit an empty object
* Prevent editing door, window and stair modifiers since they're fully parameterized by the modifier properties
* You can now edit roof modifier, railing modifier and various profile based objects
* You can now edit axis profile based objects
2024-04-15 10:59:03 +02:00
Andrej730
940d999bf4
Solved #3219
2024-04-15 10:59:03 +02:00
Andrej730
ad4f00648f
Blender curves to IfcIndexedPolyCurve #3233
...
Now blender curves segments saved in IfcIndexedPolyCurves instead of creating individual polygons.
Also changed ShapeBuilder.polyline - now it will try to store points in IfcLineIndex where it's possible (previously it was storing just 2).
2024-04-15 10:59:03 +02:00
Andrej730
2db82371bd
Display units for more pset/qset props #3235
...
Now current project units displayed for area and volume properties too.
https://i.imgur.com/7dgl1pC.png
Also added support for imperial units symbols.
2024-04-15 10:59:03 +02:00
Andrej730
0874320935
small note for unsupported pset prop types
2024-04-15 10:59:03 +02:00
Andrej730
6665dd7e92
Add to scene properties whether we use relative path to .ifc #3251
...
Previously it was stored as operator's prop which is (turned out) reseted on reopening .blend.
2024-04-15 10:59:03 +02:00
Andrej730
4d171c17a8
Small fix for 1f43ec870
...
Was getting this error at project start:
Traceback (most recent call last):
File "\scripts\addons\blenderbim\bim\module\project\operator.py", line 332, in execute
return IfcStore.execute_ifc_operator(self, context)
File "\scripts\addons\blenderbim\bim\ifc.py", line 410, in execute_ifc_operator
result = getattr(operator, "_execute")(context)
File "\scripts\addons\blenderbim\bim\module\project\operator.py", line 345, in _execute
self.import_type_from_ifc(element, context)
File "\scripts\addons\blenderbim\bim\module\project\operator.py", line 374, in import_type_from_ifc
collection_obj = collection.BIMCollectionProperties.obj
AttributeError: 'LayerCollection' object has no attribute 'BIMCollectionProperties'
2024-04-15 10:59:03 +02:00
Andrej730
47ed33cba0
small fix for syntax warning after 4865b62ea
...
SyntaxWarning: "is not" with a literal. Did you mean "!="?
2024-04-15 10:59:03 +02:00
Andrej730
8933478137
Spatial/Structural Tools icons
2024-04-15 10:59:03 +02:00
Andrej730
2ab4213e01
Moving operators to Spatial Tool
...
Changes:
- Moved Shift A "Add boundary" from BIM Tool to Spatial Tool
- Moved Alt B "Show boundaries" from BIM Tool to Spatial Tool
2024-04-15 10:59:03 +02:00
Massimo Fabbro
e7509ccc3f
Fix create spaces from walls z-value ( #3248 )
...
Co-authored-by: Dion Moult <dion@thinkmoult.com >
2024-04-15 10:59:03 +02:00
Massimo Fabbro
98ba75ef52
New toggle space visibility button
2024-04-15 10:59:03 +02:00
Dion Moult
bc76c8497e
You can now get decompositions non-recursively in element utilities
2024-04-15 10:59:03 +02:00
Dion Moult
b5c4b87238
Fix #3069 . (Again) review all occurrences of users_collection and collection.name
2024-04-15 10:59:03 +02:00
Trashman247
e4ec8c40f0
Keep dist-info in compiling brickschema and add persistence extras
2024-04-15 10:59:03 +02:00
Bruno Postle
c995d70ae1
Include commit summary of merged branches ( #3096 )
...
Git merges usually transfer the commit history, but when we resolve a
conflict with a 'mergetool' (ie. ifcmerge), this history is lost,
everything is squashed into a single commit. Now a summary of the
merged changes is appended to the merge message.
2024-04-15 10:59:03 +02:00
Bruno Postle
b2568fd343
Display multi-line commit and tag messages ( #3096 )
2024-04-15 10:59:03 +02:00
Sigma Dimensions
cf6be5dd18
Add a banner to ifcopenshell README
2024-04-15 10:59:03 +02:00
Bruno Postle
2738aa571a
Operator to delete a Git tag ( #3096 )
2024-04-15 10:59:03 +02:00
Bruno Postle
3bdf1a170a
Operator to view selected object Git history #3096
...
A new BlenderBIM > Git History side-panel to show the raw Git log
for the step entity of the selected object
2024-04-15 10:59:03 +02:00
Sigma Dimensions
f8f1ba0ae8
Prototype Building Storey Manager #3246
2024-04-15 10:59:02 +02:00
Sigma Dimensions
607172c51d
fix draw_project_not_saved_ui for BIM documentation
2024-04-15 10:59:02 +02:00
Andrej730
58ea6d7de9
same generate_pset_templates.py for ifcopenshell and ifc dev repos
...
same script will be easier to maintain
2024-04-15 10:59:02 +02:00
Andrej730
98cc0336ec
Fixed validation errors in pset templates library
...
- missing project and IfcRelDeclares guids
- missing RelatingContext in IfcRelDeclares
2024-04-15 10:59:02 +02:00
Andrej730
ce8379b8f7
Fixed missing PrimaryMeasureType for P_LISTVALUE in pset templates #3236
...
For some reason there is also was missing PrimaryUnit in IFC2X3. But it's unrelated to the changes from this commit (generating pset templates before this commit already has PrimaryUnit there).
2024-04-15 10:59:02 +02:00
Sigma Dimensions
157d7d3c02
You can now review and assign currencies from the Cost Schedule Panel
2024-04-15 10:59:02 +02:00
Sigma Dimensions
1d13edd747
Display currency on cost item values and total cost
2024-04-15 10:59:02 +02:00
Andrej730
f4344b9e75
Placeholders for spatial and structural tools
2024-04-15 10:59:02 +02:00
Andrej730
a57f9e984b
Tests for external svg references
2024-04-15 10:59:02 +02:00
Trashman247
7a2c6c4b5f
Update Makefile
2024-04-15 10:59:02 +02:00
Sigma Dimensions
9c707977a3
auto refresh tasks assigned to products when filtering by active schedule
2024-04-15 10:59:02 +02:00
Sigma Dimensions
362409cdcb
fix removing cost item value
2024-04-15 10:59:02 +02:00
Sigma Dimensions
6e3acd8c4a
BBIM 5D: Various Cost Schedule UI Improvemements
2024-04-15 10:59:02 +02:00
Thomas Krijnen
8d5911e8aa
fix syntax error on gcc
2024-04-15 10:59:00 +02:00
Thomas Krijnen
5f7b07ab4c
typename :(
2024-04-15 10:57:46 +02:00
Thomas Krijnen
b33f5e19b7
eliminate_narrow_operands() #3141
2024-04-15 10:55:29 +02:00
Thomas Krijnen
5566be0b20
Fix IfcFile::getInverse<T>()
2024-04-15 10:38:02 +02:00
Andrej730
c930eb7603
References for adding external svgs to the sheets
...
It works exactly the same as schedules - you add some .svg file, path to it stored in ifc and you can attach it to the sheet.
UI - https://i.imgur.com/tGbCGBb.png
Still need to add some tests for references
2024-04-15 10:34:50 +02:00
Sigma Dimensions
87673b0784
Use util.element.get_predefined_type() #065bda6
2024-04-15 10:34:50 +02:00
Sigma Dimensions
2a791eef52
Run costing tests and rename changed methods
2024-04-15 10:34:41 +02:00
Dion Moult
5f4fef42ac
See #3069 . Continued refactoring to not rely on users_collection[0].
2024-04-15 10:34:41 +02:00
Dion Moult
6e57cbcf81
See #3069 . More cleanup moving away from collection names and assumed single collections.
2024-04-15 10:34:41 +02:00
Dion Moult
4f15ec1f67
Fix regressions after making aggregate based on selected objects.
2024-04-15 10:34:41 +02:00
Dion Moult
804dbee2c3
Fix #3069 . WARNING: dangerous change. Objects that have their own collection now have a pointer to that collection. This fixes a variety of subtle sync bugs.
2024-04-15 10:34:41 +02:00
Andrej730
d2d6a9e7d4
Remove test to reproduce #3169 as irrelevant
2024-04-15 10:34:41 +02:00
Andrej730
0dfb34a730
Added test to cover 2629172ff
2024-04-15 10:34:41 +02:00
Andrej730
c94c580282
Fixed bug with saving data to Pset_StairFlightCommon not in project units
2024-04-15 10:34:41 +02:00
Massimo Fabbro
8e8c9d4170
Remove old patch file
2024-04-15 10:34:41 +02:00
Massimo Fabbro
f7c83df793
Move the recipe into the blenderbim script folder and rewrite it as a script
2024-04-15 10:34:41 +02:00
Massimo Fabbro
512abbec7c
IfcPatch ReplaceDrawingPath recipie improved: now it's possible to use it on Linux and on Windows
2024-04-15 10:34:41 +02:00
Massimo Fabbro
3204c130eb
Now it's possible to fix drawing reference path problem saved in Windows and opened in Linux
2024-04-15 10:34:41 +02:00
Thomas Krijnen
3413a046f4
More informed invalid shape reporting
2024-04-15 10:34:41 +02:00
Thomas Krijnen
5d4b01e10f
apply boolean results in batches as well #3201
2024-04-15 10:34:24 +02:00
Thomas Krijnen
16e6cf86b6
approximate circular sharp corners #3201
2024-04-15 10:28:35 +02:00
Sigma Dimensions
9a02fc02db
Exporting cost schedules opens the folder directory
2024-04-15 09:59:58 +02:00
Andrej730
aa63055a46
Displaying project units for length values in psets and qsets
...
Examples:
- https://i.imgur.com/ww7MJ7w.png
- https://i.imgur.com/N1rOELc.png
2024-04-15 09:59:58 +02:00
Andrej730
01d639e2e2
Railing, Door Modifiers - project units props
...
Example - https://i.imgur.com/SJOQMMm.png
2024-04-15 09:59:58 +02:00
Andrej730
226e0f9b13
black format
2024-04-15 09:58:27 +02:00
Andrej730
9be09ef443
maintaining same roof thickness for different rafter edge angles
...
PS roof code is not getting simpler to work with 🥲
2024-04-15 09:58:26 +02:00
Dion Moult
a597c171a7
Removing authoring mode which was an outdated concept.
2024-04-15 09:58:26 +02:00
Dion Moult
1f2f245671
Fix #3163 . Use text in lieu of inability to use URIReferences in drawing pset.
2024-04-15 09:58:26 +02:00
Sigma Dimensions
eba0525143
Cost schedule name label now shows the predefined type
2024-04-15 09:58:26 +02:00
Dion Moult
cc12c388c4
Fix #3120 . Don't remove doubles as it may break mesh manifoldness.
2024-04-15 09:58:26 +02:00
Dion Moult
30bff7e9c5
Fix #3113 . Support regex in selector filter values.
2024-04-15 09:58:26 +02:00
Andrej730
958729c9a6
rafter edge angle and roof thickness #3092
...
Added option to adjust rafter edge angle and roof thickness
Short demonstration - https://imgur.com/a/TsYSs6i
2024-04-15 09:58:26 +02:00
Andrej730
8b805e507a
Roof modifier - asymmetrical gable #3093
...
Example - https://i.imgur.com/EHaSt16.png
2024-04-15 09:58:26 +02:00
Dion Moult
d611db0999
Close #3139 . Bump IfcOpenShell.
2024-04-15 09:58:26 +02:00
Dion Moult
2e143f65d9
Fix #3211 . Generated fills now are siblings to the element that they void.
2024-04-15 09:58:26 +02:00
Andrej730
a37585707e
Schedule Builder - text/background color support #3154
2024-04-15 09:58:26 +02:00
Andrej730
f7b911faed
separate ifc text literals in svg with newline #3207
2024-04-15 09:58:26 +02:00
Dion Moult
16582e2691
Fix #3212 . Bug where viewport camera bisection didn't have enough tolerance and sometimes wasn't visible.
2024-04-15 09:58:26 +02:00
Dion Moult
228cce74ac
Fix #3209 . Handle loading of custom scales, fix incomplete NTS implementation, and use Lark for more reliable imperial scale parsing.
2024-04-15 09:58:26 +02:00
Andrej730
91567e93cc
Fixed Stair annotation bug introduced in 762299124
...
in 762299124 I've changed number of segments and verts but never adjusted StairDecorator - so it wasn't drawing parts of the annotation
2024-04-15 09:58:26 +02:00
Andrej730
e96916dbc6
Optimized iteration over objects for viewport annotations #3198
...
This commit should increase viewport annotations performance significantly on large projects. Described in #3198
2024-04-15 09:58:26 +02:00
Dion Moult
0a3b9c4e2b
Fix #3210 . Revert "BBIM Drawings: Exclude ifc objects hidden from render view"
...
This reverts commit 6f39648077 .
2024-04-15 09:58:26 +02:00
Dion Moult
4d01dfe379
Fix #3138 . Remove manual copy class and be more intelligent about what classe can be reassigned.
2024-04-15 09:58:26 +02:00
Andrej730
6169b44fbd
Same distance function for viewport and svg #1321 #3198
2024-04-15 09:58:26 +02:00
Dion Moult
2b424f3d7d
Fix #3200 . Bug where include / exclude filters could break the drawing.
2024-04-15 09:58:26 +02:00
Sigma Dimensions
1bf83ab0b9
BBIM Drawings: Exclude ifc objects hidden from render view
2024-04-15 09:58:26 +02:00
Sigma Dimensions
65f1bff957
Ctrl+P and Alt+P BIMTool Hotekys to assign/unassign aggregation
2024-04-15 09:58:26 +02:00
Bruno Postle
510e157775
Select new/changed objects in visual diff ( #3096 )
...
When visualising differences between current/selected revision,
new/changed objects are selected as well as colourised
2024-04-15 09:58:26 +02:00
Bruno Postle
8e605adbcc
Fix checkout version equivalent to a remote HEAD
2024-04-15 09:58:26 +02:00
Dion Moult
5ff75569a0
See #3184 . Preserve parametric layerset axis direction hints when changing types.
2024-04-15 09:58:26 +02:00
Dion Moult
7f7151288f
Fix #2106 . You can now assign an opening to another element.
2024-04-15 09:58:26 +02:00
Dion Moult
566ea1c283
Fix #3050 . Unlinking now gives you an option to delete as well.
2024-04-15 09:58:26 +02:00
Dion Moult
6537d9dd71
Fix #3169 . Don't allow the user to create invalid material sets without items.
2024-04-15 09:58:26 +02:00
Dion Moult
1aae597da5
See #3169 . Fix bug where non walls and slabs didn't get semantic classes in drawings.
2024-04-15 09:58:26 +02:00
Andrej730
74d5d20d07
Revision Clouds - new annotation type
...
Short demonstration - https://github.com/IfcOpenShell/IfcOpenShell/assets/9417531/90c9b458-0bae-40a2-9eee-d748e57c24a3
Curently it doesn't have any special representation in viewport and it doesn't have any customisable parameters.
You might get come across error "Revision cloud edges must form just 1 polygon" - it means your edges either don't form any polygon or form 2 or more, both cases are not supported.
2024-04-15 09:58:26 +02:00
Dion Moult
1b261304eb
Fix #3202 .
2024-04-15 09:58:26 +02:00
Dion Moult
8bd77b3663
New get_shape_matrix utility.
2024-04-15 09:58:26 +02:00
Dion Moult
43bfd51ccb
Fix #3181 .
2024-04-15 09:58:26 +02:00
Bruno Postle
e4ff87cb01
BBIM Ensure LF end-of-line in Git repo ( #3096 )
...
Git auto text detection seems to fail with IFC files, possibly due to
long lines. So we now force detection as text which ensures conversion
from CRLF to LF when adding to the repository. We also convert the local
IFC file to LF otherwise Git thinks that the local file is out-of-sync
with the repo version ¯\_(ツ)_/¯
2024-04-15 09:58:26 +02:00
Andrej730
b171dc6146
Small documentation note
2024-04-15 09:58:26 +02:00
Andrej730
218b67bc5c
Procedurally generating list of props for shading styles to cover more props
...
If it will be too much we still have option to exclude some of them
2024-04-15 09:58:26 +02:00
Gorgious56
bf9df2897c
Remove the cryptic (and slightly annoying) console warning logs when trying to display the type manager when there is no element type in the file
2024-04-15 09:58:26 +02:00
Gorgious56
66161518df
Fix annoying tooltip when using the eyedropper to copy a type
2024-04-15 09:58:26 +02:00
Andrej730
0d3c0b7a03
Fixed problem with ifccsv set_element_key #3192
...
Currently "type" attribute in selector returns something like "#71=IfcWallType('20jY5HfLH4LBwMrDEoTdML',$,'WAL100',$,$,$,$,$,$,.NOTDEFINED.)" when the code was expecting the class name like "IfcSlab" or "IfcWall". Changed it to "class" atribute that returns just class name.
2024-04-15 09:58:25 +02:00
Andrej730
52302841d9
Window Modifier - support typing units in props
...
Example - https://i.imgur.com/C99RRs9.png
2024-04-15 09:58:25 +02:00
Andrej730
50e393675a
More descriptive exception for reassign_class #3192
...
Added it because there was no error handling here anyway and later there was another UnboundLocalError:
for attribute in declaration.all_attributes():
UnboundLocalError: local variable 'declaration' referenced before assignment
2024-04-15 09:58:25 +02:00
Andrej730
865d755730
Stair Modifier - support typing units in props
...
Example - https://i.imgur.com/XQsVge1.png
2024-04-15 09:58:25 +02:00
Andrej730
880dcb7fcf
Array Modifier - support typing units in props
...
Example - https://i.imgur.com/a0r0vUs.png
Also accidentally fixed input_cursor_array not working properly for projects with non-meters units.
2024-04-15 09:58:25 +02:00
Andrej730
dc698f7116
Small error message on aggregating objects
2024-04-15 09:58:25 +02:00
Dion Moult
983f78c3a5
Fix #3193 . Revert "partially addresses #3103."
...
This reverts commit 1b2ab4e3f0 .
2024-04-15 09:58:25 +02:00
Dion Moult
122e17d5b5
Fix #3086 .
2024-04-15 09:58:25 +02:00
Gorgious
e6a90d6786
Using the eyedropper on a type automatically sets the type and validates assign_type. However it does display an annoying message saying the value was not set, I don't know how to get rid of it.
2024-04-15 09:58:25 +02:00
Gorgious
bb2ee957e9
You can now eyedrop an object in the 3D viewport to fill in its class in the type selector
2024-04-15 09:58:25 +02:00
Gorgious
c7381c8092
Fix Relating type enum not correctly initializing
2024-04-15 09:58:25 +02:00
Gorgious
db283eb137
The type manager now switches to the type when clicking on the "select type" button. Duplicating a type also changes the active type in the type manager
2024-04-15 09:58:25 +02:00
Gorgious
62f2144245
Selecting types and instances now show a helpful tooltip when the object is not selectable (due to being hidden or in a hidden collection)
2024-04-15 09:58:25 +02:00
Gorgious
9d9d1660ff
You can now duplicate a type from the properties panel
...
+ change the "paste" icon for the "duplicate" icon
2024-04-15 09:58:25 +02:00
Gorgious
4843068458
"Select instances" button is now grayed out when the type doesn't have any instance
2024-04-15 09:58:25 +02:00
Bruno Postle
3884260bcf
BlenderBIM set gitattributes and autocrlf
...
Force Git to always treat IFC files as text.
Store IFC in Git with LF line-endings, but checked-out files are
CRLF on Windows.
2024-04-15 09:58:25 +02:00
Andrej730
27655dcf35
Roof modifier - more descriptive errors on invalid footprints #3171
2024-04-15 09:58:25 +02:00
Andrej730
b66fac5041
Default material layer thickness for adding new layers
...
Same as when you create IfcMaterialLayerSet
2024-04-15 09:58:25 +02:00
Andrej730
9b221452d5
UI problem with creating empty material layer set causing issues #3169
...
Now it's also possible to select some material that will be used for they first layer of material layer set.
2024-04-15 09:58:25 +02:00
Ryan Schultz
e94350db93
bulk assignment of objects to an aggregate.
2024-04-15 09:58:25 +02:00
Andrej730
e7510231d5
Added a descriptive error on attempt of deleting last material layer
2024-04-15 09:58:25 +02:00
Andrej730
63b394109b
Fixed error loading .ifc and activating view for drawing with underlay
2024-04-15 09:58:25 +02:00
Ryan Schultz
1fafc42d36
partially addresses #3103 .
2024-04-15 09:58:25 +02:00
Sigma Dimensions
6e41a25953
fix contracting/expanding schedule of rates
2024-04-15 09:58:25 +02:00
Sigma Dimensions
5e5d4f57f4
Fix selecting unassigned work/cost schedule products
2024-04-15 09:58:25 +02:00
Sigma Dimensions
9e0f1db6dc
small fix for work schedule derived start/end dates
2024-04-15 09:58:25 +02:00
Sigma Dimensions
4950f249b6
BBIMD: enable deleting sequence relationships from list of predecessors/successors
2024-04-15 09:58:25 +02:00
Sigma Dimensions
f81b8eae87
remove annoying print statement
2024-04-15 09:58:25 +02:00
Sigma Dimensions
53aa7a8abb
ios api task fix: remove orphan IfcRelNests when deleting tasks
2024-04-15 09:58:25 +02:00
Sigma Dimensions
24af5b8904
BBIM D: Copy cost items, export Cost Schedules individually, start improving Cost Schedule UI
2024-04-15 09:58:25 +02:00
Sigma Dimensions
b1e5e1914e
Easier grouping of materials by allowing material attributes editing from the IfcMaterial subpanel in the scene properties tab
2024-04-15 09:58:25 +02:00
Bruno Postle
2c69e3c44c
Allow missing/broken GitPython
...
`import git` can fail badly with a broken xcode installation, so
we let blenderbim run anyway
2024-04-15 09:58:25 +02:00
Bruno Postle
a8d20717cb
Fix merging of remote branches ( #3096 )
...
You can now 'clone' a remote repository and 'push' to it. There is no 'pull'
functionality because this can fail badly, so there is a 'fetch' which
retrieves all remote branches without merging (and never fails). The
user can then select the remote branch in the branch pull-down and merge
it.
2024-04-15 09:58:25 +02:00
Andrej730
f7b2a68ed3
Detect BBIM railings at import to import as meshes not curves #3144
...
Sometimes railing could consist just of one IFCSWEPTDISKSOLID then it will be considered native swept disk solid and imported as a curve.
But when user create BBIM railing they edit it as a mesh and curve might look a bit different. Therefore we detect it now at import to make sure it's going to be reprsented the same way as it was saved.
2024-04-15 09:58:25 +02:00
Andrej730
3601a1d43b
Reset active drawing id if we removed the active drawing
...
Previously there was an error if you remove all drawings:
```
Traceback (most recent call last):
File "\addons\blenderbim\bim\module\drawing\ui.py", line 182, in draw
DrawingsData.load()
File "\addons\blenderbim\bim\module\drawing\data.py", line 106, in load
"active_drawing_pset_data": cls.active_drawing_pset_data(),
File "\addons\blenderbim\bim\module\drawing\data.py", line 134, in active_drawing_pset_data
drawing = ifc_file.by_id(bpy.context.scene.DocProperties.active_drawing_id)
File "\addons\blenderbim\libs\site\packages\ifcopenshell\file.py", line 326, in by_id
return self[id]
File "\addons\blenderbim\libs\site\packages\ifcopenshell\file.py", line 314, in __getitem__
return entity_instance(self.wrapped_data.by_id(key), self)
File "\addons\blenderbim\libs\site\packages\ifcopenshell\ifcopenshell_wrapper.py", line 4517, in by_id
return _ifcopenshell_wrapper.file_by_id(self, id)
RuntimeError: Instance #1 077 not found
```
2024-04-15 09:58:25 +02:00
Andrej730
af2e0b07c3
fixed neg values in format_distance & section/plan level #3175
2024-04-15 09:58:25 +02:00
Andrej730
9403b8cbf0
Added default Model/Annotation/PLAN_VIEW to support e68fdb2db
2024-04-15 09:58:25 +02:00
Andrej730
afda99d2f4
Test that drawing styles are loaded
2024-04-15 09:58:25 +02:00
Andrej730
4f8851f007
Fixed error on rebuilding sheet with underlays
...
Also added description and more clear name for `bim.open_sheet`
Error was:
```
Error: Python: Traceback (most recent call last):
File "\addons\blenderbim\bim\module\drawing\operator.py", line 82, in execute
IfcStore.execute_ifc_operator(self, context)
File "\addons\blenderbim\bim\ifc.py", line 410, in execute_ifc_operator
result = getattr(operator, "_execute")(context)
File "\addons\blenderbim\bim\module\drawing\operator.py", line 1177, in _execute
del raster_references[reference.Location]
TypeError: list indices must be integers or slices, not str
```
2024-04-15 09:58:25 +02:00
Andrej730
c37b71a3d3
Update drawing styles on changing Underlay checkbox #3172
2024-04-15 09:58:25 +02:00
Bruno Postle
fabfa6ad7a
Git remote fetch and push operations ( #3096 )
2024-04-15 09:58:24 +02:00
Ryan Schultz
bda25b7932
allow elevations to show negative values
...
removed RL - not standard throughout the world
2024-04-15 09:58:24 +02:00
Andrej730
a07d782683
Added test scenario to reproduce #3169
...
Can be easily called with `pytest .\test\bim\test_feature.py -k "issue"`
Commented some lines out to make sure it doesn't interrupt someone's test process.
Need to uncomment `When I press "bim.create_drawing"` if you want to see if it freezes for you.
You can also uncomment `And I save sample test files and open in blender` to see the freeze manually in Blender client.
2024-04-15 09:58:24 +02:00
Andrej730
ce9769b1e1
Test to cover drawing maintaining sheet position #3155
...
Updated to gitignore to include some new folders that are created during tests
2024-04-15 09:58:24 +02:00
Andrej730
2d67950503
3d annotations for FALL, SECTION_LEVEL, PLAN_LEVEL #3145
...
Before that commit if you created those types of annotations and then reopened .ifc file (without .blend) then you would lose their z coordinate and therefore would lose their value (because they were created previously as 2d annotations).
Now those annotations created as 3d to avoid that problem. I've also added temporary fallback that will turn your existing annotations to 3d next time you edit them.
2024-04-15 09:58:24 +02:00
Andrej730
9c9b8b265c
Maintaining drawing's sheet position on raster x/y changes #3155
...
Example - https://i.imgur.com/uiNWhIq.png
2024-04-15 09:58:24 +02:00
Andrej730
00a1699eab
More consistent PlanLevel and SectionLevel in viewport and svg
...
Now it's using first vert instead of last to calculate height (same way svgwriter does it)
2024-04-15 09:58:24 +02:00
Andrej730
e06fa6267e
Showing decorations on activating view #3146
2024-04-15 09:58:24 +02:00
Andrej730
539d218b25
AngleDecorator - changed edges / arc colors
...
Now angle annotation edges (not the arc itself) are greyed out when you're not editing them - that way they won't draw unnecessary attention. When you're in edit mode they'll appear white and the angle arc will appear blue.
Demo - https://imgur.com/a/lsgp9G4
2024-04-15 09:58:24 +02:00
Andrej730
1ec50fb125
Positioning AngleDecorator text at the center of the arc
...
Before - https://i.imgur.com/0VxFkg9.png
After - https://i.imgur.com/ibDnlbE.png
2024-04-15 09:58:24 +02:00
Andrej730
5ac6b1cd87
More smoothed lines for annotations with angles and circles
2024-04-15 09:58:24 +02:00
Andrej730
ec39cdfc6d
Added some tests for changing ifc text
2024-04-15 09:58:24 +02:00
Andrej730
0c0906d06a
Fixed bug with annotations update #3159
...
toggleDecorations was interrupted because it was trying to update text for non text element
2024-04-15 09:58:24 +02:00
Andrej730
ae0ae76ee6
Fixing bug with changing text size #3159
...
Bug appeared after 046940f but it was there before - it was just kind of compensated by the other bug.
Because of that bug blender text size value was reupdated before saving it to pset therefore pset never received a new value.
Also added some refactor, planned to write some test to get this error covered.
2024-04-15 09:58:24 +02:00
Andrej730
87dba7c066
Fixed ifc text annotation preview not showing during edit #3159
...
Error was:
```
Traceback (most recent call last):
File "\scripts\addons\blenderbim\bim\module\drawing\decoration.py", line 1899, in __call__
decorator.decorate(context, obj)
File "\scripts\addons\blenderbim\bim\module\drawing\decoration.py", line 1451, in decorate
self.draw_text(context, obj)
File "\scripts\addons\blenderbim\bim\module\drawing\decoration.py", line 540, in draw_text
symbol = text_data["Symbol"]
KeyError: 'Symbol'
```
2024-04-15 09:58:24 +02:00
Andrej730
6aa372d2b6
Schedule Builder - some naive support for font size in text #3154
2024-04-15 09:58:24 +02:00
Andrej730
e8fc86a041
Schedule Builder - support for bold and italic text in cells #3154
2024-04-15 09:58:24 +02:00
Andrej730
c51c3e5e3c
Schedule builder - fixing cell alignment #3154
...
Noticed that it's actually not merging cell style with col style as I did before but just prioritizing cell style if it's defined
2024-04-15 09:58:24 +02:00
Andrej730
26a3fe8a5d
Schedule cells limit without print range to prevent system freeze
...
What I've found that sometimes you might get into situation (especially if .ods was created / processed in Excel) you might get a lot unnecessary columns and rows (in fact excel always seems to save 1048576x16384 table) and trying to print this kind of table results in investing a lot of RAM into it and possible system freeze.
Now there is a check if table has more than 10000 cells (number is completely made up 😁 ) then it would require user to define print range in the table to prevent the issue.
2024-04-15 09:58:24 +02:00
Andrej730
e5add946fe
Scheduler builder enhancements #3154
...
Now it supports
1) print ranges - in svg you'll get only the part that's included in print-range.
2) children styles - sometimes cells inherit center alignment from column styles and before that commit text wouldn't be centered in svg in that case
3) repeating rows support
2024-04-15 09:58:24 +02:00
Andrej730
91387b3aa8
Saving drawing shading styles to ifc #2991
...
Now shading styles are stored in ifc. It's actually stored in json file (by default it's in projects "assets/shading_styles.json") and the path to it saved in `EPset_Drawing.ShadingStyles`.
Current shading styles is stored in `EPset_Drawing.CurrentShadingStyle`.
This change could potentially cause problems but I've added some temporary fallback to make sure `EPset_Drawing.ShadingStyles` will be set to some default path and default shading styles will be copied to the project's folder.
2024-04-15 09:58:24 +02:00
Bruno Postle
046a356915
BlenderBIM Git clone repository operator ( #3096 )
2024-04-15 09:58:24 +02:00
Gorgious
5e6ffd9ab6
use tool module instead of local function to activate object
2024-04-15 09:58:24 +02:00
Bruno Postle
8b85875b45
BlenderBIM Git tagging documentation
2024-04-15 09:58:24 +02:00
Bruno Postle
a4e9f304d9
BlenderBIM list and create git tags #3096
2024-04-15 09:58:24 +02:00
Andrej730
41ef46cb88
Multiline in dimension description / suffix / prefix #3005
...
Also added some offset for dimension text in viewport to make it more similar to svg
2024-04-15 09:58:24 +02:00
Andrej730
dff88c7560
Option to add prefix and suffix to dimension annotation #3005
...
Example - https://imgur.com/a/0NkStWm
2024-04-15 09:56:51 +02:00
Andrej730
6e290d585e
Ifc CSV Export template now also saves the expression #3034
...
Previously saved templates wouldn't work now, they need to be either recreated or modified to make them work.
Example of old template format:
`["Name", "class", "type.Name"]`
Example of new template format:
`{"expression": ".IfcDoor", "attributes": ["Name", "class", "type.Name"]}`
Note that this would work too:
`{"attributes": ["Name", "class", "type.Name"]}`
2024-04-15 09:56:51 +02:00
Andrej730
03e373aaff
Not all curve annotation types were detected at the import #3090
2024-04-15 09:56:51 +02:00
Gorgious
4f47366976
Fix #3128 : RefLatitude and RefLongitude attributes now show their description on right click + add a snippet to tell the user how to format the values
2024-04-15 09:56:51 +02:00
Bruno Postle
957bcaa21b
Report ifcmerge conflicts in pop-up #3096
2024-04-15 09:56:51 +02:00
Kristoffer Andersen
1a86752ed0
Update meta.yaml
...
pin daily conda builds to occt 7.7.0
2024-04-15 09:56:51 +02:00
Gorgious56
078e50423f
Fix typo in get_pset docstring
2024-04-15 09:56:51 +02:00
Andrej730
436f81d137
Migrating shaders to builtins to support M1 #2897
...
Migrated all shaders from geometry shaders to builtins (all geometry data now calculated in python before passing to shader) to make them more reliable and support Metal backend on Mac M1 (tested that it works - both annotations and gizmo).
The current downside is that there is no more custom frag shaders too - meaning we do not support dashed lines in the annotations (currently Hidden and Grid just use a bit less bright annotation color).
2024-04-15 09:56:51 +02:00
Bruno Perdigão
edd5686c13
changed custom scale input
2024-04-15 09:56:51 +02:00
Bruno Postle
838b0b04fb
Selecting a git revision updates info box
2024-04-15 09:56:51 +02:00
Sigma Dimensions
da5b9e2b22
Fix task json issue due to "Bad control character in string literal in JSON at position XXXX"
2024-04-15 09:56:51 +02:00
Sigma Dimensions
f6a6201c30
Convenient Pie Menu shortcut to aggregate selected objects to active object
2024-04-15 09:56:51 +02:00
Sigma Dimensions
da13f4cb46
fix toggle_cost_item_parent
2024-04-15 09:56:51 +02:00
Sigma Dimensions
607cb253d2
Fix baseline gantt chart bug when new tasks are added to the planned schedule
2024-04-15 09:56:51 +02:00
Dion Moult
dff827db59
Minor improvements to shape utility.
2024-04-15 09:56:51 +02:00
Dion Moult
c5154ec594
See #2673 . Bundle IfcTester for PyPI.
2024-04-15 09:56:51 +02:00
arun
3ea7e28b12
corrected get_extrusions function
2024-04-15 09:56:51 +02:00
Dion Moult
3b66822fe2
Add shape utility to easily get profiles and extrusions
2024-04-15 09:56:38 +02:00
Bruno Postle
d7a74dd6a4
BlenderBIM ifc file association (linux only) #2399
2024-04-15 09:56:38 +02:00
Bruno Postle
b987d5ca7c
Rename blenderbim.sh, better initialisation #2399
2024-04-15 09:56:38 +02:00
Dion Moult
b8431a8c33
Fix failing tests in preparation for release.
2024-04-15 09:56:38 +02:00
Dion Moult
89310d19cb
Fix #3084 . Issue where drawings with no elements couldn't be generated.
2024-04-15 09:56:38 +02:00
Sigma Dimensions
769dd6c09a
fix test-related sequence bug
...
Fix baseline gantt chart bug
2024-04-15 09:56:38 +02:00
Sigma Dimensions
eb29543d24
Fix baseline gantt chart bug when new tasks are added to the planned schedule
2024-04-15 09:56:38 +02:00
Sigma Dimensions
0b9e7af325
BBIM4D: Enable filtering by active work schedule when retrieve tasks related to objects
2024-04-15 09:56:38 +02:00
Sigma Dimensions
e25c43879f
Auto-refresh task sorting
2024-04-15 09:56:38 +02:00
Bruno Postle
8add979bf3
Basic user documentation for BlenderBIM Git functionality ( #3096 )
2024-04-15 09:56:38 +02:00
Dion Moult
8b173e5b4d
Fix fundamental bug where area and volume units were ignored on new projects.
2024-04-15 09:56:38 +02:00
Andrej730
5bc181a2cf
Small addition to 8c302ed85
2024-04-15 09:56:38 +02:00
Andrej730
06a6d7cacd
Changed x_angle subtype to degrees
...
Now BIMModelProperties.x_angle stores data in radians internally but for user it still appears as degrees
2024-04-15 09:56:38 +02:00
Dion Moult
0a637ea4fa
See #1676 . Fix space boundary generation for IFC4 RV where openings are already subtracted from the body.
2024-04-15 09:56:38 +02:00
Dion Moult
b7e61ad10b
Accommodate invalid named units when loading IFCs.
2024-04-15 09:56:38 +02:00
Dion Moult
3e9f1f7d5c
See #3085 . Don't bundle numpy as Blender already has it and it causes conflicts.
2024-04-15 09:56:38 +02:00
Andrej730
059b717bf3
Updating BIM Tools props on active object change #3102
...
Updating extrusion_depth, length and x_angle on active object change. Shouldn't be too expensive and that way it'll be more consistent with Blender UI.
2024-04-15 09:56:38 +02:00
Andrej730
10e442188b
Fallback to abs path adding schedule rel path is not available #3106
2024-04-15 09:56:37 +02:00
Andrej730
6d14fcdac6
Updating drawing's size on sheet to match it's scale #2965
2024-04-15 09:56:37 +02:00
Massimo Fabbro
39d8a9871b
Now it's possible to regenerate a space that it was created automatically from walls
2024-04-15 09:56:37 +02:00
Sigma Dimensions
2bd8ac25c1
remove annoying print statement, run black on cost
2024-04-15 09:56:37 +02:00
Sigma Dimensions
4dfaea3675
remove annoying print statement, run black on cost
2024-04-15 09:56:37 +02:00
Sigma Dimensions
09a300b57b
fix copying relationships when duplicating tasks
2024-04-15 09:56:37 +02:00
Sigma Dimensions
7188d6ea74
BBIM 4D: implement human readable duration to read/edit durations.
...
new IOS Fuzzy Duration Parsing utility
2024-04-15 09:56:37 +02:00
Sigma Dimensions
7d61c292fe
fix editing null task duration values #3091
2024-04-15 09:56:37 +02:00
Dion Moult
6bad697ec4
Minor documentation update to describe how add-ons with conflicting deps / hotkeys are incompatible.
2024-04-15 09:56:37 +02:00
Dion Moult
f6ccfb52b3
See #1676 . Space boundary generation now accounts for voids and fills.
2024-04-15 09:56:37 +02:00
Dion Moult
60985752d3
See #1676 . Space boundaries default to physical internal boundaries.
2024-04-15 09:56:37 +02:00
Dion Moult
767c435c00
See #1676 . You can now set the type of boundary class prior to generating boundaries.
2024-04-15 09:56:37 +02:00
Andrej730
7b5ece2f4a
A bit more intuitive adding drawing/schedule to the sheet
...
Now it will detect currently active sheet even if you have sheet's drawing/titleblock/schedule selected.
2024-04-15 09:56:37 +02:00
Dion Moult
c615f7469a
See #1676 . You can now duplicate space boundaries.
2024-04-15 09:56:37 +02:00
Andrej730
41e88636ff
Annotation Tool - always show "Add type" button
...
It wasn't showing if you had some objects selected which seems a bit counterintuitive - the need to deselect everything to create a new type.
2024-04-15 09:56:37 +02:00
Andrej730
3f3c9e937d
Fixed error during building schedule from ods
...
We were discarding some styles that didn't have any style properties and then we always needed to keep it in mind later on, now we just create empty dict for those.
2024-04-15 09:56:37 +02:00
Andrej730
9cc87e10a1
Apply scale and rotation to ifc text symbols #3094
...
Before symbols attached to ifc text were not rotated / scaled if they didn't have "text-template" fields in them.
2024-04-15 09:56:37 +02:00
Andrej730
e82fdc8a52
Support multiline text in the schedule #3010
...
Before - https://i.imgur.com/gff5jo3.png
After - https://i.imgur.com/meyXBYb.png
2024-04-15 09:56:37 +02:00
Andrej730
595e73ca19
Added some (naive) text wrapping in the schedule #3010
...
Before - https://i.imgur.com/dJPQ788.png
After - https://i.imgur.com/T1FtI8H.png
For it to work make sure you have word wrapping in ods.
It's still very naive since it's taking constant font width which could vary depending on font type, font size, font lettering. The proper way would be is to either find some svg way to do it (couldn't find any stable one) or to render text to identify it's width (could be done with PIL but seems overkill, atleast for now).
2024-04-15 09:56:37 +02:00
Sigma Dimensions
8d2ea88b9b
BBIM 4D: Enable displaying task tooltip in the gantt chart & add resource columns
2024-04-15 09:56:37 +02:00
Sigma Dimensions
cbb6878f51
BBIM 4D: You can now visualize & print work schedule baselines with Gantt Charts
2024-04-15 09:56:37 +02:00
Sigma Dimensions
c761c7d5d9
minor fix
2024-04-15 09:56:37 +02:00
Sigma Dimensions
dee0b5cdb9
BBIM 4D Gantt: Support multiple languages, human readable durations, add convenient Print Function with different Sheet Formats,
...
start improving overall page style; refactor code to split js and css code away from mustache file
2024-04-15 09:56:37 +02:00
Andrej730
47711f723f
Small fix for text alignment in scheduler
2024-04-15 09:56:37 +02:00
Dion Moult
b7c3bcbe3f
Fix #3085 . Prioritise shipped BlenderBIM Add-on packages instead of system packages to avoid dependency clashes.
2024-04-15 09:56:37 +02:00
Dion Moult
1e8a137fd7
Minor UI cleanup. Remove align buttons from architectural tool panel.
2024-04-15 09:56:37 +02:00
Dion Moult
28686b2fa8
See #1676 . You can now add basic space boundaries with the BIM Tool with Shift-B, either by selecting both a space and an element (e.g. wall) or selecting a space and placing the 3D cursor on a face.
2024-04-15 09:56:37 +02:00
Dion Moult
a863c6d68e
See #1676 . Deleting space boundaries now also removes connection geometry.
2024-04-15 09:56:37 +02:00
Andrej730
9f19b33764
Support cells text alignment building schedule from ods #2885
...
Before - https://i.imgur.com/9QZ2YW2.png
After - https://i.imgur.com/M7ZHSJq.png
2024-04-15 09:56:37 +02:00
Andrej730
f858dd14d9
Support merged columns building schedule from ods #2885
...
Before - https://i.imgur.com/p1l6ugn.png
After - https://i.imgur.com/9QZ2YW2.png
2024-04-15 09:56:37 +02:00
Andrej730
dfe143290e
Keep rows height building svg schedule from ods #2885
...
Before - https://i.imgur.com/erMH4Ku.png
After - https://i.imgur.com/p1l6ugn.png
2024-04-15 09:56:37 +02:00
Andrej730
c9d2a9810e
More safe adding roof modifier #3080
2024-04-15 09:56:37 +02:00
Dion Moult
628cdf8ca0
Fix #3088 . Prioritise body curves to be loaded before trying to load 2D annotations.
2024-04-15 09:56:37 +02:00
Sigma Dimensions
9d6de8c019
BBIM 4D: Auto Update Resource Usage from resource tree
2024-04-15 09:56:37 +02:00
Sigma Dimensions
775f570897
BBIM feature to create & view work schedule baselines
2024-04-15 09:56:37 +02:00
Sigma Dimensions
242745fa25
IOS.API consider removing baseline tasks when deleting tasks
2024-04-15 09:56:37 +02:00
Sigma Dimensions
31131c1106
IOS.API usecase to create a work schedule baseline
2024-04-15 09:56:37 +02:00
Sigma Dimensions
51402cdc59
run black
2024-04-15 09:56:36 +02:00
Dion Moult
9f07605de0
Accommodate space boundaries with no connection geometry, fetch spatial structure for IFC2X3, and fix scale bug when editing boundary profiles.
2024-04-15 09:56:36 +02:00
dependabot[bot]
568f1657ad
Bump flask from 2.0.1 to 2.3.2 in /src/opencdeserver
...
Bumps [flask](https://github.com/pallets/flask ) from 2.0.1 to 2.3.2.
- [Release notes](https://github.com/pallets/flask/releases )
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst )
- [Commits](https://github.com/pallets/flask/compare/2.0.1...2.3.2 )
---
updated-dependencies:
- dependency-name: flask
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-15 09:56:36 +02:00
Thomas Krijnen
da348e36be
#2676
2024-04-15 09:56:36 +02:00
Andrej730
40e67dc54f
Option to scale symbol from ifc tag by scaling ifc text object #2946
...
Also added some text scaling in viewport if there is some symbol associated with text annotation to roughly visually indicate how big this thing is going to be in the svg.
Example - https://user-images.githubusercontent.com/9417531/235445393-447f3aba-8425-4da6-81d0-6bf9004fcf2b.mp4
2024-04-15 09:56:36 +02:00
Andrej730
23ef51495b
Keep text rotation for text annotation with symbols #2946
2024-04-15 09:56:36 +02:00
Dion Moult
29243b787a
See #1676 . You can now toggle boundaries on or off in the BIM tool via Alt-B, with a special boundary decorator.
2024-04-15 09:56:36 +02:00
Andrej730
499edf960d
Test command to load blend file during test scenario for debugging
2024-04-15 09:56:36 +02:00
Andrej730
98fdebb81e
Moving decorators colors from scene to addon props #3033
2024-04-15 09:56:36 +02:00
Dion Moult
8cc42ab84b
See #1676 . Tab now toggles space boundary surface profile editing.
2024-04-15 09:56:36 +02:00
Andrej730
aaa24ee521
Fixed error on adding Roof modifier to non-footprint objects #3080
2024-04-15 09:56:36 +02:00
Andrej730
17cb72896f
Fixed bug with double conversion of height/extrusion length #3073
...
Also fixed some tests
2024-04-15 09:56:36 +02:00
Sigma Dimensions
55250aba6d
BBIM 4D features & fixes:
...
- feature to re-order tasks
- fixes for task sorting
- further workSchedule UI/UX improvements
- forgotten bits and bobs
2024-04-15 09:52:38 +02:00
Sigma Dimensions
2aa5e9d808
- refactor IOS.API resource calculation to re-use shared utilities
...
- run black
2024-04-15 09:52:38 +02:00
Sigma Dimensions
83344e4f43
- BBIM 4D: features to review and edit Resource productivity data on the fly
...
- IOS: new resource utilitiy functions
2024-04-15 09:52:38 +02:00
Dion Moult
380eca4382
Add profile-style (like slab editing) enable editing, edit, and disable editing operators for energy boundary surface geometry.
2024-04-15 09:52:38 +02:00
Dion Moult
aa6c4cea24
Fix #3030 . Don't bother layerset slicing walls with a single layer.
2024-04-15 09:52:38 +02:00
Dion Moult
f4c4b60842
Cut merging now only applies to particular elements for the majority of cases. Drawing generation can be twice as fast due to this.
2024-04-15 09:52:38 +02:00
Massimo Fabbro
98d96fdd7c
Generate space from walls refactor and cleaning around
2024-04-15 09:52:38 +02:00
Massimo Fabbro
08a6fe5748
Add generate space button in UI in N-Panel -> BlenderBim -> Architectural
2024-04-15 09:52:38 +02:00
Massimo Fabbro
2ff5ffcb24
Now it's possible to create spaces automatically from selected walls
2024-04-15 09:52:38 +02:00
Sigma Dimensions
0d2ab2317a
Fix duplicate task logic in IOS.API
2024-04-15 09:52:38 +02:00
Dion Moult
62657e7b9b
Filter elements visible in the camera view. Drawing generation is now significantly faster on larger projects (e.g. 24s down to 10s for a portion of the Revit sample project)
2024-04-15 09:52:38 +02:00
Dion Moult
83f8260029
Fallback to unmerged polygons if merging fails. More investigation needed.
2024-04-15 09:52:38 +02:00
Dion Moult
afb3759fc2
Viewport layerset slicing now uses a cache for speed.
2024-04-15 09:52:38 +02:00
Andrej730
14abf0fd23
Fixed double conversion in bim tool props after b4b6404
...
No more 1000000 and 3000000 mm values
2024-04-15 09:52:38 +02:00
Andrej730
3d9994726b
Added support for different railing cap types
...
Very similar to this - https://i.imgur.com/SNyvfgh.png
2024-04-15 09:52:38 +02:00
Dion Moult
54c6fa2067
Fix bug where numerical tolerance caused certain objects to be unnecessarily updated.
2024-04-15 09:52:38 +02:00
Dion Moult
2b3b53b147
Fix bug in cut decorator layersets where walls could be joined to odd non-layered things.
2024-04-15 09:52:38 +02:00
Dion Moult
35d224be31
Fix #3053 . Bug where very thin meshes (<1mm) couldn't be reverse engineered into extrusions.
2024-04-15 09:52:38 +02:00
Andrej730
b5d24334fd
Fixed bug with wrong position of support in wall mounted railing
...
The problem was that that support's disk was not rotated according to the railing path.
2024-04-15 09:52:38 +02:00
Sigma Dimensions
1ef3a54fe1
BBIM 4D: Auto-refresh task re-ordering
2024-04-15 09:52:38 +02:00
Dion Moult
df9a33a2c8
Fix #3066 . Regression crash when deleting openings.
2024-04-15 09:52:38 +02:00
Sigma Dimensions
d5c837b517
forgotten core functions & run black
2024-04-15 09:52:38 +02:00
Sigma Dimensions
e4d3e32519
Sequence Tools clean-up
2024-04-15 09:52:38 +02:00
Sigma Dimensions
720600e0fb
BBIM 4D: Features to select a Work Schedule's assigned / unassigned products
2024-04-15 09:52:38 +02:00
Sigma Dimensions
7c7058be5d
Work Schedule Panel UX improvement
2024-04-15 09:52:38 +02:00
Sigma Dimensions
0b981ac9ce
Fix schedule task sorting
2024-04-15 09:52:38 +02:00
Dion Moult
0400b72f3e
Fix #3052 . Deep deletion of large geometries is now thousands of times faster.
2024-04-15 09:52:37 +02:00
Bruno Postle
c806f924ec
Fix crash when switching between git revisions
2024-04-15 09:52:37 +02:00
Bruno Postle
9131578807
Fix check for invalid Git branch name
2024-04-15 09:52:37 +02:00
Andrej730
1dcf74eb60
WALL_MOUNTED_HANDRAIL type for Railing modifier
...
Added WALL_MOUNTED_HANDRAIL type for railing modifier. It's still a bit work in progress - still need to add support for different railing termination types.
Here's the short demonstration - https://user-images.githubusercontent.com/9417531/234582621-6c6f948b-9cdc-4be6-b380-17ddbf5803bf.mp4
2024-04-15 09:52:37 +02:00
Dion Moult
af1d14a0c1
See #1227 . Minor fix.
2024-04-15 09:52:37 +02:00
Dion Moult
273c970c11
See #1227 . Experimental viewport layerset visualisation.
2024-04-15 09:52:37 +02:00
Bruno Postle
1e6bc5a14e
Fix some refresh glitches in IFC Git panel
2024-04-15 09:52:37 +02:00
Bruno Postle
f86713584c
Format ifcgit code with black
2024-04-15 09:49:53 +02:00
Dion Moult
4f8510ad60
Fix #3046 . Renaming drawings now updates all drawing references on sheets.
2024-04-15 09:49:53 +02:00
Andrej730
74afcb1b3e
Fixing error on using bim.override_mode_set_edit with no active object
...
Error was:
File "\addons\blenderbim\bim\module\geometry\operator.py", line 775, in _execute
obj.select_set(True)
AttributeError: 'NoneType' object has no attribute 'select_set'
2024-04-15 09:49:53 +02:00
Andrej730
7f4f9393b3
Fixed blurred text with background after bfbced3
...
before commit - https://user-images.githubusercontent.com/9417531/233907917-f86ad10b-0227-4180-9488-a8b71a00f099.png
after commit https://user-images.githubusercontent.com/9417531/233907920-d100c73a-e206-42fd-bb41-f7257ea6f98c.png
Tested it on firefox too
2024-04-15 09:49:53 +02:00
Dion Moult
b1b57a9ec9
Fix #3055 . Get paths using forward slashes for platform compatibility.
2024-04-15 09:49:53 +02:00
Dion Moult
f89e8697d8
Fix #3051 . Text background filter now applied on <text> element to make it work on Firefox.
2024-04-15 09:49:53 +02:00
Dion Moult
6a39d0fed6
Fix #3040 . View title template variables now have access to sheet attributes prefixed with "Sheet".
2024-04-15 09:49:53 +02:00
Dion Moult
86d60f4cd9
Fix #3001 . User can now specify join criteria in drawings. Only elements where all the criteria have the same values are merged.
2024-04-15 09:49:53 +02:00
Dion Moult
a19b5c0473
Fix #3054 . Edit sheet is now implemented for drawings, schedules, and titleblocks.
2024-04-15 09:49:53 +02:00
Bruno Postle
5a46d79387
Include git, gitdb and smmp libs in blenderbim zip
2024-04-15 09:49:53 +02:00
Bruno Postle
102a4f181d
Install GitPython *before* removing the working folder
2024-04-15 09:49:53 +02:00
Bruno Postle
e956e36957
Add GitPython dependency
2024-04-15 09:49:53 +02:00
Dion Moult
5a95dfa31a
New default patterns for stack and stretcher bond tiles and floorboards.
2024-04-15 09:49:53 +02:00
Bruno Perdigão
b3404a68d7
applyed the patch by Bruno Postle
2024-04-15 09:49:53 +02:00
Bruno Perdigão
a39f268a53
changed imports to integrate with blenderbim
2024-04-15 09:49:53 +02:00
Bruno Perdigão
dff4c178e7
initial commit
2024-04-15 09:49:53 +02:00
Dion Moult
af140c1861
See #3002 . Spaces are now managed separately so that they don't conflict with projection polygon merging and raycasting.
2024-04-15 09:49:53 +02:00
Dion Moult
f9526b038c
See #3002 . Experimental SVGFill approach to polygon merging.
2024-04-15 09:49:53 +02:00
Thomas Krijnen
84287bf3ae
Update draw.py
2024-04-15 09:49:53 +02:00
Andrej730
83f5241694
Fixed couple bugs in furniture library
...
1) last polyline point was failing on Consecutive rule causing validation errors
2) Fixed wrong ifc class for dishwasher (was used occurence class instead of type)
2024-04-15 09:49:53 +02:00
Dion Moult
5bd16d8600
See #3002 . Experimental shapely approach to polygon merging for semantic projection elements.
2024-04-15 09:49:52 +02:00
Andrej730
61dda1d09d
Roof modifier - remove redundant context fill causing visual artifacts
2024-04-15 09:49:52 +02:00
Andrej730
d3d076adbe
Roof modifier - removing bottom chord if angle = 90 degrees
...
This - https://i.imgur.com/75AmYGI.png
instead of https://community.osarch.org/uploads/editor/yp/zcaqxx9b33wu.png
2024-04-15 09:49:52 +02:00
Andrej730
26ab901a9e
Roof Modifier - separating vertices on defining gable roof angle
...
Added option (which is activated by default) - when you set gable roof angle for some edge it will duplicate the top vertex instead of just moving which allows you to do shape like this - https://imgur.com/a/OEFZ4pw
Previously you would get something like this in that case - https://community.osarch.org/uploads/editor/ap/hlt70rbw5r1l.png
2024-04-15 09:49:52 +02:00
Andrej730
16b6861765
OverrideDelete - remove objects with X if they are not related to ifc
...
It was a bit frustraiting when you added a cube and can't just get rid of it with X hotkey 😅
2024-04-15 09:49:52 +02:00
Andrej730
c03666c395
Fixed error in disabling text exiting after deleting text literal
2024-04-15 09:49:52 +02:00
Dion Moult
2bc6d3b43b
Fix validation error where IfcURIReference cannot be used as a property data type :(
2024-04-15 09:49:52 +02:00
Dion Moult
4722208fa4
Fix #3038 . Fix #3039 . Selector should default to none instead for throwing errors if the query doesn't have a result.
2024-04-15 09:49:52 +02:00
Dion Moult
6a25d05e5d
Fix #3021 . IfcSpatialElements are included in drawings by default.
2024-04-15 09:49:52 +02:00
Andrej730
999186f684
Converting to project units inside QtoCalculator.guess_quantity
...
Also added some error message if `calculate_quantity` failed to calculate a quantity
2024-04-15 09:49:52 +02:00
Andrej730
c73e34eb8c
tool.Qto.convert_to_project_units
2024-04-15 09:49:52 +02:00
Andrej730
c4c848867c
bim.calculate_quantity - remove convertion part
...
now the convertion already happens in QtoCalculator.calculate_quantity
2024-04-15 09:49:52 +02:00
Andrej730
6ee8369114
test_qto.py black format
2024-04-15 09:49:52 +02:00
Andrej730
ccba3a3b8b
Tests for calculating quantities for prefix and imperial project units
2024-04-15 09:49:52 +02:00
Andrej730
e44f0e2050
qto_calculator.py black format
2024-04-15 09:49:52 +02:00
Andrej730
ac46276748
Update QtoCalculator to convert to project units at the end
...
Before this commit it was calculating all values in meters not taking into account actual project units.
2024-04-15 09:49:52 +02:00
Kristoffer Andersen
bb73390afe
Fix conda env
2024-04-15 09:47:27 +02:00
Andrej730
b00cd887cd
Added DISTANCE subtype to BIM Tool Extrusion Depth and Length
...
In BIM Tool it looks like this right now - https://i.imgur.com/JWVPssg.png (note the units)
Previously it was displaying value like this - https://i.imgur.com/244aYTN.png
The benefit is that you can specify other units in that kind of property and it will automatically convert to current project's unit.
For example if you have millimeters as project's unit you can still type "10m" instead of "5000" and it will automatically convert it to 5000mm.
Or type in inches like 5" 11'.
2024-04-15 09:37:50 +02:00
Andrej730
2dd7057fec
Update viewport on bim.activate_model
...
To see the changed context right away in the viewport
2024-04-15 09:37:50 +02:00
Andrej730
56c587da10
Fixed bug with wrong text value in viewport on canceling text editing
...
Actual text was replacing with "TEXT" default value if you cancel text editing instead of applying changes
2024-04-15 09:37:50 +02:00
Andrej730
9722063c93
Fixed bug in get_object_bounding_box #3023
2024-04-15 09:37:50 +02:00
arun
8517f808a8
Nesting added to util.get_decomposition function
2024-04-15 09:37:50 +02:00
Sigma Dimensions
dae8d6bdc1
fix "cost_item quantity updates" bug when editing a QTO
2024-04-15 09:37:50 +02:00
htlcnn
181966b08e
fix EditBcfTopic and EditBcfTopicName
2024-04-15 09:37:50 +02:00
Andrej730
b40c77a3e0
CutDecorator color connected to preferences too #2987
2024-04-15 09:37:50 +02:00
Dion Moult
bfe76b83dc
New default triangle, hexagon, capsule, circle, and space tag symbols
2024-04-15 09:37:50 +02:00
Andrej730
15c5c9da20
Added some decorator colors to addon preferences #2987
...
For ProfileDecorator (editing profiles, roof preview) and DecorationsHandler (openings).
Still need to add CutDecorator colors to preferences
2024-04-15 09:37:50 +02:00
Andrej730
3c4e25edc7
Some descriptions for EPset_Drawing
2024-04-15 09:37:50 +02:00
Andrej730
5d650d29e0
Fixed text annotation rotation in viewport #3017
...
Fixed text annotation rotation in viewport for the views rotated by multipel axis.
Changed text direction calculation to be the same in both viewport and svg.
2024-04-15 09:37:50 +02:00
Thomas Krijnen
77445f9b22
get_mappeditem_transformation()
2024-04-15 09:37:50 +02:00
Thomas Krijnen
0325c49c3d
Add util.placement.get_cartesiantransformationoperator3d()
2024-04-15 09:37:50 +02:00
Thomas Krijnen
5f334192db
Normalize vectors in a2p()
2024-04-15 09:37:50 +02:00
Vukas Pajic
63bfa290db
Update failure reason #3018
2024-04-15 09:37:50 +02:00
Andrej730
94f4f499ef
unsuppress zero inches in formatting distance #3011
...
Added option to suppress zero inches in the dimension annotation text through SuppressZeroInches property of BBIM_Dimension property set.
Previously by default suppressing zero inches was enabled. Now by default it is disabled.
SupressZeroInches On - https://i.imgur.com/nrhELnA.png
SupprezZeroInches Off - https://i.imgur.com/gIuO2GW.png
2024-04-15 09:37:50 +02:00
Dion Moult
2fc74fd440
Fix bug where you could save geometry with no data (no vertices / splines) which is invalid.
2024-04-15 09:37:50 +02:00
Dion Moult
eea93265f7
Fix #2913 . Bug where properties with multiple inverses were not correctly purged.
2024-04-15 09:37:49 +02:00
Dion Moult
e6f13a4ef9
Fix #2916 . Bug where joining swept solids didn't merge styles correctly.
2024-04-15 09:37:49 +02:00
Vukas Pajic
7ca6fec75f
cleanup
2024-04-15 09:37:49 +02:00
Vukas Pajic
bc2a12a498
added new tests for case where spec has no requirements
2024-04-15 09:37:49 +02:00
Andrej730
1cf524b95d
Fixed bug in bim.select_assigned_product
...
It was trying to call method `Drawingcls.get_active_object()` that didn't exist
2024-04-15 09:37:49 +02:00
Andrej730
00370e94d0
TEXT_LEADERS BoxAlignment, FontSize, multiline in viewport preview #3008
...
Moved code for drawing text in viewport to a separate reusable method `draw_text` in BaseDecorator.
2024-04-15 09:37:49 +02:00
Dion Moult
98309da543
Add support for loading IfcProxy
2024-04-15 09:37:49 +02:00
Dion Moult
fe8220f9a7
Add support for editing ref latitude/longitude
2024-04-15 09:37:49 +02:00
Massimo Fabbro
cc9b178535
Small fix
2024-04-15 09:37:49 +02:00
Massimo Fabbro
8daa5bf5f7
Now it's possible to specify the digits number in a drawing. Fix #2993
2024-04-15 09:37:49 +02:00
Ryan Schultz
5c301da21e
Library - changed to correct class
2024-04-15 09:37:49 +02:00
Dion Moult
507f03640a
Fix #3003 .
2024-04-15 09:37:49 +02:00
Dion Moult
d2fbdfeada
Fix #2975 . Fix bug where imperial projects still created drawings with metric scales by default.
2024-04-15 09:37:49 +02:00
Dion Moult
2b81da2c50
See #2975 . Fix bug where custom scales were not loaded correctly.
2024-04-15 09:37:49 +02:00
Dion Moult
00a40024a9
Fix bug where changing object visibility didn't first check for view layer existence.
2024-04-15 09:37:49 +02:00
Ryan Schultz
187b4d9dc0
Fix #2989
2024-04-15 09:37:49 +02:00
Dion Moult
66c9fa6934
Fix #2980 . Minor cleanup to polish array panel UI.
2024-04-15 09:37:49 +02:00
Dion Moult
6dfe7dc31b
Fix #2988 . Imperial dimensions in viewport are now split between feet and inches.
2024-04-15 09:37:49 +02:00
Ryan Schultz
61b255b08f
Fix #2990
2024-04-15 09:37:49 +02:00
Andrej730
d2124e1c8b
Fixed bugs with furniture library toilets and basins #2976
...
Bug was introduced in cf6acd5 when `shape_builder.get_rectangle_coords` started returning coords in counter-clockwise order instead of clockwise.
2024-04-15 09:37:49 +02:00
Andrej730
f6a95e8c17
Dimension description in viewport/option to hide the measurements #2918
...
same thing for diameter annotations since they are just reusing dimension annotations
+ some refactor along the way
2024-04-15 09:37:49 +02:00
Dion Moult
d9726efee0
Fix #2986 . Reimplement Metadata property of EPset_Drawing to include arbitrary metadata as CSS classes.
2024-04-15 09:37:49 +02:00
Dion Moult
4f7454070c
Fix #2985 . Purge obsolete vector style feature.
2024-04-15 09:37:49 +02:00
Dion Moult
d753852042
Fix #2979 . Batch drawling unselected and selected cut lines.
2024-04-15 09:37:49 +02:00
Andrej730
fcdfa5dd23
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.
2024-04-15 09:37:49 +02:00
Dion Moult
01a4d64419
Fix #2980 . Array deletion now uses delete tool. Delete moved into tool so it can be used by other functions.
2024-04-15 09:37:49 +02:00
Dion Moult
c852678437
See #2978 . Fix crash upon drawing deletion.
2024-04-15 09:37:49 +02:00
Dion Moult
019c9d89e4
Fix #2955 . Drawings can now set a precision.
2024-04-15 09:37:49 +02:00
Dion Moult
718082e4df
Fix #2971 . Only update placement if object actually moved.
2024-04-15 09:37:49 +02:00
Dion Moult
e5c9f0e38f
Purge old code from timer-based type browser system
2024-04-15 09:37:49 +02:00
Thomas Krijnen
f2c25f430a
Fixes to validation of selected simple type / enum
2024-04-15 09:37:49 +02:00
Dion Moult
09a72b32e9
Minor fix
2024-04-15 09:37:49 +02:00
Dion Moult
cf640a971d
Fix #2968 . Deletions are no longer postponed. Should fix or reveal a lot of sync errors.
2024-04-15 09:37:48 +02:00
Dion Moult
c4c3fc1bfa
Fix bug where switching representations didn't update the material checksum, leading to unnecessary material syncs at export time.
2024-04-15 09:37:48 +02:00
Dion Moult
4c6565d4a4
Styles are applied per mesh data now (potentially dangerous). Fix crash when switching to representation which has styles from an unstyled mesh.
2024-04-15 09:37:48 +02:00
Dion Moult
e3979cadc7
Fix #2974 . Type property sets are now properly copied.
2024-04-15 09:37:48 +02:00
Dion Moult
7ba65857bd
New activate model operator to switch back to a MODEL_VIEW target view subcontext
2024-04-15 09:37:48 +02:00
Dion Moult
92a8bf27c8
Activating a drawing now automatically switches to the preferred target view representation of all elements
2024-04-15 09:37:48 +02:00
Dion Moult
9d006f4eb3
New "cut decorator" that draws cut lines in drawings.
2024-04-15 09:37:48 +02:00
Dion Moult
5f44435acb
Only activate drawing styles if underlay enabled, and default to default Blender styles to prevent confusion
2024-04-15 09:37:48 +02:00
Dion Moult
697d10620a
Regenerating fills now maintains the active representation
2024-04-15 09:37:48 +02:00
Dion Moult
5e91b77df0
Only allow drawing / sheet / schedule creation once the IFC is saved to enforce correct relative paths.
2024-04-15 09:37:48 +02:00
Andrej730
e78ab0db93
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
2024-04-15 09:37:48 +02:00
CyrilWaechter
8aa5830741
Fix #2964
2024-04-15 09:37:48 +02:00
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
Bruno Perdigão
5074a0bf8d
ifc array modifier: adds the option to get the dimensions from the 3d cursor
2024-04-15 09:25:50 +02:00
Bruno Perdigão
792f1fcefd
ifc array modifier: bugfix, prevent divider from being zero.
2024-04-15 09:25:50 +02:00
Bruno Perdigão
0627d90486
ifc array modifier: adds the option to choose between "total" and "increment" as dimension input
2024-04-15 09:25:49 +02:00
Gorgious56
91d7229353
You can now change the section line decorator width in the UI
2024-04-15 09:25:49 +02:00
Gorgious56
d717fe040d
Add new shader to display the section as a thick line on the mesh
2024-04-15 09:25:49 +02:00
Gorgious56
6b67532228
Add new decorator utility to the Compare node group
2024-04-15 09:25:49 +02:00
Andrej730
87f5e7f852
Title case naming for operators
2024-04-15 09:25:49 +02:00
Andrej730
8731cf7fcf
Open all drawings at once with shift+click (similar to print all)
...
Also added filepath check to make sure all drawings were printed first.
2024-04-15 09:25:49 +02:00
Andrej730
397617550e
Title case naming for operators
2024-04-15 09:25:49 +02:00
Dion Moult
32f21c8ea0
Fix #2936 . Unassigning a type now also unmaps representations.
2024-04-15 09:25:49 +02:00
Andrej730
d86a1cedc1
Sync viewport visibility based on EPset_Drawing/Include Exclude #2613
...
It's not real time, it's triggered on using "Activate view" button in "Drawings" section.
2024-04-15 09:25:49 +02:00
Gorgious56
d76775c616
Fix temporary section cutaway socket inputs/outputs not initializing properly
...
Related to #2547
2024-04-15 09:25:49 +02:00
Dion Moult
9e33d9bfad
Fix #2938 . Unlinked objects should no longer synchronise edits after they've changed.
2024-04-15 09:25:49 +02:00
Dion Moult
9b3625717f
See #2938 . Fix issue where unlinking didn't consider other users of the object's data or material.
2024-04-15 09:25:49 +02:00
Andrej730
57c9efba97
Support for SECTION_LEVEL annotations description in viewport
...
Example - https://i.imgur.com/ATF9Fp6.png
(similar to svg)
2024-04-15 09:25:49 +02:00
Andrej730
4540dcc006
Small fix
2024-04-15 09:25:49 +02:00
Andrej730
232e415c87
Background for Ifc Text annotations in SVG
...
Added option to fill background of Ifc Text annotation with white color.
To make it work need to add "fill-bg" class to EPset_Annotation - https://i.imgur.com/ig2EhkQ.png .
Result - https://i.imgur.com/mq4hzAM.png
2024-04-15 09:25:49 +02:00
Andrej730
d9562c66a4
Small editing assigned product UI fix
...
Previously checkmark didn't worked at all if the existing and new product were the same.
2024-04-15 09:25:49 +02:00
Andrej730
6043d35821
Sliding doors - more consistent 2d repr between door types #2919
2024-04-15 09:25:49 +02:00
Andrej730
5d4ecb7177
Sliding doors - moved annotation arrow to Annotation/PLAN_VIEW #2919
2024-04-15 09:25:49 +02:00
Dion Moult
b44cd7e153
Fix #2114 . Duplicate overrides are now defined as macros which means that repeating last function now works.
2024-04-15 09:25:49 +02:00
Andrej730
7f058ab8bf
removed redundant parts from generate_steel_profiles_library.py
...
removed never used methods and contexts
2024-04-15 09:25:49 +02:00
Dion Moult
12f60084f4
Fix #2898 . Explicitly check for changed active material in material UI panels.
2024-04-15 09:25:49 +02:00
Andrej730
7233840434
Fixed ifc validation errors for generated openings #2925
...
Now ELEVATION_VIEW 3d curves converted to 2d to be extruded later on to create opening representation.
2024-04-15 09:25:49 +02:00
Dion Moult
6ad091b0be
Deprecate mode subscriptiosn of profiles and walls
2024-04-15 09:25:49 +02:00
Dion Moult
dff33632ae
See #2881 . Allow indices in the selector instead of relying on external evaluations.
2024-04-15 09:25:49 +02:00
Dion Moult
e76487ca90
See #2916 . Minor fix.
2024-04-15 09:25:49 +02:00
Andrej730
a2df9dcadd
Revert "Fixed ifc validation errors for generated openings #2925 "
...
This reverts commit 66a53b486a .
2024-04-15 09:25:49 +02:00
Gorgious56
1503a13f6c
Interface now displays a hint when trying to edit a non-mesh-like object
...
& Fix case where the active object would go into edit mode even if not mesh-like when multiple objects were selected
2024-04-15 09:25:49 +02:00
Andrej730
7842877ba0
Fixed ifc validation errors for generated openings #2925
2024-04-15 09:25:49 +02:00
Andrej730
be75ef2596
Fixed ifc validation errors for furniture library #2925
...
Fixed bunch of validation errors with furniture library:
- IfcSpaceType PredefinedType wasn't optional
`<attribute PredefinedType: <enumeration IfcSpaceTypeEnum: (EXTERNAL, GFA, INTERNAL, NOTDEFINED, PARKING, SPACE, USERDEFINED)>> Not optional`
- some object had 0.0 depth extrusion
```
Rule IfcPositiveLengthMeasure_WR1:
(self > 0.)
Violated by:
(0.0 > 0.0)
```
- some orphan representations violating:
```
Rule IfcShapeModel_WR11:
((sizeof(self.OfProductRepresentation) == 1) ^ (sizeof(self.RepresentationMap) == 1) ^ (sizeof(ofshapeaspect) == 1))
Violated by:
((0 == 1 ^ 0 == 1) ^ 0 == 1)
+ where 0 = sizeof(())
+ where () = #9091=IfcShapeRepresentation(#15,'Body','SweptSolid',(#9090 )).OfProductRepresentation
+ and 0 = sizeof(())
+ where () = #9091=IfcShapeRepresentation(#15,'Body','SweptSolid',(#9090 )).RepresentationMap
+ and 0 = sizeof(())
```
2024-04-15 09:25:48 +02:00
Andrej730
ec882a1a7d
Fixed validation error for ELEVATION_VIEW curves #2925
...
Error occured because ShapeBuilder was assigning "Curve2D" representation type for elevation view curves when the correct type is "Curve3D".
It use to occur for both doors and windows created with ifc modifier.
```
Validation error text:
2023-04-03:18:21:28,879 ERROR [rule_executor.py:154] On instance:
#135=IfcShapeRepresentation(#21,'Profile','Curve2D',(#134 ))
Rule IfcShapeRepresentation_CorrectItemsForType:
(IfcShapeRepresentationTypes(self.RepresentationType,self.Items))
Violated by:
False
+ where False = IfcShapeRepresentationTypes('Curve2D', (#134=IfcIndexedPolyCurve(#133,(IfcLineIndex((1,2)),IfcLineIndex((2,3)),IfcLineIndex((3,4)),IfcLineIndex((4,1))),$),))
+ where 'Curve2D' = #135=IfcShapeRepresentation(#21,'Profile','Curve2D',(#134 )).RepresentationType
+ and (#134=IfcIndexedPolyCurve(#133,(IfcLineIndex((1,2)),IfcLineIndex((2,3)),IfcLineIndex((3,4)),IfcLineIndex((4,1))),$),) = #135=IfcShapeRepresentation(#21,'Profile','Curve2D',(#134 )).Items
```
2024-04-15 09:25:48 +02:00
Andrej730
75d3da9908
Fixed all unit.add_si_unit uses after fd87747
...
Now they were causing `TypeError: Usecase.__init__() got an unexpected keyword argument 'name'`
2024-04-15 09:25:48 +02:00
Andrej730
3095521e36
Fixed some validation errors for doors and windows #2925
...
Fixed the ones caused by using 3d curves as inner/outer curves in profiles.
2024-04-15 09:25:48 +02:00
Andrej730
4dcb9116e0
Fixed issue with tool.Blender.apply_bmesh
2024-04-15 09:25:48 +02:00
Dion Moult
b18503d1e6
FixRevitTINs patch recipe now also purges non up-facing polygons as Revit doesn't handle them very well.
2024-04-15 09:25:48 +02:00
Dion Moult
dd5e069729
Fix #2930 . Do not require entity applicability in IfcTester.
2024-04-15 09:25:48 +02:00
Dion Moult
79479901f6
Fix #2910 . Bug where style colours were not synced prior to duplication.
2024-04-15 09:25:48 +02:00
Chun
4bdf5475a9
a simplifier workflow and a more consistent coding style
2024-04-15 09:25:48 +02:00
Chun
ab17b85854
Unify variable
2024-04-15 09:25:48 +02:00
Chun
f859f11add
Update functions of get_connected_to and get_connected_from compatible with IFC4 and IFC2X3
2024-04-15 09:25:48 +02:00
Chun
765b4a73d3
Add IFC4 support for functions get_connected_to and get_connected_from in util.system
2024-04-15 09:25:48 +02:00
Chun
9d70b9303b
Add IFC4 support to get_connected_to and get_connected_from functions
2024-04-15 09:25:48 +02:00
Dion Moult
a92c0d59d0
Fix #2928 .
2024-04-15 09:25:48 +02:00
Dion Moult
4bd9515bf5
Fix #2924 . IfcElements default to a null predefined type so they can inherit where possible.
2024-04-15 09:25:48 +02:00
Dion Moult
109df898e6
Fix #2926 . Connections removed when rotating 90 deg to prevent unintuitive behaviour. Layer2 are also now recalculated.
2024-04-15 09:25:48 +02:00
Dion Moult
e6468f280e
Link to IfcArchitect tutorial series for quickstart video tutorials
2024-04-15 09:25:48 +02:00
Dion Moult
ea5069a991
See #2881 . Add support for evaluated commands in smart text literals
2024-04-15 09:25:48 +02:00
Dion Moult
40fb960101
Fix #2927 . Continuing to make mesh editing stricter.
2024-04-15 09:25:48 +02:00
Dion Moult
65d2e51742
Shortlist which IFC geometries may be treated as a meshlike object.
2024-04-15 09:25:48 +02:00
Dion Moult
4b8152776d
Minor fix
2024-04-15 09:25:48 +02:00
Massimo Fabbro
3f2adc1e13
fix qto ui bug where objects with no assigned base qto doesn't allow to show the qto panel
2024-04-15 09:25:48 +02:00
Dion Moult
86ed354a05
Fix #2922 . You can now edit extrusion profiles of swept solids.
2024-04-15 09:25:48 +02:00
Dion Moult
2f3c5a7c75
Disable edit mode on non mesh-like representations as well to prevent risk of invalid geometry.
2024-04-15 09:25:48 +02:00
Dion Moult
6b4955344d
Fix bug where generated openings invalidly used 3 dimensions instead of 2
2024-04-15 09:25:48 +02:00
Andrej730
e0f1ec3317
Fixed bug in tool.Blender.get_bmesh_for_mesh
...
It caused errors because it was expecting mesh object to be selected - when it's not necessary that active_object is the one that mesh belongs to and sometimes no objects can be selected at all.
2024-04-15 09:25:48 +02:00
Andrej730
31e5090a5d
Fixed error with switching from EDIT mode for annotation meshes
...
Error occured when you were editing annotation mesh and tried to switched from EDIT mode
Error: Python: Traceback (most recent call last):
File "\blenderbim\bim\module\geometry\operator.py", line 838, in invoke
elif element.HasOpenings:
File "\blenderbim\libs\site\packages\ifcopenshell\entity_instance.py", line 153, in __getattr__
raise AttributeError(
AttributeError: entity instance of type 'IFC4.IfcAnnotation' has no attribute 'HasOpenings'
2024-04-15 09:25:48 +02:00
Andrej730
45536111b7
Revert part of 3a3d96be0 #2897
...
Reverted part of the bgl to gpu transition (to not scare away people with annotations without antialiasing🙂 ) until I work out the complete solution.
2024-04-15 09:25:48 +02:00
Andrej730
95848561c1
Fixed another typo related to #2889...
2024-04-15 09:25:48 +02:00
Andrej730
6ec4fc7914
Fixed crash in Blender 3.5 on creating fill area annotation
...
Crash was caused by some change in Blender Python API in 3.5.
The code below resulted in `ValueError: bpy_struct: item.attr = val: MeshPolygon.vertices: array length cannot be changed to 4 (expected 0)`
```
obj.data.polygons.add(1)
p1 = obj.data.polygons[-1]
p1.vertices = (v1.index, v2.index, v3.index, v4.index)
```
2024-04-15 09:25:48 +02:00
Andrej730
65055a9dd0
bgl to gpu: profiles and openings decorations #2897
...
Still need to fix shaders.py and decoration.py
2024-04-15 09:25:48 +02:00
Andrej730
db55cfc4ee
Added description to some annotation operators
2024-04-15 09:25:48 +02:00
Andrej730
d4a8de95c5
Automatically adjusted STAIR_ARROWs now stop at the top thread
...
Previously they were ending at the end of the stair object and problem was that the end of the object could be at the slab underneath the stair.
Example - https://i.imgur.com/Y43v0GM.png
Before - https://i.imgur.com/Ze9DoK2.png
2024-04-15 09:25:48 +02:00
Andrej730
c807ea26e6
STAIR_ARROW annotations attached to IfcStairFlight object now readjusted after changes in IFC Stair modifier
...
Later probably will also need some other way to readjust annotations - so they can be readjusted for custom stairs, not created with modifier.
2024-04-15 09:25:48 +02:00
Andrej730
1ff6f691ac
Clever STAIR_ARROW annotation
...
Now adding STAIR_ARROW annotation is a bit more clever - if you have IfcStairFlight selected when adding this type of annotation it will automatically:
1) define stair as it's parent;
2) add the stair as it's product;
3) place itself along the stair (it's assumed that stair direction is X+)
Example - https://i.imgur.com/Ze9DoK2.png
2024-04-15 09:25:47 +02:00
Andrej730
01a62bacd2
Fixed bug causing errors in IFC4X3 projects
...
It was causing an error below on opening BIM Tool and probably in some other places.
```
Traceback (most recent call last):
File "C:\software\Steam\steamapps\common\Blender\3.5\scripts\startup\bl_ui\space_view3d.py", line 35, in draw
self.draw_tool_settings(context)
File "C:\software\Steam\steamapps\common\Blender\3.5\scripts\startup\bl_ui\space_view3d.py", line 48, in draw_tool_settings
tool = ToolSelectPanelHelper.draw_active_tool_header(
File "C:\software\Steam\steamapps\common\Blender\3.5\scripts\startup\bl_ui\space_toolsystem_common.py", line 809, in draw_active_tool_header
draw_settings(context, layout, tool)
File "\Blender\3.5\scripts\addons\blenderbim\bim\module\model\workspace.py", line 67, in draw_settings
BimToolUI.draw(context, layout)
File "\Blender\3.5\scripts\addons\blenderbim\bim\module\model\workspace.py", line 89, in draw
AuthoringData.load()
File "\Blender\3.5\scripts\addons\blenderbim\bim\module\model\data.py", line 52, in load
cls.load_ifc_classes()
File "\Blender\3.5\scripts\addons\blenderbim\bim\module\model\data.py", line 109, in load_ifc_classes
cls.data["ifc_classes"] = cls.ifc_classes()
File "\Blender\3.5\scripts\addons\blenderbim\bim\module\model\data.py", line 196, in ifc_classes
+ tool.Ifc.get().by_type("IfcDoorStyle")
File "\Blender\3.5\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\file.py", line 364, in by_type
return [entity_instance(e, self) for e in self.wrapped_data.by_type(type)]
File "\Blender\3.5\scripts\addons\blenderbim\libs\site\packages\ifcopenshell\ifcopenshell_wrapper.py", line 4499, in by_type
return _ifcopenshell_wrapper.file_by_type(self, *args)
RuntimeError: Entity with name 'IfcDoorStyle' not found in schema 'IFC4X3'
Traceback (most recent call last):
File "C:\software\Steam\steamapps\common\Blender\3.5\scripts\startup\bl_ui\space_view3d.py", line 35, in draw
self.draw_tool_settings(context)
File "C:\software\Steam\steamapps\common\Blender\3.5\scripts\startup\bl_ui\space_view3d.py", line 48, in draw_tool_settings
tool = ToolSelectPanelHelper.draw_active_tool_header(
File "C:\software\Steam\steamapps\common\Blender\3.5\scripts\startup\bl_ui\space_toolsystem_common.py", line 809, in draw_active_tool_header
draw_settings(context, layout, tool)
File "\Blender\3.5\scripts\addons\blenderbim\bim\module\model\workspace.py", line 67, in draw_settings
BimToolUI.draw(context, layout)
File "\Blender\3.5\scripts\addons\blenderbim\bim\module\model\workspace.py", line 92, in draw
cls.draw_header_interface()
File "\Blender\3.5\scripts\addons\blenderbim\bim\module\model\workspace.py", line 351, in draw_header_interface
cls.draw_type_selection_interface()
File "\Blender\3.5\scripts\addons\blenderbim\bim\module\model\workspace.py", line 367, in draw_type_selection_interface
if AuthoringData.data["ifc_classes"]:
KeyError: 'ifc_classes'
```
2024-04-15 09:25:47 +02:00
Andrej730
e5427583ad
Fixed typo in ifcopenshell.util.type
2024-04-15 09:25:47 +02:00
Andrej730
3429972067
Added arrow to 2d repr of sliding doors ( #2919 )
...
Example - https://i.imgur.com/eJnhDXU.png
2024-04-15 09:25:47 +02:00
Dion Moult
4e1dca6934
Load all type products by default (in preparation for IfcAnnotationType support)
2024-04-15 09:25:47 +02:00
Andrej730
7f1bb71c66
IFC Door Modifier - sliding doors
...
Added support for sliding doors in IFC Door Modifier.
The main differences are 2d representation (https://i.imgur.com/VyEH569.png ) and the door panel being placed before the lining, not after
2024-04-15 09:25:22 +02:00
Thomas Krijnen
969b7382b6
Replace unpacking with boost::tie() for compatibility with msvc17 build machine
2024-04-15 08:55:37 +02:00
Thomas Krijnen
44deaedccc
Incorporate profile in FixedRefSolid, some attempt at DirectrixDerived
2024-04-12 10:24:24 +02:00
Thomas Krijnen
7b296629d6
Doing a transpose was most likely misguided
2024-04-12 10:23:27 +02:00
Richard Brice
420eed1828
Adds new simplified alignment example that makes us of the alignment helper functions
2024-04-11 11:26:42 -07:00
Richard Brice
e30fd6096a
Adds framework for alignment helper functions.
...
Function include building a simple highway alignment and mapping of sementic segment definitions to geometric definitions (this part is still a work in progress)
2024-04-11 11:26:42 -07:00
Thomas Krijnen
85887b6db0
Clone profile for immutability in IfcDerivedProfileDef
2024-04-11 20:15:55 +02:00
Thomas Krijnen
9e2645d4cf
Respect face matrix in IfcSectionedSolidHorizontal
2024-04-11 20:15:55 +02:00
Thomas Krijnen
c535c000a6
Wrong axis typo causing singular matrices
2024-04-11 20:15:55 +02:00
Richard Brice
a1d8aaf999
Fixes problems with Helmert curves
2024-04-11 11:13:02 -07:00
Richard Brice
4807e5b432
Fixes curve segment placement issues
2024-04-10 15:15:11 -07:00
Richard Brice
a34da81ac5
Fixes tilt slope for cant
2024-04-10 14:09:46 -07:00
Thomas Krijnen
7589e0bd40
Implement product matric access in Python wrapper
2024-04-10 21:22:13 +02:00
Richard Brice
6d5a9f8716
Fixes anon namespace that was causing problems with linking
2024-04-10 11:48:26 -07:00
Richard Brice
fda4c674d9
Fixes more problems with mapping IfcCurveSegment
2024-04-09 16:46:43 -07:00
Richard Brice
a94d1e53b7
Fixes some problems with mapping IfcCurveSegment
2024-04-06 19:02:18 -07:00
Richard Brice
98ec4220eb
Adds method to piecewise_function to evaluate over a range.
2024-04-06 10:40:22 -07:00
Thomas Krijnen
f0dbef88c1
Respect ReorientShells setting in shell.cpp
2024-04-05 15:37:10 +02:00
Thomas Krijnen
59fbf2bbde
#4501 warning message
2024-04-03 11:43:06 +02:00
Thomas Krijnen
209d6c1e70
SectionedSolidHorizontal: sort sections, bounds check
2024-03-29 15:53:34 +01:00
Richard Brice
83a127b570
Implements IfcSegmentReferenceCurve and cant
2024-03-28 15:04:17 -07:00
Richard Brice
960a59da84
Fixes IfcAxis2PlacementLinear per https://github.com/buildingSMART/IFC4.3.x-development/issues/732#issuecomment-1812127613
2024-03-27 16:24:58 -07:00
Thomas Krijnen
4b32381192
Don't fail on product without placement
2024-03-21 09:44:40 +01:00
Thomas Krijnen
0d3c73de82
Fix compilation for 4x2
2024-03-15 20:13:16 +01:00
Thomas Krijnen
3babe852de
Don't use BRepFill, but rather triangulate. Implement IfcSectionedSolidHorizontal
2024-03-15 17:32:05 +01:00
Thomas Krijnen
bf1d2befd8
Address compiler warnings
2024-03-14 11:10:19 +01:00
Thomas Krijnen
ca0488892c
Add eigen constructur to point3 and direction3
2024-03-14 11:04:44 +01:00
Thomas Krijnen
eed0b55f01
Move version definition below header include
2024-03-14 10:26:51 +01:00
Thomas Krijnen
b1f5f7d628
Update ci-py-only.yml
2024-03-13 14:09:29 +01:00
Thomas Krijnen
978a8f474d
Update ci.yml
2024-03-13 14:09:07 +01:00
Thomas Krijnen
c8a9d5b743
Address comment by @RickBrice
2024-03-13 13:18:12 +01:00
Thomas Krijnen
3b08f644ed
Uncomment type assertion and comment out writing to stdout
2024-03-13 13:18:12 +01:00
Thomas Krijnen
d06280f0e7
First rough draft of alignment-based IfcFixedReferenceSweptAreaSolid
2024-03-13 13:18:12 +01:00
Richard Brice
ebe6015561
Fixes vertical clothoid, vertical circle, and horizontal cubic cases for alignment
2024-03-06 12:00:35 -08:00
Dirk Olbrich
28c7da2336
examples: fix missing includes
2024-03-06 09:25:02 +01:00
Dirk Olbrich
eb50be5c52
ifcparse: fix missing include and const
2024-03-06 09:25:02 +01:00
Dirk Olbrich
47a2971c65
ifcparse: fix clang-tidy warning readability-identifier-length
2024-03-06 09:25:02 +01:00
Dirk Olbrich
eea9a14722
ifcparse: unify private member variables name to use trailing underscore
2024-03-06 09:25:02 +01:00
Dirk Olbrich
8b145248c6
ifcparse: fix clang-tidy warning readability-qualified-auto
2024-03-06 09:25:02 +01:00
Dirk Olbrich
c29e7b32ad
ifcparse: fix clang-tidy warning readability-implicit-bool-conversion
2024-03-06 09:25:02 +01:00
Dirk Olbrich
95b5926353
ifcgeom, serializer: fix missing includes
2024-03-06 09:25:02 +01:00
Dirk Olbrich
9f40674d91
ifcparse: fix clang-tidy warning readability-else-after-return
2024-03-06 09:25:02 +01:00
Dirk Olbrich
b264408d85
ifcparse: fix clang-tidy warnung unused-includes
2024-03-06 09:25:02 +01:00
Richard Brice
fcfeac95bf
WIP getting alignment geometry to match unit test from bSI Rail Room
2024-03-01 10:55:20 -08:00
Richard Brice
77b56b6826
Fixes typo in IfcPointByDistanceExpression
2024-02-28 18:38:41 -08:00
Richard Brice
0baf3dac52
Adds support for IfcCosineSpiral, IfcSineSpiral, and updates implementation to match results from bSI Railway Room test cases.
2024-02-26 16:34:41 -08:00
Thomas Krijnen
a60e272eee
build_halfspace_tree_is_decomposed() for polies already tagged as convex
2024-02-18 12:06:02 +01:00
Thomas Krijnen
8af6903505
Convex tag on cgal shape
2024-02-18 12:06:02 +01:00
Thomas Krijnen
d04357933b
Release GIL in some cases
2024-02-18 12:06:02 +01:00
Thomas Krijnen
c72f97225f
Clear current product after finalization
2024-02-18 12:06:02 +01:00
Thomas Krijnen
b76dad682a
item_id()
2024-02-18 12:06:02 +01:00
Thomas Krijnen
0d9a40f88c
Submodule
2024-02-18 12:06:02 +01:00
Thomas Krijnen
4418397d2c
fixes to cityjson invocation
2024-02-18 12:06:02 +01:00
Thomas Krijnen
49e8f8bdca
settings, data model changes (no longer graph on both orientations of plane eq, group equations per product), multiple files, convex ifc definition test, reuse convex decomps for instanced geom, fix remove narrow, option to store eq mapping, multi-threading, command line options
2024-02-18 12:06:02 +01:00
Thomas Krijnen
ec5bfd6a68
cgal threads, city json executable
2024-02-18 12:06:02 +01:00
Richard Brice
bb88ba5bdf
Updates implementation of IfcXXXPolynomialSpiral curves as parent curve
2024-02-16 13:54:26 -08:00
Thomas Krijnen
bb8769aff8
Add WITH_RELATIONSHIP_VALIDATION defaulting to OFF
2024-01-30 09:15:35 +01:00
Thomas Krijnen
d7d89a6084
Merge branch 'v0.8.0' of https://github.com/IfcOpenShell/IfcOpenShell into v0.8.0
2024-01-30 09:04:13 +01:00
Thomas Krijnen
c9f320f062
Debug options, eliminate narrow slices prior to snapping, consider triangle areas in box substitution
2024-01-20 13:26:54 +01:00
Richard Brice
abddb74bd9
Adds placeholder implementations for IfcXXXOrderPolynomialSpiral - there are some bugs, but the basic implementation framework is good.
2024-01-17 12:59:48 -08:00
Richard Brice
f2f0000616
Minor tweaks to IfcAlignment example
2024-01-16 15:33:25 -08:00
Richard Brice
f12c3aae09
Adds caching of loop upgraded to pwf to loop class
2024-01-15 15:52:26 -08:00
Richard Brice
a8b88b8ae1
Adds loop_to_piecewise_function_upgrade
...
This provides for a more uniform treatment of curves when mapping IfcOffsetCurveByDistances and IfcPointByDistanceExpression
2024-01-11 15:37:44 -08:00
Richard Brice
5815417198
Fixes documentation in comment
2024-01-11 15:36:17 -08:00
Thomas Krijnen
142b15e332
CgalShape: Triangulate before calculating area/volume
2023-12-28 19:08:08 +00:00
Thomas Krijnen
706b92d4e0
Exterior shell extractor implemented in Python
2023-12-21 21:19:43 +01:00
Richard Brice
f493343558
Adds geometric representations for CT 4.1.7.1.1.4 Alignment Geometry - Segments to the IfcAlignment example
2023-12-20 14:53:20 -08:00
krande
d5da636b00
suggested change of ifcwrap pythoninterpreter function to no longer rely on distutil (which is deprecated in python 3.12).
2023-12-20 12:05:47 -08:00
Thomas Krijnen
4dcc1b5718
4x3_add2 py wrapper
2023-12-19 12:40:38 +01:00
Thomas Krijnen
9fddb564b1
OpaqueCoordinate rule of 3
2023-12-19 12:40:16 +01:00
Thomas Krijnen
89fd887d9a
Remove virtual kind() call out of compile-time loop
2023-12-19 12:38:51 +01:00
Thomas Krijnen
ca4781f559
Return value
2023-12-18 19:22:29 +00:00
Thomas Krijnen
ef929f9d30
Const ptr references and address some warnings
2023-12-18 13:51:12 +00:00
Thomas Krijnen
aa5b8ce30a
Update build-all.py
2023-12-17 13:24:17 +01:00
Thomas Krijnen
c4326e557c
Remove const
2023-12-15 14:31:40 +01:00
Thomas Krijnen
0cf5d1c968
#4084 debug iterator failure
2023-12-15 14:03:08 +01:00
Thomas Krijnen
796c1d6210
Comment out obsolete code
2023-12-15 13:41:51 +01:00
Thomas Krijnen
c2492c8655
--circle-segments conversion setting instead of hardcoded number in cgal kernel
2023-12-15 13:41:37 +01:00
Richard Brice
2a3416b01a
Merge pull request #4117 from RickBrice/v0.8.0
...
Addresses alignment geometry issues
2023-12-14 08:27:45 -08:00
Richard Brice
662a4bb6e9
Fixes generated geometry based on evolving understanding of IFC
2023-12-13 16:17:10 -08:00
Richard Brice
3ff8c5c292
Fixes IfcAlignment example
2023-12-13 16:17:10 -08:00
Richard Brice
c33f68fb99
Adds check for placement relative to self
2023-12-13 16:17:10 -08:00
Richard Brice
7fef3efbeb
Fixes horizontal alignment issues
2023-12-13 16:17:10 -08:00
Thomas Krijnen
6ed91d3ea4
to_string() option, no shared_ptr in OpaqueCoord, add ConvResShape::vertices(), newell instead of simple cross product, create_epeck(double/str)
2023-12-13 16:43:33 +01:00
Thomas Krijnen
14e924cd8c
typename
2023-12-11 21:33:08 +01:00
Thomas Krijnen
1e83e5b018
Python wrapper improvements
2023-12-11 21:06:25 +01:00
Thomas Krijnen
9c82b752b6
Fix OBJ writer from Nef
2023-12-11 21:05:58 +01:00
Thomas Krijnen
e74f160a48
Use predefined templates
2023-12-11 21:05:39 +01:00
Thomas Krijnen
17bf6691c6
Use custom poly converter
2023-12-11 21:04:54 +01:00
Thomas Krijnen
137a6b5706
map(vector<opaque_4>) prototype
2023-12-11 21:03:55 +01:00
Thomas Krijnen
df0e64a68a
Commit debugging trick comment analogous to occt kernel
2023-12-11 21:00:54 +01:00
Thomas Krijnen
c7a2abdf2d
CgalKernel halfspace handling: orientation is on face not plane
2023-12-11 21:00:32 +01:00
Thomas Krijnen
a62aefa7ff
Disable automatic density substitution in cgal kernel
2023-12-11 21:00:04 +01:00
Thomas Krijnen
e946b6c540
Test for self-intersection before converting to nef
2023-12-11 20:59:04 +01:00
Thomas Krijnen
cac2b77659
Implement num_faces
2023-12-11 20:57:58 +01:00
Thomas Krijnen
5c4cc81f6f
So much for using a typesafe language
2023-12-11 13:29:20 +01:00
Richard Brice
3f1c01e363
Merge pull request #4097 from RickBrice/v0.8.0
...
Small tweaks to the IfcAlignment example
2023-12-08 13:16:09 -08:00
Richard Brice
13985eb49d
Small tweaks to the IfcAlignment example
2023-12-08 13:15:29 -08:00
Richard Brice
5207c3d7c5
Merge pull request #4091 from RickBrice/v0.8.0
...
Updates representation context in IfcAlignment example so it passes bSI validation service tests
2023-12-07 15:38:49 -08:00
Richard Brice
7893b217ad
Updates representation context in IfcAlignment example so it passes the bSI validation service checks
2023-12-07 15:31:33 -08:00
Richard Brice
e0b445de0b
Merge pull request #4088 from RickBrice/v0.8.0
...
Updates representations in IfcAlignment example
2023-12-07 09:48:22 -08:00
Richard Brice
92f80646cd
Merge branch 'IfcOpenShell:v0.8.0' into v0.8.0
2023-12-07 09:47:29 -08:00
Richard Brice
84a8c370c1
Updates representations in IfcAlignment example
2023-12-07 09:46:23 -08:00
Richard Brice
4b933812a7
Generalized calculation of spiral curve tangent vector
2023-12-07 08:01:31 -08:00
Richard Brice
71cca03e1d
Merge pull request #4083 from RickBrice/v0.8.0
...
PR fixes bug computing IfcAxis2PlacementLinear.Axis for IfcSegmentReferenceCurve as basis curve
2023-12-06 15:43:45 -08:00
Richard Brice
c562a52011
Merge branch 'v0.8.0' of https://github.com/RickBrice/IfcOpenShell into v0.8.0
2023-12-06 15:32:13 -08:00
Richard Brice
9e32c0ea93
Fixes problem computing Axis vector for cant
2023-12-06 15:31:01 -08:00
Thomas Krijnen
f687e610b9
Workaround to create epeck number from python
2023-12-05 21:15:06 +01:00
Thomas Krijnen
c1cb16f5f6
Implement a bunch of shape analysis routines
2023-12-05 21:14:43 +01:00
Thomas Krijnen
059c9fb7d5
remove_degenerate_faces() in order to prevent division by zero
2023-12-05 21:13:43 +01:00
Thomas Krijnen
0b4718b3b5
Report tasks on actual mapped products
2023-12-05 21:12:09 +01:00
Thomas Krijnen
4cd327f711
Don't mutate conversion result placement. Breaks combination of world coords + optimized model.
2023-12-05 21:11:36 +01:00
Thomas Krijnen
c595adfb7b
Use world coords on OBJ/STP/IGS serializers as before
2023-12-05 21:10:42 +01:00
Richard Brice
07d0a21393
Merge pull request #4023 from RickBrice/v0.8.0
...
v0.8.0 Alignment Geometry - Bug fixes and more work in progress
2023-12-01 09:12:13 -08:00
Richard Brice
6c808c097e
Merge branch 'IfcOpenShell:v0.8.0' into v0.8.0
2023-12-01 07:22:29 -08:00
Thomas Krijnen
4166384ab3
Enable setting ITERATOR_OUTPUT from python
2023-11-28 12:59:32 +01:00
Richard Brice
2126381a15
Adds conversion settings to control the granularity of points computed for a piecewise_function
2023-11-22 15:49:24 -08:00
Richard Brice
39c3cac05d
Fixes bugs in segment reference curve geometry
2023-11-22 08:32:59 -08:00
Richard Brice
5f7e89a5f8
Implements IfcOffsetCurveByDistance mapping
2023-11-21 08:54:06 -08:00
Richard Brice
49d9245e29
Fixes problem computing tangent and normal vectors for Circle
2023-11-21 08:49:16 -08:00
Thomas Krijnen
87f39b3826
Temporarily log evaluated points
2023-11-21 14:42:59 +01:00
Thomas Krijnen
b52c5ab082
Don't emit empty results for representation and allow implicit items to
...
pass when using --plan
2023-11-21 14:41:31 +01:00
Richard Brice
49b3805859
Updates treatment of IfcLine to account for the fact that IfcLine.Orientation.DirectionRatios are generally normalized.
2023-11-20 11:15:35 -08:00
Rick Brice
265f45a814
Adds example program for alignments
2023-11-17 11:27:49 -08:00
Richard Brice
afb8375e70
Fixes problem with vertical curve slopes
2023-11-17 08:03:03 -08:00
Richard Brice
162db2e588
Merge branch 'IfcOpenShell:v0.8.0' into v0.8.0
2023-11-16 17:20:42 -07:00
Richard Brice
f4ba3fe487
Still trying to figure out cant
2023-11-16 16:17:41 -08:00
Thomas Krijnen
dc6eb8611a
More robust conversion to nef in CgalShape
2023-11-16 09:15:19 +01:00
Richard Brice
f204135aa6
Fixing bugs
2023-11-15 07:21:19 -08:00
Thomas Krijnen
5af975f99e
Backwards compatibility for py setting strings
2023-11-15 13:42:55 +01:00
Thomas Krijnen
d5fbc72537
if constexpr instead of disallowed member specialization
2023-11-15 12:33:26 +01:00
Thomas Krijnen
c2b527b832
Copy pasta error
2023-11-15 11:49:44 +01:00
Thomas Krijnen
9e73e96d31
More missing typenames
2023-11-15 11:33:00 +01:00
Thomas Krijnen
f2b800c30c
Add missing typename
2023-11-15 11:30:06 +01:00
Thomas Krijnen
3ef4e8152f
Commit suggestions in #3992 Thanks @RickBrice
2023-11-15 11:05:06 +01:00
Thomas Krijnen
2545f334a3
Submodule
2023-11-15 11:04:05 +01:00
Thomas Krijnen
65e874c67f
Drastic settings refactoring
2023-11-15 10:32:33 +01:00
Thomas Krijnen
d2a2e0d7a0
ENABLE_EXTENDED_ALIGNED_STORAGE for msvc
2023-11-15 10:32:33 +01:00
Richard Brice
73abb25fc3
Merge pull request #3988 from RickBrice/v0.8.0
...
Fixes a build issue with IfcCurveSegmet
2023-11-09 10:49:59 -07:00
Richard Brice
a80a126fd8
Merge branch 'IfcOpenShell:v0.8.0' into v0.8.0
2023-11-09 10:48:45 -07:00
Richard Brice
8303a04b4f
A couple tweaks for IfcCurveSegment
2023-11-09 09:48:05 -08:00
Richard Brice
e07281d72c
Merge pull request #3987 from RickBrice/v0.8.0
...
Fixes build issue with mapping
2023-11-09 10:44:45 -07:00
Richard Brice
12e69ff07a
Fixes build issue with mapping
2023-11-09 09:43:36 -08:00
Richard Brice
43a9c050eb
Merge pull request #3982 from RickBrice/v0.8.0
...
Implements IfcSegmentedReferenceCurve and first cut at cant geometry
2023-11-09 03:28:18 -07:00
Richard Brice
8409859e8d
Implements safer way to use IfcCurveSegment.UsingCurves
...
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2023-11-09 03:23:13 -07:00
Richard Brice
7ed85358f9
Implements IfcSegmentedReferenceCurve and first cut at cant geometry
2023-11-08 19:43:21 -08:00
Thomas Krijnen
809668c015
Major update to halfspace algorithm, conversion result shape analysis
2023-11-02 09:04:34 +01:00
Thomas Krijnen
559de7d4cd
Merge pull request #3945 from RickBrice/v0.8.0
...
Implements framework for adjusting geometry based on start location next segment
2023-11-01 22:22:55 +01:00
Richard Brice
b50f4a2240
Adds a virtual init_adjustments function to precompute common values for segment geometry adjustments
2023-11-01 08:35:29 -07:00
Richard Brice
bef86e261c
Renamed interpolate to compute_adjustment and made it a template function.
2023-11-01 08:34:58 -07:00
Richard Brice
ba870e54c3
Merge branch 'v0.8.0' into v0.8.0
2023-10-27 10:46:53 -07:00
Richard Brice
969181acf3
Implements framework for adjusting geometry based on location of start point of next segment.
2023-10-27 08:10:18 -07:00
Richard Brice
0aa69a6ebf
Moves implementation of piecewise_function::evaluate(u) from h to cpp to prevent massive rebuilds everytime the function is changed.
2023-10-27 08:10:18 -07:00
Richard Brice
dd915736f5
Adds warning that the BaseCurve of IfcGradientCurve is expected to be IfcCompositeCurve
2023-10-27 08:10:18 -07:00
Richard Brice
85ece64272
Minor code format revisions
2023-10-27 08:10:18 -07:00
Richard Brice
6e8d635040
Adds test of fallback placement for IfcLinearPlacement and reduces number of tests for placement type.
...
Changed to if-else if so inst isn't tested to be every placement type, every time.
2023-10-27 08:10:18 -07:00
Richard Brice
cefbf8b4f2
Fixes runtime check for polynomial curve
2023-10-27 08:10:17 -07:00
Thomas Krijnen
a0aaa39c4b
Test for intersection result in cgal code
2023-10-27 08:10:17 -07:00
Thomas Krijnen
71166f3685
Some variations of shell mapping in occt
2023-10-27 08:10:17 -07:00
Thomas Krijnen
90f9123f35
Notify on product conversion start as in 0.7
2023-10-27 08:10:17 -07:00
Thomas Krijnen
a6f97b0b92
Implement ObjectPlacement using native recursion
2023-10-27 08:10:17 -07:00
Richard Brice
f0dbb535d3
Removed assert, added Logger::Warning and Logger::Error. Made treatment of unexpected data more permissive
2023-10-27 08:09:50 -07:00
Richard Brice
dde85265c6
Adds support for IfcLinearPlacement
2023-10-27 08:09:05 -07:00
Richard Brice
1920a6427d
Removed assert, added Logger::Warning and Logger::Error. Made treatment of unexpected data more permissive
2023-10-27 08:04:19 -07:00
Thomas Krijnen
3913849635
Use --start/end-group on linux to fix ld geomserver
2023-10-27 08:04:18 -07:00
Richard Brice
140dded1d1
Implements Eigen shortcut
...
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2023-10-27 08:04:18 -07:00
Richard Brice
40d4c5bd01
Implements Eigen shortcut
...
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2023-10-27 08:04:18 -07:00
Richard Brice
97879e47e2
Implements Eigen shortcut
...
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2023-10-27 08:04:18 -07:00
Richard Brice
8b05da1da1
Implements Eigen shortcut
...
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2023-10-27 08:04:18 -07:00
Richard Brice
6a828d7035
Instantiates IfcHierarchyHelper template for ADD2
2023-10-27 08:04:18 -07:00
Richard Brice
528cf06a46
Adds support for IfcLinearPlacement
2023-10-27 08:04:17 -07:00
Thomas Krijnen
b4ef4cbbec
Add noexcept to hash functor
2023-10-27 08:04:17 -07:00
Thomas Krijnen
23ab8c7ef9
In-code changes for ADD2
2023-10-27 08:04:17 -07:00
Thomas Krijnen
b52752ae11
Rerun C++ codegen
2023-10-27 08:04:17 -07:00
Thomas Krijnen
b865309b92
Merge v0.7.0 -- src\ifcopenshell-python\ifcopenshell\express
2023-10-27 08:04:13 -07:00
Richard Brice
512b8b9e08
Mapping of vertical profiles with IfcGradientCurve
2023-10-27 08:04:12 -07:00
Richard Brice
8497e655f5
Fixes mapping of horizontal curve with IfcCircle
2023-10-27 08:04:12 -07:00
Richard Brice
c1cab4b186
Fixes problems with horizontal curves and clothoid spirals
2023-10-27 08:04:12 -07:00
Thomas Krijnen
53096017f5
Update nef_to_halfspace_tree.h
2023-10-27 08:04:12 -07:00
Thomas Krijnen
c1a6d8f347
Small changes to curve segment handling for purpose of wrapper
2023-10-27 08:04:12 -07:00
Richard Brice
ba4ff68597
Fixes runtime check for expected IfcPolynomialCurve coefficients and adds fallback check to IfcObjectPlacement ( #3936 )
...
* Adds support for IfcLinearPlacement
* Instantiates IfcHierarchyHelper template for ADD2
* Implements Eigen shortcut
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
* Implements Eigen shortcut
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
* Implements Eigen shortcut
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
* Implements Eigen shortcut
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
* Removed assert, added Logger::Warning and Logger::Error. Made treatment of unexpected data more permissive
* Fixes runtime check for polynomial curve
* Adds test of fallback placement for IfcLinearPlacement and reduces number of tests for placement type.
Changed to if-else if so inst isn't tested to be every placement type, every time.
---------
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2023-10-25 09:42:39 +02:00
Thomas Krijnen
e9c70f8d83
Test for intersection result in cgal code
2023-10-24 20:57:02 +02:00
Thomas Krijnen
f911bbd931
Some variations of shell mapping in occt
2023-10-24 20:56:39 +02:00
Thomas Krijnen
85b3509ce3
Notify on product conversion start as in 0.7
2023-10-24 20:56:06 +02:00
Thomas Krijnen
ad61353fb5
Implement ObjectPlacement using native recursion
2023-10-24 20:54:25 +02:00
Richard Brice
2a53911c52
Removed assert, added Logger::Warning and Logger::Error. Made treatment of unexpected data more permissive
2023-10-24 17:05:51 +02:00
Richard Brice
94b567a25b
Implements Eigen shortcut
...
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2023-10-24 17:05:51 +02:00
Richard Brice
3237190d83
Implements Eigen shortcut
...
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2023-10-24 17:05:51 +02:00
Richard Brice
5482ca145e
Implements Eigen shortcut
...
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2023-10-24 17:05:51 +02:00
Richard Brice
6f5f7016fe
Implements Eigen shortcut
...
Co-authored-by: Thomas Krijnen <t.krijnen@gmail.com >
2023-10-24 17:05:51 +02:00
Richard Brice
5c64a1bd8d
Instantiates IfcHierarchyHelper template for ADD2
2023-10-24 17:05:51 +02:00
Richard Brice
fc22d2fa51
Adds support for IfcLinearPlacement
2023-10-24 17:05:51 +02:00
Thomas Krijnen
4f3dacd6d5
Use --start/end-group on linux to fix ld geomserver
2023-10-21 22:29:41 +02:00
Thomas Krijnen
164125fe70
Add noexcept to hash functor
2023-10-18 09:47:30 +02:00
Thomas Krijnen
fd3ef6508b
In-code changes for ADD2
2023-10-18 09:47:29 +02:00
Thomas Krijnen
1eb8ef08d2
Rerun C++ codegen
2023-10-18 09:47:28 +02:00
Thomas Krijnen
6302be6bfd
Merge v0.7.0 -- src\ifcopenshell-python\ifcopenshell\express
2023-10-18 09:47:27 +02:00
Richard Brice
d52f12973a
Mapping of vertical profiles with IfcGradientCurve
2023-10-17 09:20:50 +02:00
Richard Brice
3eb85cc36a
Fixes mapping of horizontal curve with IfcCircle
2023-10-17 09:20:50 +02:00
Richard Brice
e794911926
Fixes problems with horizontal curves and clothoid spirals
2023-10-17 09:20:50 +02:00
Thomas Krijnen
51f72b4edc
Update nef_to_halfspace_tree.h
2023-10-16 21:28:38 +02:00
Thomas Krijnen
661c8bc50f
Small changes to curve segment handling for purpose of wrapper
2023-10-14 16:37:50 +02:00
Thomas Krijnen
909978c941
Merge pull request #3826 from RickBrice/v0.8.0
...
Some minor tweaks and implements suggestions
2023-10-12 20:59:31 +02:00
Dirk Olbrich
616a96972a
clang-format: align license blocks
...
- split up some very long lines
2023-10-12 12:39:16 +02:00
Dirk Olbrich
d971e0e62e
clang-format: remove duplicates from base style
2023-10-12 12:39:16 +02:00
Dirk Olbrich
63177a7c35
clang-format: format test
2023-10-12 12:39:16 +02:00
Dirk Olbrich
17838f2426
clang-format: no column length, no short blocks
2023-10-12 12:39:16 +02:00
Dirk Olbrich
1969828340
clang-format: add style file
2023-10-12 12:39:16 +02:00
Thomas Krijnen
fa73de97b0
Option to specify algorithm for --exterior-only
2023-10-06 13:27:47 +02:00
Richard Brice
b9c234457d
Fixes minor issues with mapping code
2023-10-04 13:25:58 -07:00
Richard Brice
a5c07d5e24
Adds IfcPolynoialCurve for vertical curves
2023-10-04 13:25:31 -07:00
Richard Brice
7b0e2c52ac
Manually merged in aothms revisions for gradient curves and implicit_item taxonomy
2023-10-02 16:30:39 -07:00
Richard Brice
ae09a1acac
Merge branch 'v0.8.0' of https://github.com/RickBrice/IfcOpenShell into v0.8.0
2023-09-29 13:27:54 -07:00
Richard Brice
c3aeae8661
Implements recommendation to use map_impl(IfcPolyline*)
2023-09-29 13:27:23 -07:00
Richard Brice
9c5758b77c
Merge branch 'v0.8.0' into v0.8.0
2023-09-29 12:37:14 -07:00
Richard Brice
00d8ffeba0
Reverts to Taylor Series approximation of Clothoid curve.
...
If you compare the results generated by the numeric integration and the approximation, they are very different. The approximation compares will with other software so there is likely a problem with the equation of the clothoid
2023-09-29 12:14:38 -07:00
Richard Brice
f9d259a3d8
Removes redundant function evaluation in numeric integration
2023-09-29 12:14:38 -07:00
Richard Brice
d9b534b66d
Implemented position handling with transformation matrix
2023-09-29 12:14:38 -07:00
Richard Brice
47c319aa2d
Adds a continuity check for IfcCurveSegment
2023-09-29 12:14:30 -07:00
Richard Brice
d50dcadf5c
Implemented placement handling with transformation matrix.
2023-09-29 08:45:02 +02:00
Richard Brice
fdc0c0cbd1
Minor revision to numerical integration code
2023-09-29 08:45:02 +02:00
Richard Brice
2d14ad1667
Revises implementation of operator(IfcSchema::IfcClothoid*) to use trapezoid rule numeric integration.
...
This is a more general approach than the Taylor Series approximation and is applicable to all the other spiral types. I stubbed out a functor for IfcSecondOrderPolynomialSpiral, but haven't tested it. The purpose is to show the concept.
2023-09-29 08:45:02 +02:00
Richard Brice
9ac99b6f97
Implements mapping of IfcCurveSegment to taxonomy::geometry
2023-09-29 08:45:02 +02:00
Richard Brice
4d3a21de77
Fixes cast to IfcCurveSegment for access to ParentCurve
2023-09-29 08:45:02 +02:00
Richard Brice
60723cff2b
Fixed problem with call to boost::mpl::for_each
2023-09-29 08:45:02 +02:00
Richard Brice
6510291f21
Updated build scripts to use boost_1.79.0
2023-09-29 08:45:02 +02:00
Richard Brice
d4f543d2ad
Implemented placement handling with transformation matrix.
2023-09-28 14:58:21 -07:00
Richard Brice
1564b53ef5
Minor revision to numerical integration code
2023-09-28 14:28:17 -07:00
Richard Brice
4f2b083ffc
Revises implementation of operator(IfcSchema::IfcClothoid*) to use trapezoid rule numeric integration.
...
This is a more general approach than the Taylor Series approximation and is applicable to all the other spiral types. I stubbed out a functor for IfcSecondOrderPolynomialSpiral, but haven't tested it. The purpose is to show the concept.
2023-09-28 11:51:26 -07:00
Richard Brice
6ae0cce186
Implements mapping of IfcCurveSegment to taxonomy::geometry
2023-09-27 11:16:55 -07:00
Richard Brice
3e272efce4
Fixes cast to IfcCurveSegment for access to ParentCurve
2023-09-22 13:49:18 -07:00
Richard Brice
04b70efd7f
Fixed problem with call to boost::mpl::for_each
2023-09-21 15:48:45 -07:00
Richard Brice
53028d9c97
Updated build scripts to use boost_1.79.0
2023-09-21 15:48:45 -07:00
Thomas Krijnen
3bc9f81b6a
Remove 4x3 RCs from cmake defaults
2023-09-17 21:02:05 +02:00
Thomas Krijnen
053e3a3191
#3098 Move boost::type application to curve to template function
2023-09-17 09:35:14 +02:00
Thomas Krijnen
a14c40feda
Check for empty result from map(IfcRepresentation) in iterator
2023-09-16 22:23:22 +02:00
Thomas Krijnen
88ef7c75b8
#3098 IfcCurveSegment and IfcClothoid handling (?)
2023-09-16 22:23:04 +02:00
Thomas Krijnen
79d456bbf1
mapping: always overwrite orientation of loop as facebound
2023-09-14 21:58:46 +02:00
Thomas Krijnen
380cf4eca5
cgal kernel: permissiveness for multiple outer bounds in face
2023-09-14 21:58:06 +02:00
Thomas Krijnen
179e3049dd
cgal kernel: Continue with invalid state after triangulation
2023-09-14 21:57:23 +02:00
Thomas Krijnen
5bead4b219
#2805 Apply changes to v0.8 geometry mapping as well
2023-09-14 11:33:23 +02:00
Thomas Krijnen
cae5a80397
Apply e9d0b8ab6 part of Serialization
2023-09-14 10:07:22 +02:00
Thomas Krijnen
02864f96e0
#2819 Handle periodic bspline curves in serialization
2023-09-14 10:03:19 +02:00
Thomas Krijnen
085d420d7c
#2819 Mark rep id as AdvancedBrep
2023-09-14 10:03:18 +02:00
Dirk Olbrich
43b525e7e7
cmake: add use of ccache
2023-09-14 09:29:20 +02:00
Dirk Olbrich
1534e5cef5
cmake: fix regex for option flags
2023-09-14 09:29:20 +02:00
Dirk Olbrich
1263f3c4d3
cmake: move all macros/functions into utility file
2023-09-14 09:29:20 +02:00
Dirk Olbrich
b3d10ce43e
clang-tidy: add basic checks
2023-09-14 09:29:20 +02:00
Dirk Olbrich
66a0b56443
cmake: bump version and add compile commands
2023-09-14 09:29:20 +02:00
Dirk Olbrich
e341fb9892
clangd: gitignore cache
2023-09-14 09:29:20 +02:00
Thomas Krijnen
eca4eba747
Remove logging statement
2023-09-14 09:27:26 +02:00
Thomas Krijnen
727ea55315
Apply ifcparse/ part of '65cb47e2d892d84c0d3d8e89ba157360c6902c7f'
2023-09-14 09:27:08 +02:00
Thomas Krijnen
d7951668e9
Case sensitivity on entity str comparison from cmd line https://sourceforge.net/p/ifcopenshell/discussion/1782717/thread/2bf3324a7f
2023-09-14 09:21:12 +02:00
Dirk Olbrich
8bb0ffd2c7
ifcparse: fix compiler warning -Wignored-qualifiers
2023-09-14 09:21:11 +02:00
Thomas Krijnen
1641ad0047
#2805 IFC4X3 codegen
2023-09-14 09:21:10 +02:00
Thomas Krijnen
a40e359620
#2805 Pasta errors
2023-09-14 09:14:32 +02:00
Thomas Krijnen
b374454f3a
#2805 template keyword for gcc
2023-09-14 09:14:32 +02:00
Thomas Krijnen
b4ee981134
#2805 Rerun codegen
2023-09-14 09:14:27 +02:00
Thomas Krijnen
5dabcbb944
#2805 Use dynamic cast for generalize() due to virtual inheritance of selects
2023-09-14 09:14:21 +02:00
Thomas Krijnen
39c1face4d
#2805 update hierarchy helper
2023-09-14 09:14:21 +02:00
Thomas Krijnen
6180627acd
#2805 rerun codegen
2023-09-14 09:14:16 +02:00
Thomas Krijnen
1a014046a9
#2805 rerun codegen
2023-09-14 09:14:08 +02:00
Thomas Krijnen
c0abaa36f4
fix syntax error on gcc
2023-09-14 09:14:01 +02:00
Thomas Krijnen
db3a6c8ef7
typename :(
2023-09-14 09:14:01 +02:00
Thomas Krijnen
52421a6398
Fix IfcFile::getInverse<T>()
2023-09-14 09:14:00 +02:00
Thomas Krijnen
063bb0a017
#3139 Capture parsed selected simple type values
2023-09-14 09:14:00 +02:00
Shohei Kunimatsu
1767b09bbc
Fix wrong attribute name usage (ValueComponent -> UnitComponent) in IfcFile::getUnit
2023-09-14 09:14:00 +02:00
Thomas Krijnen
235c32875d
Use plane eq snapping for boolean ops in cgal and other strategies in addition to minkowsky sum dilation
2023-09-13 22:05:23 +02:00
Thomas Krijnen
5eff7178da
Restructure cgal shape triangulation
2023-09-13 22:05:22 +02:00
Thomas Krijnen
0116be1386
Use geobim tooling as a provisional iterator adaptor
2023-09-13 22:05:22 +02:00
Dirk Olbrich
8d85aaba6d
cmake: reset to c++17
2023-09-11 11:40:20 +02:00
Dirk Olbrich
309a29faf2
cmake: reapply changes for cgal from v0.8
2023-09-11 11:40:20 +02:00
Dirk Olbrich
6b692d8772
cmake: merge 'v0.7.0' into 'v0.8.0'
2023-09-11 11:40:20 +02:00
Thomas Krijnen
a393d694df
Update submodule
2023-09-11 11:37:08 +02:00
Thomas Krijnen
4127247230
Reference correct cgal kernel impl and build wrapper with /force:multiple as well
2023-08-26 13:42:42 +02:00
Thomas Krijnen
4bb3cc5c90
Fix transformation in serialization element, accept geometry library in more geom functions
2023-08-26 11:35:23 +02:00
Thomas Krijnen
5336b2f987
Implement shape serialization for cgal, possibility to supply geometry library to iterator in py
2023-08-25 21:46:32 +02:00
krande
3f4d183680
ready for PR
2023-08-03 16:27:29 +08:00
krande
85943c8086
add platform conda pkg dir in matrix
2023-08-03 16:27:29 +08:00
krande
a67bb8b2ff
add platform specific anaconda uploads
2023-08-03 16:27:29 +08:00
krande
339aea0295
ready v0.8 branch for conda daily PR
2023-08-03 16:27:29 +08:00
Thomas Krijnen
dad5845db7
Fix compilation of gserver
2023-08-01 11:52:11 +08:00
Thomas Krijnen
d34b1e9545
Fix compilation of wrapper
2023-08-01 08:56:16 +08:00
Thomas Krijnen
b7f73153cc
Update unused filter() function
2023-07-31 16:01:29 +08:00
Thomas Krijnen
73fdeaf2a7
Fully qualify namespace
2023-07-31 15:01:36 +08:00
Thomas Krijnen
65a5646bf0
Major update: taxonomy shared pointers, collection type safety, work towards hashing
2023-07-27 16:42:06 +08:00
Thomas Krijnen
98a73f1646
Add occt build script patch for V7_7_1
2023-04-10 14:47:30 +02:00
Thomas Krijnen
9af7d33814
Update build-all.py
2023-04-10 14:31:20 +02:00
Thomas Krijnen
eeddd5127b
Update occt version number on win
2023-04-10 14:28:30 +02:00
Thomas Krijnen
8329a1dea1
Use taxonomy::matrix4 instead of Eigen::Matrix4d in profile helper which has default constructor to identity
2023-04-10 14:22:43 +02:00
Thomas Krijnen
11a515a025
Improve error reporting in test_wall_opening.py
2023-04-10 14:22:43 +02:00
Thomas Krijnen
09f6992c65
Fix linking of wrapper on GCC
2023-04-09 19:28:57 +00:00
Thomas Krijnen
933f7fced2
Merge OCCT 7.6+ compatibility
2023-04-09 19:28:37 +00:00
Thomas Krijnen
ed00fc282a
Update nix build script to OCCT 7.7.1
2023-04-09 19:27:58 +00:00
Thomas Krijnen
d12d14e7f2
Experiment with simple_cartesian<double> kernel
2023-04-03 13:34:35 +02:00
Thomas Krijnen
49416808d4
Make use of identity in faceset helper
2023-04-03 13:33:22 +02:00
Thomas Krijnen
9d5fe1fee4
Fix some mapping errors
2023-04-03 13:31:52 +02:00
Thomas Krijnen
cc223dd5b4
Add identity int to taxonomy item
2023-04-03 13:31:22 +02:00
Thomas Krijnen
2ac66571b0
Update build-all python versions
2023-04-01 13:51:12 +02:00
Thomas Krijnen
48798ae07d
Use linker groups on gcc to fix geomserver build
2023-03-31 21:58:53 +02:00
aothms
99abc6e0e2
Fix errors on clang
2023-03-31 15:19:39 -04:00
Thomas Krijnen
a3e3a6bd0c
Update build-all.py
2023-03-31 15:29:21 +02:00
Thomas Krijnen
b3f0140bb5
Also support exporting OBJ exterior shell
2023-03-31 15:19:54 +02:00
Thomas Krijnen
b8c6bda006
Update cd.yml
2023-03-31 13:04:01 +02:00
Thomas Krijnen
64ff23c8f3
Update ci.yml
2023-03-31 13:03:25 +02:00
Thomas Krijnen
7e2fb6d578
Update cd.yml
2023-03-31 12:31:16 +02:00
Thomas Krijnen
cd6967cf2b
Return axis rep even when assigned to model context
2023-03-31 12:28:22 +02:00
Thomas Krijnen
3e69f061ea
Fix for msb without voids
2023-03-31 12:28:22 +02:00
Thomas Krijnen
ab99a0486d
Fix retrieval of native element
2023-03-31 12:28:22 +02:00
Thomas Krijnen
442ba56972
Proceed with citygml conversion integration
2023-03-31 12:28:22 +02:00
Thomas Krijnen
12142568c2
Update ci-py-only.yml
2023-03-30 14:57:28 +02:00
Thomas Krijnen
ab206da885
Update ConversionSettings.h
2023-03-30 14:29:06 +02:00
Thomas Krijnen
348a333323
Update ConversionSettings.h
2023-03-30 14:28:25 +02:00
Thomas Krijnen
7fb921e5d0
Update cd.yml
2023-03-30 11:54:00 +02:00
Thomas Krijnen
a1f48da120
Update ci-py-only.yml
2023-03-30 11:53:57 +02:00
Thomas Krijnen
11a21e5d3f
Update ci.yml
2023-03-30 11:53:53 +02:00
Thomas Krijnen
5b2f7653eb
Integerate cityjson converter
2023-03-30 11:29:09 +02:00
Thomas Krijnen
f1ce5f17e8
Merge remote-tracking branch 'origin/v0.7.0' into v0.8.0
2023-03-29 18:06:50 +02:00
Thomas Krijnen
fc05c096f6
Undef var rrrors after merge
2023-03-29 15:56:41 +02:00
Thomas Krijnen
2c0e791c6e
Rerun codegen
2023-03-29 15:36:07 +02:00
Thomas Krijnen
c32c88b1a0
Merge remote-tracking branch 'origin/v0.7.0' into v0.8.0
2023-03-29 12:55:05 +02:00
Thomas Krijnen
05a7aac62e
Prevent double counting elements in single threaded mode
2023-03-28 15:20:54 +02:00
Thomas Krijnen
b108452cb1
Compilation error
2023-03-28 10:01:09 +02:00
Thomas Krijnen
f803a38fbb
Revert "Some warnings"
...
This reverts commit 468d8effc8 .
2023-03-27 21:22:04 +02:00
Thomas Krijnen
468d8effc8
Some warnings
2023-03-27 21:09:25 +02:00
Thomas Krijnen
625ce773c5
Fix segfault in loop.cpp on empty instance
2023-03-27 21:08:52 +02:00
Thomas Krijnen
635f3ca30e
Rerun codegen
2023-03-27 14:05:40 +02:00
Thomas Krijnen
96fbe9e5b6
String pooling and reducing duplication in schema codegen
2023-03-27 14:04:32 +02:00
Thomas Krijnen
c964559b91
taxonomy string formatting
2023-03-27 14:02:53 +02:00
Thomas Krijnen
1adcce509f
Presentation style handling for 4.3
2023-03-27 14:02:21 +02:00
Thomas Krijnen
b957e629b5
Update wrapper code
2023-03-22 15:25:14 +01:00
Thomas Krijnen
031694af2b
Make cgal optional
2023-03-22 11:47:00 +01:00
Thomas Krijnen
2b1b79bf1c
Make occt optional
2023-03-22 11:17:14 +01:00
Thomas Krijnen
cb35378a73
4x3 segment compatibilty
2023-03-22 09:55:04 +01:00
Thomas Krijnen
236f470ae6
Update geom server
2023-03-22 09:28:02 +01:00
Thomas Krijnen
de93ad1e92
Duplicate const
2023-03-22 09:12:19 +01:00
Thomas Krijnen
4d5a77d8e3
Ambiguous overload
2023-03-22 09:02:57 +01:00
Thomas Krijnen
358b120108
Case sensitivity
2023-03-22 08:45:30 +01:00
Thomas Krijnen
4b36f9a8f9
Update ci.yml
2023-03-21 20:38:43 +01:00
Thomas Krijnen
7594aa8d0c
Update ci-py-only.yml
2023-03-21 20:38:19 +01:00
Thomas Krijnen
b92fa5eab2
Proceed with merge
2023-03-21 20:26:11 +01:00
Thomas Krijnen
c78b2893de
Proceed with merge
2023-03-21 20:15:01 +01:00
Thomas Krijnen
cfb0eda067
Fix eigen installs
2022-11-15 22:19:24 +01:00
Thomas Krijnen
a85571979e
Merge branch 'v0.8.0' into v0.8.0-merge
2022-11-15 15:11:00 +01:00
Thomas Krijnen
ccde605029
File renames, build script and cmake updates
2022-11-15 13:19:24 +01:00
Thomas Krijnen
6d59e6ea90
Fixes for transform and mapped item reuse in taxonomy
2020-07-09 22:09:54 +02:00
Thomas Krijnen
0e2bac5e3b
Shape reuse based on std::less
2020-07-08 12:07:10 +02:00
Thomas Krijnen
6aafff2c40
taxonomy printing and different trimmed curve orientation handling
2020-06-21 15:15:49 +02:00
Thomas Krijnen
eacea738f9
move dispatch curve creation
2020-06-11 20:51:22 +02:00
Thomas Krijnen
7f60ea9c52
cgal curve implementations
2020-06-11 20:51:08 +02:00
Thomas Krijnen
b85e03374a
Workaround singularity issues in gp_GTrsf
2020-06-11 20:50:50 +02:00
Thomas Krijnen
939d1a6c4f
implement triangulation transformation in eigen
2020-06-11 20:50:13 +02:00
Thomas Krijnen
018f1ea1d4
fix radius
2020-06-11 20:49:53 +02:00
Thomas Krijnen
52a3d627e2
mapped item implementation
2020-06-11 20:49:44 +02:00
Thomas Krijnen
109131961f
heap alloc for eigen types for alignment issues
2020-06-11 20:48:35 +02:00
Thomas Krijnen
185b4ef9fa
shell based surface model
2020-06-11 20:44:29 +02:00
Thomas Krijnen
0fa05f7339
Note on segfault
2020-04-29 10:06:23 +02:00
Thomas Krijnen
0b659ce4f6
Update CMakeLists.txt
2020-04-28 13:54:41 +02:00
aothms
55024e1e8a
Update cmake install directives
2020-04-05 09:41:20 +00:00
aothms
53477cc8e2
Small fixes for gcc
2020-04-03 15:05:50 +00:00
aothms
bba7295edf
Small fixes for gcc
2020-04-03 14:56:46 +00:00
Thomas Krijnen
9b391d3d47
Remove auto from lambda parameter declaration
2020-04-03 16:24:07 +02:00
Thomas Krijnen
5d21d26f24
Fix glTF transformation
2020-04-03 16:21:16 +02:00
Thomas Krijnen
47b2da6082
Fix gltf serializer compilation
2020-04-03 14:23:23 +02:00
aothms
63b9b7baa7
Nullptr return types
2020-04-03 12:01:58 +00:00
aothms
33e092c8d5
Update occt tree
2020-04-03 12:01:30 +00:00
aothms
4d23a442be
Eigen in nix build
2020-04-03 12:00:48 +00:00
Thomas Krijnen
3113976ee5
Implement fillets and a couple of profiles
2020-03-30 14:31:59 +02:00
Thomas Krijnen
048ee84ae6
Propagate failure on representation to product
2020-03-27 14:06:43 +01:00
Thomas Krijnen
4aef5dbd10
Small fixes
2020-03-23 09:20:01 +01:00
Thomas Krijnen
60b160461e
Update README
2020-02-01 11:23:01 +01:00
Thomas Krijnen
df6852d2ac
space boundaries
2020-02-01 11:16:09 +01:00
Thomas Krijnen
6b250b3ccf
manifold solid brep
2020-02-01 11:15:40 +01:00
Thomas Krijnen
bca78e086d
Storey containment fuzziness
2020-01-31 11:58:14 +01:00
Thomas Krijnen
cbf147b9f9
area overlap
2020-01-31 11:57:52 +01:00
Thomas Krijnen
a805496895
Disable polyline point removal
2020-01-29 17:29:33 +01:00
Thomas Krijnen
b91a34c8c6
Track time; fixes for wall connectivity check
2020-01-29 14:57:49 +01:00
Thomas Krijnen
e448312d41
Reporting for wall connectivity
2020-01-27 10:42:01 +01:00
Thomas Krijnen
1d6f20c48d
Fix wall connectivity
2020-01-26 17:11:14 +01:00
Thomas Krijnen
7a8a5e2ebb
Dont close polylines automatically
2020-01-26 17:11:02 +01:00
Thomas Krijnen
b6a7ba1e1c
Fix for open polyhedra
2020-01-26 13:58:02 +01:00
Thomas Krijnen
060c35939a
Wall connectivity
2020-01-26 13:12:19 +01:00
Thomas Krijnen
030ea06aac
Fix placement on containment case
2020-01-25 14:24:18 +01:00
Thomas Krijnen
3575aded90
containment check
2020-01-21 16:26:00 +01:00
Thomas Krijnen
487be4b65e
Correct projection to middle surface
2019-12-14 16:17:36 +01:00
Thomas Krijnen
612fb8d8d5
Average space boundary construction in Nef polyhedra
2019-12-14 14:50:20 +01:00
Thomas Krijnen
a729f489ee
Fix double free
2019-12-14 14:41:41 +01:00
Thomas Krijnen
59b04c7857
Validation work using Nef
2019-12-14 13:25:30 +01:00
Thomas Krijnen
a5de17228a
Work towards space boundaries fix
2019-10-06 19:03:31 +02:00
Thomas Krijnen
f391b425ba
dilate as boolean
2019-10-06 09:11:44 +02:00
Thomas Krijnen
389964c9f4
cgal boolean result and minkowski sum for dilation
2019-09-25 15:30:11 +02:00
Thomas Krijnen
11ad1b2cc5
cgal extrusion
2019-09-24 15:46:50 +02:00
Thomas Krijnen
d91ac7363f
Mark loops from profile_helper as external
2019-09-22 16:02:48 +02:00
Thomas Krijnen
0085393884
Take into account vertex welding
2019-09-22 16:02:22 +02:00
Thomas Krijnen
61403e878e
Try catch face normal computation
2019-09-22 16:02:05 +02:00
Thomas Krijnen
a1671448db
Default static runtime to off.
2019-09-22 15:05:14 +02:00
Thomas Krijnen
474786c4c5
IfcArbitraryProfileDefWithVoids
2019-09-22 10:32:03 +02:00
Thomas Krijnen
1f4bc28e2b
Product placements and openings
2019-09-19 10:11:01 +02:00
Thomas Krijnen
3cde411e1b
halfspaces and boolean ops
2019-09-18 16:35:26 +02:00
Thomas Krijnen
a447dc6208
Work towards trimmed curves
2019-09-16 19:30:11 +02:00
Thomas Krijnen
3731c95728
Mapped item
2019-09-16 17:40:55 +02:00
Thomas Krijnen
d59f3e9932
Polyline
2019-09-16 15:40:13 +02:00
Thomas Krijnen
04bce57e80
Fix placements
2019-09-16 10:25:39 +02:00
Thomas Krijnen
e3041219b5
Further work on profiles
2019-09-15 15:59:05 +02:00
Thomas Krijnen
0c54bdcd54
Cleanup
2019-09-04 09:10:57 +02:00
Thomas Krijnen
bed9c44883
mark bounds as external based on entity type
2019-09-01 18:46:11 +02:00
Thomas Krijnen
8efb86420e
Compilation errors
2019-09-01 16:48:50 +02:00
Thomas Krijnen
7f8bed9922
Begin reenable CGAL kernel
2019-09-01 16:29:00 +02:00
Thomas Krijnen
816c0d3618
Fix placements
2019-09-01 13:36:46 +02:00
Thomas Krijnen
2e7c43f590
Work on placements
2019-09-01 10:36:49 +02:00
Thomas Krijnen
ca2a4f243d
initialize units in mapping
2019-09-01 09:18:29 +02:00
Thomas Krijnen
64ee3e9af3
closed shell; placements; faceset_helper
2019-08-28 09:54:20 +02:00
Thomas Krijnen
3bfe3b9ab5
Seperate map() and map_impl() for automatic taxonomy item <> ifc instance mapping
2019-08-28 09:24:00 +02:00
Thomas Krijnen
640b08159f
Work on shells
2019-08-27 18:59:19 +02:00
Thomas Krijnen
f17036313d
Work on face boundaries
2019-08-26 17:19:06 +02:00
Thomas Krijnen
8b4900b0e1
Work on shell conversino
2019-08-25 16:07:10 +02:00
Thomas Krijnen
41d7fb32da
Provide collection implementation in abstract_kernel
2019-08-25 12:00:04 +02:00
Thomas Krijnen
8ec2019003
Fix enumeration order
2019-08-25 11:50:40 +02:00
Thomas Krijnen
26d7af1450
Implement additional mappings
2019-08-24 18:32:30 +02:00
Thomas Krijnen
2f1861db7b
Declare conversions for reuse detection
2019-08-24 17:36:17 +02:00
Thomas Krijnen
94aa7dfab4
Close to working executable
2019-08-18 15:53:26 +02:00
Thomas Krijnen
8f88c601c6
IfcConvert links on windows
2019-08-18 14:31:22 +02:00
Thomas Krijnen
85171bb5df
Remove ConversionResultPlacement, fix some errors
2019-08-18 08:37:59 +02:00
Thomas Krijnen
585b89be87
Fix compilation of serializers and convert
2019-08-17 09:47:07 +02:00
Thomas Krijnen
ddeaf5a375
More work
2019-08-16 17:40:13 +02:00
Thomas Krijnen
dae35f59ce
Implement mapping of IfcExtrudedAreaSolid
2019-08-04 11:27:10 +02:00
Thomas Krijnen
467ebb68a3
First step at reorganizing
2019-08-04 09:36:31 +02:00
Thomas Krijnen
c8def0474e
Update examples
2019-08-03 16:11:02 +02:00
Thomas Krijnen
f6aa7c8930
Additional merge issues
2019-08-03 15:43:14 +02:00
Thomas Krijnen
92f7d26835
Work on Python wrapper
2019-08-03 15:09:50 +02:00
Thomas Krijnen
5ccc7213a0
Merge remote-tracking branch 'origin/v0.6.0' into v0.7.0
2019-08-03 14:50:08 +02:00
Thomas Krijnen
fd9c57b77d
Merge branch 'v0.6.0' into v0.7.0
2019-08-02 17:56:45 +02:00
Thomas Krijnen
b08e52bd9b
Merge remote-tracking branch 'origin/v0.6.0' into v0.7.0
2019-08-02 13:23:41 +02:00
Thomas Krijnen
0cb2c81227
Rough draft of a client application for the C++ IfcGeomServer binary
2019-05-15 17:13:29 +02:00
Thomas Krijnen
bbf271a10e
Fix volume calculation with voxels in geom server
2019-05-15 17:07:16 +02:00
Thomas Krijnen
d45d843173
Fix CMake error
2019-05-15 14:27:31 +02:00
Thomas Krijnen
4fa283fb3c
Write voxelization logic in geom server
2019-05-15 13:57:50 +02:00
Thomas Krijnen
4400a6ea4f
Make use of cgal configurable
2019-05-15 11:13:58 +02:00
Thomas Krijnen
9cb321e73d
Move include up for M_PI def on MSVC
2019-05-10 14:38:42 +02:00
Thomas Krijnen
e566af84c2
Fix geom server for schema agnosticism
2019-05-10 14:35:42 +02:00
Thomas Krijnen
310013dfe4
Fix compilation error from merge
2019-05-10 14:35:20 +02:00
Thomas Krijnen
de3633e742
Cmake find voxels
2019-05-10 14:35:00 +02:00
Thomas Krijnen
a24ad023a5
CGAL win build script
2019-05-10 13:46:13 +02:00
Thomas Krijnen
adc0e92528
Fix remaining conflict
2019-05-10 13:42:16 +02:00
Thomas Krijnen
46ba5661d6
Merge branch 'v0.6.0' into v0.7.0
2019-05-10 13:37:42 +02:00
Thomas Krijnen
33bcf786fd
MPIR and MPFR in win build script
2019-05-03 10:46:59 +02:00
Thomas Krijnen
8e6a6ec56d
Add voxelization_toolkit to win build script
2019-04-30 14:36:55 +02:00
Thomas Krijnen
b862f633db
Fix voxel library in nix build script
2019-04-30 13:24:28 +02:00
Thomas Krijnen
f9e839817d
Add opensourceBIM/voxel to nix build script
2019-04-27 14:37:31 +02:00
Thomas Krijnen
a0c01ff756
Merge branch 'v0.6.0' into v0.7.0
...
# Conflicts:
# cmake/CMakeLists.txt
# src/ifcconvert/IfcConvert.cpp
# src/ifcgeom/IfcGeomRepresentation.h
# src/ifcgeom/IfcRepresentationShapeItem.h
# src/ifcgeom/kernels/opencascade/IfcGeomFunctions.cpp
# src/ifcgeom/schema_agnostic/IfcGeomRepresentation.cpp
# src/ifcgeom/schema_agnostic/Kernel.cpp
# src/ifcgeom/schema_agnostic/Kernel.h
# src/ifcgeomserver/IfcGeomServer.cpp
# src/serializers/schema_dependent/XmlSerializer.cpp
2019-04-26 15:07:50 +02:00
Thomas Krijnen
5b066c9f95
Don't convert to Nef if there are no voids
2019-01-25 15:19:52 +01:00
Thomas Krijnen
3afb9169b1
Implement missing virtual function in CgalKernel
2019-01-25 14:25:34 +01:00
Thomas Krijnen
24b552a822
Merge fixes
2019-01-23 17:27:13 +01:00
Thomas Krijnen
884064f213
Merge remote-tracking branch 'cgal/cgal' into v0.7.0
2019-01-23 15:44:19 +01:00
Thomas Krijnen
4d39dbca2a
Build static cgal, fix null pointer access
2019-01-23 15:10:20 +01:00
Thomas Krijnen
30479ca0a6
Fixes for compilation of cgal kernel
2019-01-23 12:34:21 +01:00
Thomas Krijnen
a7a1ad129e
Merge commit '6b47e9ca1d18df4b1cd2c66e488ad91f9730ecdf' into v0.7.0
...
# Conflicts:
# cmake/CMakeLists.txt
# nix/build-all.py
# test/input
2019-01-22 13:00:49 +01:00
Thomas Krijnen
bea627d01e
Merge commit '6b47e9ca1d18df4b1cd2c66e488ad91f9730ecdf' into v0.7.0
2019-01-22 12:47:21 +01:00
Thomas Krijnen
059a1cb14b
Merge commit '4d12bf7e8df4bd144526eeb5994802d308b40297' into v0.7.0
2019-01-22 12:38:02 +01:00
Thomas Krijnen
8c5349feaa
Introduce AbstractKernel
2019-01-20 13:16:42 +01:00
Thomas Krijnen
fa0a33f3c0
Option to select Kernel from IfcConvert
2019-01-19 12:39:47 +01:00
Thomas Krijnen
5a7c7ed048
Shuffle project structure
2019-01-18 16:43:38 +01:00
Thomas Krijnen
16d6420352
More work on enabling cgal kernel
2019-01-18 15:19:00 +01:00
Thomas Krijnen
d804575974
Cgal kernel skeleton
2019-01-18 12:10:18 +01:00
Thomas Krijnen
ad24b6be0f
Isolate (most of the) geometry processing code into separate opencascade kernel
2019-01-18 11:23:19 +01:00
Thomas Krijnen
0072e1f247
CMake CGAL version of IfcGeom
2019-01-16 14:44:43 +01:00
Thomas Krijnen
116b80cf91
Fix MPFR download location
2019-01-16 14:41:34 +01:00
Thomas Krijnen
208f6d4d74
Small fixes to build script
2019-01-16 14:18:36 +01:00
Thomas Krijnen
a0dfdc78ef
Add cgal to IfcGeom deps
2019-01-16 14:06:17 +01:00
Thomas Krijnen
cf2dd2aa8d
Add GMP MPFR CGAL to build script
2019-01-16 14:04:05 +01:00
Thomas Krijnen
6737b54457
Add GMP MPFR CGAL to build script
2019-01-16 13:59:10 +01:00
Thomas Krijnen
9ae55ab303
Small fixes to transformations
2017-06-06 17:12:46 +02:00
Ken Arroyo Ohori
8baf6197d5
Merge pull request #16 from kenohori/cgal
...
Validation code to catch more cases of invalid objects
2017-04-25 10:22:33 -05:00
Ken Arroyo Ohori
42f23a786f
Output all errors as separate files
2017-04-25 13:45:18 +02:00
Ken Arroyo Ohori
8b539d2b93
Requirement for self-intersection tests
2017-04-25 13:44:57 +02:00
Ken Arroyo Ohori
b732759388
Comprehensive validation code for opening subtractions
2017-04-25 13:44:34 +02:00
Ken Arroyo Ohori
02244400ab
Remove old debug code
2017-04-25 13:43:55 +02:00
Ken Arroyo Ohori
85a36738d2
Comment out triangulation code
2017-04-25 13:42:38 +02:00
Ken Arroyo Ohori
164e67a50b
Catching some more CGAL errors, allow non-closed meshes, start of new code to triangulate faces
2017-04-21 15:43:19 +02:00
Ken Arroyo Ohori
de83633891
Merge pull request #15 from kenohori/cgal
...
Catching some errors during conversion to/from Nef, tapered extrusions
2017-04-12 23:10:46 -05:00
Ken Arroyo Ohori
9f2a617ad7
Catch a few nasty cases in triangulation, more efficient to only compute face normals
2017-04-10 18:54:30 -05:00
Ken Arroyo Ohori
26bd03e407
Ditto
2017-04-10 18:53:52 -05:00
Ken Arroyo Ohori
248c73c2ab
Catch failures to convert Nef to Polyhedron_3
2017-04-10 18:53:28 -05:00
Thomas Krijnen
8d9acfa677
Attempt to fix travis build w/ CGAL
2017-04-06 15:23:45 +02:00
Thomas Krijnen
7b7f9b4852
Attempt to fix travis build w/ CGAL
2017-04-06 14:57:10 +02:00
Thomas Krijnen
7189219aa4
Attempt to fix travis build w/ CGAL
2017-04-06 14:44:57 +02:00
Ken Arroyo Ohori
f03a228280
Merge pull request #3 from aothms/cgal
...
Thomas fixed the transformations
2017-04-05 18:07:32 -05:00
Thomas Krijnen
91e5b337d3
Reverse matrix multiplication order
2017-04-05 16:06:07 +02:00
Thomas Krijnen
009f50abe1
Fix compilation on MSVC
2017-04-05 15:57:21 +02:00
Ken Arroyo Ohori
c9267d7ace
Fixed orientation bug in tapered extrusions
2017-03-30 21:11:05 -06:00
Ken Arroyo Ohori
4a340027bf
IfcExtrudedAreaSolidTapered (with problems?)
2017-03-30 20:12:23 -06:00
Ken Arroyo Ohori
612f8f36db
Merge pull request #14 from kenohori/cgal
...
Bugfixes + some validation code when creating New polyhedra
2017-03-30 19:16:48 -06:00
Ken Arroyo Ohori
c1887f3f1f
And the rest
2017-03-30 19:16:11 -06:00
Ken Arroyo Ohori
71ad7dd4bc
Forgot one line
2017-03-30 19:06:47 -06:00
Ken Arroyo Ohori
ed9676ed38
Squashed some bugs
2017-03-30 19:04:39 -06:00
Ken Arroyo Ohori
a6195290f5
Merge pull request #13 from kenohori/cgal
...
Move shapes back to Polyhedron_3, more IFC entities supported, bugfixes
2017-03-23 20:33:52 -06:00
Ken Arroyo Ohori
583c334802
Removed sphere radius at some point
2017-03-23 20:31:41 -06:00
Ken Arroyo Ohori
f8f4db72ec
IfcDerivedProfileDef
2017-03-23 20:25:54 -06:00
Ken Arroyo Ohori
dd206a2a52
A few more simple IFC classes to fill in things
2017-03-23 20:20:43 -06:00
Ken Arroyo Ohori
12967790ba
Switched back to Polyhedron_3 for shapes. Should be checked.
2017-03-23 19:49:15 -06:00
Ken Arroyo Ohori
d0b71a2e57
Merge pull request #12 from kenohori/cgal
...
Reorganisation, export of non-simple New polyhedra, (very slow) solution to create open meshes
2017-03-20 20:59:19 -06:00
Ken Arroyo Ohori
4061f93560
Export non-simple Nef too
2017-03-20 20:57:17 -06:00
Ken Arroyo Ohori
71d7bbd6ba
Ordering things…
2017-03-20 20:06:48 -06:00
Ken Arroyo Ohori
62ca6f6a7d
Checked shapes with styles. Found bug?
2017-03-20 16:45:27 -06:00
Ken Arroyo Ohori
8090bb4c00
Shapes with styles in separate file
2017-03-20 16:35:14 -06:00
Ken Arroyo Ohori
cf6bd5a629
Enabled missing Cartesian transformations
2017-03-20 16:31:06 -06:00
Ken Arroyo Ohori
cf9605f108
Missing Shapes, support for voids
2017-03-20 15:56:31 -06:00
Ken Arroyo Ohori
507d4778fa
Merge pull request #11 from kenohori/cgal
...
Bugfixes in placements, half space solids and validation code
2017-03-17 19:27:34 -06:00
Ken Arroyo Ohori
95e6c14f39
Hack to solve issues with IfcHalfSpaceSolid. Not ideal.
2017-03-17 19:24:51 -06:00
Ken Arroyo Ohori
2bbe80fd28
Problems with extended kernel experiment, but this should be incorporated in any case
2017-03-17 16:12:24 -06:00
Ken Arroyo Ohori
0ffa633a6d
Better validation
2017-03-16 19:30:39 -06:00
Ken Arroyo Ohori
30e88210b2
Simplified code by moving Nef creation outside
2017-03-16 19:20:41 -06:00
Ken Arroyo Ohori
98ce04ed64
Fix logic of transformations
2017-03-16 18:44:25 -06:00
Ken Arroyo Ohori
d2aef0fcbd
2D Cartesian transformations (untested)
2017-03-13 22:32:12 -06:00
Ken Arroyo Ohori
38cbdbc0f4
Correct way to create trimmed parametric curves?
2017-03-13 20:22:19 -06:00
Ken Arroyo Ohori
83689a1cec
Merge pull request #10 from kenohori/cgal
...
Basic support for (trimmed) curves
2017-03-13 19:29:20 -06:00
Ken Arroyo Ohori
81cb7f379e
Ignore output files in /test/
2017-03-13 19:26:54 -06:00
Ken Arroyo Ohori
7d16b725a3
IfcTrimmedCurve. Needs projection to closest point in curve?
2017-03-13 19:08:50 -06:00
Ken Arroyo Ohori
54331062c3
Basic curve types
2017-03-13 19:08:23 -06:00
Ken Arroyo Ohori
4419331710
Merge pull request #9 from kenohori/cgal
...
Fix issue with opening placements
2017-03-10 18:29:01 -06:00
Ken Arroyo Ohori
81a33309f3
Merge pull request #2 from aothms/cgal
...
Merge pull request #8 from kenohori/cgal
2017-03-10 18:28:17 -06:00
Ken Arroyo Ohori
d02918070d
Remove debug code
2017-03-10 18:26:15 -06:00
Ken Arroyo Ohori
ac7099ab39
Fixed bug with opening placements
2017-03-10 18:21:15 -06:00
Ken Arroyo Ohori
b5e79b2558
Debug code
2017-03-10 17:44:19 -06:00
Ken Arroyo Ohori
b1df91ffd9
Merge pull request #8 from kenohori/cgal
...
More profiles (T, U, Z) and support for openings
2017-03-09 18:45:34 -06:00
Ken Arroyo Ohori
287fb9f0ed
Convert openings and subtract them
2017-03-09 18:42:54 -06:00
Ken Arroyo Ohori
06c10dc4da
Correct plane creation?
2017-03-09 17:04:37 -06:00
Ken Arroyo Ohori
3972727f9d
Z profiles
2017-03-09 16:55:33 -06:00
Ken Arroyo Ohori
3e918180d2
U profiles
2017-03-09 16:46:09 -06:00
Ken Arroyo Ohori
0fbadc2985
T profiles
2017-03-09 16:29:14 -06:00
Ken Arroyo Ohori
8f89498a32
Merge pull request #1 from aothms/cgal
...
Merging back Thomas' latest changes
2017-03-09 09:46:48 -06:00
Thomas Krijnen
7bcd0d0a8d
Apply transformation to IfcExtrudedAreaSolid
2017-03-09 15:35:29 +01:00
Thomas Krijnen
0596827b9d
Fix null pointer access in tesselation of opencascade shape
2017-03-09 15:04:54 +01:00
Thomas Krijnen
619b4fbed5
Fix CGAL library linking on windows, conditional IfcTriangulatedFaceSet based on schema
2017-03-09 12:14:00 +01:00
Ken Arroyo Ohori
deea0f6558
Merge pull request #7 from kenohori/cgal
...
Composite curves, some profiles (C, I, L)
2017-03-08 20:13:33 -06:00
Ken Arroyo Ohori
15e4e1952f
I profiles (untested)
2017-03-08 20:11:45 -06:00
Ken Arroyo Ohori
e922212357
L profiles
2017-03-08 19:55:17 -06:00
Ken Arroyo Ohori
0d36693780
C profiles
2017-03-08 19:38:25 -06:00
Ken Arroyo Ohori
cb7ed51fc6
IfcCartesianTransformationOperator3DnonUniform (untested)
2017-03-07 20:00:32 -06:00
Ken Arroyo Ohori
a3df0556aa
Composite curves
2017-03-07 19:39:59 -06:00
Ken Arroyo Ohori
3f94d4af37
Skeleton for planes+halfspaces. Might be wrong.
2017-03-07 14:30:48 -06:00
Ken Arroyo Ohori
7f96b3a523
Merge pull request #6 from kenohori/cgal
...
Added several types of shapes and profiles
2017-03-07 13:55:15 -06:00
Ken Arroyo Ohori
27d8e86024
Hollow rectangle profiles, all tested now
2017-03-07 13:52:29 -06:00
Ken Arroyo Ohori
66048610e2
Rounded rectangles work now, def must be before rectangles
2017-03-07 13:41:04 -06:00
Ken Arroyo Ohori
31d4de228a
Extrusions with holes (Nef)
2017-03-07 13:18:49 -06:00
Ken Arroyo Ohori
29021d8b06
Hollow circles
2017-03-07 13:04:22 -06:00
Ken Arroyo Ohori
1fb76a9749
Switched to normals per vertex per face
2017-03-07 12:50:06 -06:00
Ken Arroyo Ohori
b299c27473
Switched to Nef_polyhedron_3. Some problems...
2017-03-06 19:28:12 -06:00
Ken Arroyo Ohori
64e385c361
Skeleton for IfcEdgeLoop and IfcOrientedEdge
2017-03-06 17:45:55 -06:00
Ken Arroyo Ohori
27b5fd0fc5
Debug code
2017-03-06 17:29:20 -06:00
Ken Arroyo Ohori
4f5ecee81e
Removing duplicate points, IfcCartesianTransformationOperator3D with problems
2017-03-06 16:03:29 -06:00
Ken Arroyo Ohori
ca19d447cc
Zero-radius rounded rectangles
2017-03-06 15:03:57 -06:00
Ken Arroyo Ohori
484cea968e
IfcTriangulatedFaceSet
2017-03-06 11:41:58 -06:00
Ken Arroyo Ohori
033a2e7482
IfcFaceBasedSurfaceModel
2017-03-06 11:28:57 -06:00
Ken Arroyo Ohori
1d3732aa62
IfcEllipseProfileDef
2017-03-06 11:23:37 -06:00
Ken Arroyo Ohori
584b2e5584
IfcTrapeziumProfileDef
2017-03-06 11:18:51 -06:00
Ken Arroyo Ohori
1bcc369c7a
Rounded rectangles
2017-03-06 11:12:06 -06:00
Ken Arroyo Ohori
64bc8e9d4f
Circular profiles, added missing transformation for rectangles
2017-03-06 10:52:57 -06:00
Ken Arroyo Ohori
b9828b029c
Right way to output more than one object
2017-03-03 15:25:45 -06:00
Ken Arroyo Ohori
749071601e
Merge pull request #5 from aothms/ken_first_steps
...
Reorganised code, Boolean ops seem to work
2017-03-03 13:59:58 -06:00
Ken Arroyo Ohori
bbe0b74f83
Boolean ops working?
2017-03-03 13:56:08 -06:00
Ken Arroyo Ohori
efb8bce25a
Didn’t save sphere output
2017-03-03 13:20:47 -06:00
Ken Arroyo Ohori
c59ae03cb3
Fixed bug in cylinders/cones
2017-03-03 13:12:05 -06:00
Ken Arroyo Ohori
7145b1ae85
Some debugging code, checking transformations
2017-03-03 12:58:52 -06:00
Ken Arroyo Ohori
596c4f8b77
Adding some validation code
2017-03-03 09:58:17 -06:00
Ken Arroyo Ohori
302e7b2db8
IfcRightCircularCone
2017-03-02 18:42:10 -06:00
Ken Arroyo Ohori
bece7053a0
IfcRightCircularCylinder
2017-03-02 18:39:18 -06:00
Ken Arroyo Ohori
82cd4056b7
IfcRectangularPyramid
2017-03-02 18:22:34 -06:00
Ken Arroyo Ohori
6297ff74f1
Boolean ops using Nef polyhedra (untested)
2017-03-02 18:11:11 -06:00
Ken Arroyo Ohori
c9633273a6
Several more classes, needs testing
2017-03-02 17:11:58 -06:00
Ken Arroyo Ohori
2cb53a860d
Entities for basic CSG
2017-03-02 15:09:05 -06:00
Ken Arroyo Ohori
db85bebc1a
Merge branch 'cgal' into ken_first_steps
2017-03-01 17:48:37 -06:00
Ken Arroyo Ohori
57fae25de8
Putting functions into files per geometric type
2017-03-01 17:48:19 -06:00
Thomas Krijnen
451ccd4e21
Merge pull request #4 from aothms/ken_first_steps
...
IfcManifoldSolidBrep and IfcConnectedFaceSet
2017-02-23 13:53:02 +01:00
Ken Arroyo Ohori
b893f5a3f0
Take into account extrusion height
2017-02-22 18:15:27 -06:00
Ken Arroyo Ohori
64eb707996
Fixed issue with transformations?
2017-02-21 18:40:27 -06:00
Ken Arroyo Ohori
c0732f5197
Trying to find out why placements don’t arrive at Triangulate()
2017-02-21 15:37:38 -06:00
Ken Arroyo Ohori
e47d128b18
Brep and swept solid working now
2017-02-20 20:14:49 -06:00
Ken Arroyo Ohori
9d4463b73a
Check for NULL placement
2017-02-13 15:26:06 -06:00
Ken Arroyo Ohori
d9d5f17725
Should be working now
2017-02-13 11:45:17 -06:00
Ken Arroyo Ohori
f4274e4b46
Skeleton for IfcExtrudedAreaSolid
2017-02-13 11:12:04 -06:00
Ken Arroyo Ohori
b463dfe88a
Changed --kernel parameter to --opencascade. Was conflicting with positional options for input.
2017-02-09 14:46:02 -06:00
Ken Arroyo Ohori
44634eb42d
Remove implemented throws, add faces and materials
2017-02-08 17:12:56 -06:00
Ken Arroyo Ohori
1755752ab7
IfcAxis2Placement2D
2017-02-08 16:56:59 -06:00
Ken Arroyo Ohori
7051104bc7
Basic code to output triangulation, something goes wrong when getting materials...
2017-02-08 16:12:19 -06:00
Ken Arroyo Ohori
2894b0cb92
Nothing is a pointer now. Initialisation is easier…
2017-02-07 20:37:47 -06:00
Ken Arroyo Ohori
42b512960b
Filling in most of the placement code. To check.
2017-02-07 20:25:04 -06:00
Ken Arroyo Ohori
96e9c8ecc1
Skeleton for IfcObjectPlacement and IfcAxis2Placement3D
2017-02-07 19:51:16 -06:00
Ken Arroyo Ohori
bae84b6753
Directions as CGAL Vector_3, more robust points
2017-02-07 19:50:51 -06:00
Ken Arroyo Ohori
e1702fc0cf
Return value for transformation, still needs to be initialised somewhere…
2017-02-06 16:22:54 -06:00
Ken Arroyo Ohori
6aff3d0f3d
Conversion result for breps
2017-02-06 16:22:36 -06:00
Thomas Krijnen
6b47e9ca1d
Add GMP MPFR and CGAL include/libs to cmake and build script
2017-02-04 16:38:57 +01:00
Ken Arroyo Ohori
1525cf6bfc
Polyhedra built with the incremental builder, IfcConvert crashes
2017-02-02 14:29:26 -06:00
Ken Arroyo Ohori
5724e1ac34
Face from IfcFace
2017-02-01 17:53:12 -06:00
Ken Arroyo Ohori
f2a45b7057
Fixed pointer bug, wires seem okay now
2017-02-01 15:57:25 -06:00
Ken Arroyo Ohori
233aaeaca2
Points and wires
2017-01-31 19:03:15 -06:00
Ken Arroyo Ohori
9c21e05184
Skeleton reaching all the way up to points, to be filled in
2017-01-31 18:53:00 -06:00
Ken Arroyo Ohori
0821dd4702
Skeleton for IfcManifoldSolidBrep and IfcConnectedFaceSet
2017-01-27 18:40:38 -06:00
Ken Arroyo Ohori
cac9c91c56
Mac metadata
2017-01-27 15:31:37 -06:00
Ken Arroyo Ohori
a4264f3143
Replaced macros, added basic CGAL definitions
2017-01-27 15:31:22 -06:00
Thomas Krijnen
4d12bf7e8d
Cgal kernel skeleton ( #3 )
...
Cgal kernel skeleton
2017-01-16 14:04:31 +01:00
Thomas Krijnen
3958204c1c
Don't build Python wrapper on Travis
2017-01-13 20:51:12 +01:00
Thomas Krijnen
d17f714dc5
Isolate geometry processing code into separate opencascade kernel
2017-01-13 20:51:12 +01:00
Thomas Krijnen
4fa7f293d6
cd to correct repository folder
2017-01-13 18:11:05 +01:00
Thomas Krijnen
7e3f96e410
Add GMP MPFR CGAL to build script
2017-01-09 17:14:49 +01:00
Thomas Krijnen
8018c9cc44
Add GMP MPFR CGAL to build script
2017-01-09 17:14:49 +01:00