[SOLVED]Draft.makeSketch not working with these Ellipses

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

[SOLVED]Draft.makeSketch not working with these Ellipses

Post by easyw-fc »

Hi,
what is wrong with this shape?
I cannot obtain a sketch from these ellipses...
this is the error I get:

Code: Select all

import Draft
Draft.makeSketch(FreeCADGui.Selection.getSelection(),autoconstraints=True)
('[Draft.todo.commit] Unexpected error:', <class 'Base.FreeCADError'>, 'in ', <built-in method closeDialog of tuple object at 0x00000158189BA788>, '(', None, ')')
Elly-in-Elly.FCStd
(4.77 KiB) Downloaded 17 times
Strangely I can get the sketch if I downgrade the shape...
Last edited by easyw-fc on Sat May 26, 2018 3:25 pm, edited 1 time in total.
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Draft.makeSketch not working with these Ellipses

Post by yorik »

Ah there was indeed a bug there... It's now fixed with git commit 934603b60
User avatar
easyw-fc
Veteran
Posts: 3633
Joined: Thu Jul 09, 2015 9:34 am

Re: Draft.makeSketch not working with these Ellipses

Post by easyw-fc »

yorik wrote: Fri May 25, 2018 9:48 pm Ah there was indeed a bug there... It's now fixed with git commit 934603b60
thx a lot! :)
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Draft.makeSketch not working with these Ellipses

Post by Kunda1 »

easyw-fc wrote: Fri May 25, 2018 9:54 pm
yorik wrote: Fri May 25, 2018 9:48 pm Ah there was indeed a bug there... It's now fixed with git commit 934603b60
thx a lot! :)
Please mark topic [Fixed]
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
chrisb
Veteran
Posts: 54293
Joined: Tue Mar 17, 2015 9:14 am

Re: Draft.makeSketch not working with these Ellipses

Post by chrisb »

Or [solved], which is the text you should prepend to the subject of your first post.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply