Ondsel-Development / FreeCAD

This is the official source code of FreeCAD, a free and opensource multiplatform 3D parametric modeler.
https://www.freecad.org
Other
192 stars 8 forks source link

SheetMetal: 'NoneType' object has no attribute 'normalize' #67

Open andreymrt opened 5 months ago

andreymrt commented 5 months ago

Is there an existing issue for this?

Problem description

Modifying earlier step in sheet metal part fails later step with " 'NoneType' object has no attribute 'normalize'"

Unchecking the "Auto Miter" on a prior step throws exceptions in later step. Gut feeling is that sheet metal might be missing some of the topo naming updates.

https://github.com/Ondsel-Development/FreeCAD/assets/1222366/cd2323d3-c069-4026-9d73-a9cbb5ba363d

11:34:32  pyException: Traceback (most recent call last):
  File "C:\Users\Andrey\Downloads\circuit\Ondsel_ES_2024.2.1.37226-Windows-x86_64\Mod\sheetmetal\.\SheetMetalCmd.py", line 1453, in execute
    thk, thkDir = sheet_thk(Main_Object, face[0])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Andrey\Downloads\circuit\Ondsel_ES_2024.2.1.37226-Windows-x86_64\Mod\sheetmetal\.\SheetMetalCmd.py", line 363, in sheet_thk
    thkDir.normalize()
    ^^^^^^^^^^^^^^^^
<class 'AttributeError'>: 'NoneType' object has no attribute 'normalize'
11:34:32  Bend001: 'NoneType' object has no attribute 'normalize'
11:34:34  pyException: Traceback (most recent call last):
  File "C:\Users\Andrey\Downloads\circuit\Ondsel_ES_2024.2.1.37226-Windows-x86_64\Mod\sheetmetal\.\SheetMetalCmd.py", line 1453, in execute
    thk, thkDir = sheet_thk(Main_Object, face[0])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Andrey\Downloads\circuit\Ondsel_ES_2024.2.1.37226-Windows-x86_64\Mod\sheetmetal\.\SheetMetalCmd.py", line 363, in sheet_thk
    thkDir.normalize()
    ^^^^^^^^^^^^^^^^
<class 'AttributeError'>: 'NoneType' object has no attribute 'normalize'
11:34:34  Bend001: 'NoneType' object has no attribute 'normalize'
11:34:40  pyException: Traceback (most recent call last):
  File "C:\Users\Andrey\Downloads\circuit\Ondsel_ES_2024.2.1.37226-Windows-x86_64\Mod\sheetmetal\.\SheetMetalCmd.py", line 1453, in execute
    thk, thkDir = sheet_thk(Main_Object, face[0])
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Andrey\Downloads\circuit\Ondsel_ES_2024.2.1.37226-Windows-x86_64\Mod\sheetmetal\.\SheetMetalCmd.py", line 363, in sheet_thk
    thkDir.normalize()
    ^^^^^^^^^^^^^^^^
<class 'AttributeError'>: 'NoneType' object has no attribute 'normalize'
11:34:40  Bend001: 'NoneType' object has no attribute 'normalize'

Full version info

OS: Windows 10 build 19045
Word size of Ondsel: 64-bit
Version: 2024.2.1.37226 (Git)
Build type: Release
Branch: (HEAD detached at 2024.2.1)
Hash: 1a1bd7290494aef925a026c87b808ac58d53c3b0
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)
Installed mods: 
  * Ondsel-Lens 2024.5.6.01

Subproject(s) affected?

None

Anything else?

No response

Code of Conduct