Skip to content

Unfold with material_foo problem #398

Closed
@MuratUelker

Description

Unnamed.zip

After last two updates, i get this error if i try to unfold sheetmetal object with material_foo spreadsheet. I get this error from linux, mac and windows.

13:38:48  pyException: Traceback (most recent call last):
  File "/home/red/.local/share/FreeCAD/Mod/sheetmetal/./UnfoldGUI.py", line 210, in accept
    params = self._getData()
             ^^^^^^^^^^^^^^^
  File "/home/red/.local/share/FreeCAD/Mod/sheetmetal/./UnfoldGUI.py", line 142, in _getData
    lookupTable = SheetMetalKfactor.KFactorLookupTable(
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/red/.local/share/FreeCAD/Mod/sheetmetal/./SheetMetalKfactor.py", line 94, in __init__
    key_cell = self.find_cell_by_label(lookup_sheet, "Radius / Thickness")
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/red/.local/share/FreeCAD/Mod/sheetmetal/./SheetMetalKfactor.py", line 132, in find_cell_by_label
    for cell in self.get_cells(sheet):
                ^^^^^^^^^^^^^^^^^^^^^
  File "/home/red/.local/share/FreeCAD/Mod/sheetmetal/./SheetMetalKfactor.py", line 123, in get_cells
    return sorted(filter(self.cell_regex.search, sheet.PropertiesList))
                                                 ^^^^^^^^^^^^^^^^^^^^
<class 'AttributeError'>: 'str' object has no attribute 'PropertiesList'

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions