I am trying to do a simple step that causes an error in FCAD v 0.19.24267 but no error when I try in Fcad v 0.18. FCad v0.19 file attached.
The error is caused when I try to convert a Wire into a BSpline in DRAFT Wb.
Error in Report View:
13:24:47 Running the Python command 'Draft_WireToBSpline' failed:
Traceback (most recent call last):
File "C:\Program Files\FreeCAD 0.19\Mod\Draft\draftguitools\gui_wire2spline.py", line 79, in Activated
super(WireToBSpline, self).Activated(name=translate("draft","Convert polyline/B-spline"))
File "C:\Program Files\FreeCAD 0.19\Mod\Draft\draftguitools\gui_base_original.py", line 117, in Activated
App.activeDraftCommand.finish()
File "C:\Program Files\FreeCAD 0.19\Mod\Draft\draftguitools\gui_splines.py", line 163, in finish
old = self.obj.Name
Cannot access attribute 'Name' of deleted objectTraceback (most recent call last):
File "C:\Program Files\FreeCAD 0.19\Mod\Draft\draftutils\todo.py", line 141, in doTasks
f()
TypeError: _removeSwitch() missing 1 required positional argument: 'switch'
13:24:47 ToDo.doTasks, Unexpected error:
<class 'TypeError'>
in <bound method Tracker._removeSwitch of <draftguitools.gui_trackers.bsplineTracker object at 0x0000020B407ABBE0>>(None)
All advice is appreciated. Thx.
----------------------------------------------
OS: Windows 10 Version 2004
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +148 (Git)
Build type: Release
Branch: Branch_0.19.4
Hash: 476ecf091941bead59b14e44afa6064d5a66afa3
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.3
Locale: English/United States (en_US)
[solved] Draft WB Wire to BSpline causes TypeError _removeSwitch()
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
- miniellipse
- Posts: 101
- Joined: Tue Apr 24, 2018 9:09 pm
[solved] Draft WB Wire to BSpline causes TypeError _removeSwitch()
- Attachments
-
- freecad_error_draftguitools.FCStd
- (9.7 KiB) Downloaded 25 times
Last edited by miniellipse on Tue Mar 22, 2022 8:47 pm, edited 1 time in total.
Re: Draft WB Wire to BSpline causes TypeError _removeSwitch()
No such error in 0.20, try with dev version.
Code: Select all
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.28193 (Git)
Build type: Release
Python 3.8.12, Qt 5.12.9, Coin 4.0.0, OCC 7.5.3
- miniellipse
- Posts: 101
- Joined: Tue Apr 24, 2018 9:09 pm
[solved] Re: Draft WB Wire to BSpline causes TypeError _removeSwitch()
Sorry to bother you all. But I solved with a clean re-install of 19.4