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
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