Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BIM: error in BIM workbench for "Number format=Operating system" in General Preferences Settings #14208

Closed
2 tasks done
balrobs opened this issue May 22, 2024 · 1 comment · Fixed by #14229
Closed
2 tasks done
Labels
Bug This issue or PR is related to a bug File format: IFC WB BIM Related to the BIM/Arch Workbench

Comments

@balrobs
Copy link
Contributor

balrobs commented May 22, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

Steps to reproduce:

  1. start FreeCAD
  2. goto Edit\Preferences...\General\Language and number format and set Language=English, Number format=Operating system
  3. open an IFC-file with the comand File\Open... e.g. this one my_Test.ifc.txt
  4. use the option Locked (IFC objects only)
  5. change from Part Design workbench to BIM workbench
  6. notice following error:
15:22:18  Imported my_Test.ifc ( 0.0 Mb ) in 00:00
15:22:31  Traceback (most recent call last):
15:22:31    File "C:\Program Files\FreeCAD_weekly-builds-37436-conda-Windows-x86_64-py311\Mod\BIM\bimcommands\BimViews.py", line 183, in update
15:22:31      building, _ = getTreeViewItem(obj)
15:22:31                    ^^^^^^^^^^^^^^^^^^^^
15:22:31    File "C:\Program Files\FreeCAD_weekly-builds-37436-conda-Windows-x86_64-py311\Mod\BIM\bimcommands\BimViews.py", line 445, in getTreeViewItem
15:22:31      lvH = round(float(lvHStr.split(" ")[0]), 2)
15:22:31                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
15:22:31  ValueError: could not convert string to float: '0,00'

Steps to bypass error:

  1. as before
  2. goto Edit\Preferences...\General\Language and number format and set Language=English, Number format=Selected language
  3. as before
  4. as before
  5. as before
  6. this time no error

Full version info

OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.37436 (Git)
Build type: Release
Branch: main
Hash: 040502280fc9637fb3aada037523283168b81a02
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: English/United States (en_US) [ OS: German/Germany (de_DE) ]

Subproject(s) affected?

BIM/Arch

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@maxwxyz maxwxyz added Bug This issue or PR is related to a bug WB BIM Related to the BIM/Arch Workbench File format: IFC labels May 22, 2024
@maxwxyz
Copy link
Collaborator

maxwxyz commented May 22, 2024

@yorikvanhavre FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This issue or PR is related to a bug File format: IFC WB BIM Related to the BIM/Arch Workbench
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants