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

Lattice2 ShapeString doesn't work in FreeCAD 0.22 dev version #89

Open
onekk opened this issue Jun 1, 2024 · 5 comments
Open

Lattice2 ShapeString doesn't work in FreeCAD 0.22 dev version #89

onekk opened this issue Jun 1, 2024 · 5 comments
Labels

Comments

@onekk
Copy link

onekk commented Jun 1, 2024

Hello, there is an issue on the new 0.22 dev version:
here the relevant informations:

Running the Python command 'Lattice2_ShapeString' failed:
Traceback (most recent call last):
  File "/Users/ed/Library/Application Support/FreeCAD/Mod/lattice2/./lattice2ShapeString.py", line 298, in Activated
    CreateLatticeShapeString(name = "Strings")
  File "/Users/ed/Library/Application Support/FreeCAD/Mod/lattice2/./lattice2ShapeString.py", line 273, in CreateLatticeShapeString
    FreeCADGui.doCommand("f = lattice2ShapeString.makeLatticeShapeString(name='"+name+"')")
  File "<string>", line 1, in <module>
  File "/Users/ed/Library/Application Support/FreeCAD/Mod/lattice2/./lattice2ShapeString.py", line 77, in makeLatticeShapeString
    LatticeShapeString(obj)
  File "/Users/ed/Library/Application Support/FreeCAD/Mod/lattice2/./lattice2ShapeString.py", line 106, in __init__
    self.makeFoolObj(obj)
  File "/Users/ed/Library/Application Support/FreeCAD/Mod/lattice2/./lattice2ShapeString.py", line 143, in makeFoolObj
    self.draft_shape_string = _ShapeString(foolObj) 
                              ^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/FreeCAD.app/Contents/Resources/Mod/Draft/draftobjects/shapestring.py", line 48, in __init__
    self.set_properties(obj)
  File "/Applications/FreeCAD.app/Contents/Resources/Mod/Draft/draftobjects/shapestring.py", line 52, in set_properties
    properties = obj.PropertiesList
                 ^^^^^^^^^^^^^^^^^^

'FoolFeatureDocumentObject' object has no attribute 'PropertiesList'

And the FreeCAD forum discussion thread:

https://forum.freecad.org/viewtopic.php?t=88089

Kind Regards

Carlo D.

@DeepSOIC DeepSOIC changed the title Issue in FreeCAD 0.22 dev version Lattice2 ShapeString doesn't work in FreeCAD 0.22 dev version Jun 1, 2024
@DeepSOIC DeepSOIC added the bug label Jun 1, 2024
@Roy-043
Copy link

Roy-043 commented Jun 1, 2024

See this forum post for a possible solution:
https://forum.freecad.org/viewtopic.php?t=88089#p763098

@spkane
Copy link

spkane commented Jul 18, 2024

@DeepSOIC Have you had an opportunity to look at this yet?

I am curious if there are any thoughts about the approach forward and a guesstimated timeline. Thanks!

@DeepSOIC
Copy link
Owner

I have looked at it once, and couldn't knock out a good solution by the time the time slot ended... It is not that involved, but i am having a hard time convincing myself to work on it in spite of all the other stuff i want/have to do.

@jrb0411
Copy link

jrb0411 commented Nov 11, 2024

OS: Windows 11 build 22631
Word size of FreeCAD: 64-bit
Version: 1.0.0RC2.38806 (Git)
Build type: Release
Branch: (HEAD detached at 1.0rc2)
Hash: 3d63fc6c2f665a8d5e6468845a419bcac80756c7
Python 3.11.9, Qt 5.15.13, Coin 4.0.3, Vtk 9.2.6, OCC 7.7.2
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: unset/FreeCAD Classic/Qt default
Installed mods:

  • Curves 0.6.48
  • ExplodedAssembly
  • lattice2 1.0.0
  • Woodworking 0.21.2.33771

ShapeString Error
08:42:37 Running the Python command 'Lattice2_ShapeString' failed:
Traceback (most recent call last):
File "C:\Users*\AppData\Roaming\FreeCAD\Mod\lattice2.\lattice2ShapeString.py", line 298, in Activated
CreateLatticeShapeString(name = "Strings")
File "C:\Users*
\AppData\Roaming\FreeCAD\Mod\lattice2.\lattice2ShapeString.py", line 273, in CreateLatticeShapeString
FreeCADGui.doCommand("f = lattice2ShapeString.makeLatticeShapeString(name='"+name+"')")
File "", line 1, in
File "C:\Users*\AppData\Roaming\FreeCAD\Mod\lattice2.\lattice2ShapeString.py", line 77, in makeLatticeShapeString
LatticeShapeString(obj)
File "C:\Users*
\AppData\Roaming\FreeCAD\Mod\lattice2.\lattice2ShapeString.py", line 106, in init
self.makeFoolObj(obj)
File "C:\Users***\AppData\Roaming\FreeCAD\Mod\lattice2.\lattice2ShapeString.py", line 143, in makeFoolObj
self.draft_shape_string = _ShapeString(foolObj)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\FreeCAD 1.0\Mod\Draft\draftobjects\shapestring.py", line 48, in init
self.set_properties(obj)
File "C:\Program Files\FreeCAD 1.0\Mod\Draft\draftobjects\shapestring.py", line 52, in set_properties
properties = obj.PropertiesList
^^^^^^^^^^^^^^^^^^

'FoolFeatureDocumentObject' object has no attribute 'PropertiesList'

@pyro9
Copy link
Contributor

pyro9 commented Jan 25, 2025

#96 fixes this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants