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

TypeError in Reinforcement Drawing Dimensioning #217

Open
balrobs opened this issue May 30, 2024 · 2 comments
Open

TypeError in Reinforcement Drawing Dimensioning #217

balrobs opened this issue May 30, 2024 · 2 comments

Comments

@balrobs
Copy link
Contributor

balrobs commented May 30, 2024

After clicking the Finishing-Button in the "Reinforcement Drawing Dimensioning"-dialog I see this error:

09:35:30  Traceback (most recent call last):
09:35:30    File "C:\Users\balrobs\AppData\Roaming\FreeCAD\Mod\Reinforcement\.\ReinforcementDrawing\MainReinforcementDrawingDimensioning.py", line 574, in nextButtonClicked
09:35:30      self.accept()
09:35:30    File "C:\Users\balrobs\AppData\Roaming\FreeCAD\Mod\Reinforcement\.\ReinforcementDrawing\MainReinforcementDrawingDimensioning.py", line 773, in accept
09:35:30      FreeCADGui.doCommand(
09:35:30    File "<string>", line 1, in <module>
09:35:30    File "C:\Users\balrobs\AppData\Roaming\FreeCAD\Mod\Reinforcement\.\ReinforcementDrawing\make_reinforcement_drawing.py", line 293, in makeStructuresReinforcementDrawing
09:35:30      struct_drawing_page_dict[structure] = makeReinforcementDrawing(
09:35:30                                            ^^^^^^^^^^^^^^^^^^^^^^^^^
09:35:30    File "C:\Users\balrobs\AppData\Roaming\FreeCAD\Mod\Reinforcement\.\ReinforcementDrawing\make_reinforcement_drawing.py", line 151, in makeReinforcementDrawing
09:35:30      reinforcement_drawing_page = makeReinforcementDrawingObject(template_file)
09:35:30                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
09:35:30    File "C:\Users\balrobs\AppData\Roaming\FreeCAD\Mod\Reinforcement\.\ReinforcementDrawing\ReinforcementDrawingView.py", line 477, in makeReinforcementDrawingObject
09:35:30      drawing_page.addView(reinforcement_drawing_view)
09:35:30  TypeError: argument 1 must be TechDraw.DrawView, not FeaturePython

OS: Windows 10 build 19045
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.37543 (Git)
Build type: Release
Branch: main
Hash: 3eb45b045cdda9d5bfe11baba2567a1df90f064c
Python 3.11.9, Qt 5.15.13, Coin 4.0.2, Vtk 9.2.6, OCC 7.7.2
Locale: German/Germany (de_DE)
Installed mods:

  • Reinforcement
@balrobs
Copy link
Contributor Author

balrobs commented May 30, 2024

the error can be reproduced with FreeCAD 0.21.2 and FreeCAD 0.21.1 for Windows10

@balrobs
Copy link
Contributor Author

balrobs commented May 31, 2024

with FreeCAD 0.20.2 everything works fine!
beam
so the error must be caused by a change in TechDraw between the versions 0.20.2 and 0.21.
I would like to fix this error so that this feature also works in the latest FreeCAD version, unfortunately I can't get any further with my limited knowledge. Therefore I turn to you, @amrit3701 and @WandererFan because I think you are the ones that can eventually help me.
Thank you in advance for any helpful tips that can bring me further
balrobs

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

No branches or pull requests

1 participant