Obsolete Draft_Drawing does not work. What to do?

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
Roy_043
Veteran
Posts: 8577
Joined: Thu Dec 27, 2018 12:28 pm

Obsolete Draft_Drawing does not work. What to do?

Post by Roy_043 »

The Draft_Drawing command is considered obsolete, but still available.
I have added it to a custom toolbar for testing.

I find that the command is not compatible with the current version of svg.py.
These lines are the cause of the issue:
https://github.com/FreeCAD/FreeCAD/blob ... #L471-L472
After removing them the Draft_Drawing command works again.

But since the command is obsolete you could also remove the command.
User avatar
Roy_043
Veteran
Posts: 8577
Joined: Thu Dec 27, 2018 12:28 pm

Re: Obsolete Draft_Drawing does not work. What to do?

Post by Roy_043 »

3rd option: fix drawingview.py:

After this line:
https://github.com/FreeCAD/FreeCAD/blob ... iew.py#L76
Add:

Code: Select all

        import FreeCAD as App
        obj.Direction = App.Vector(0, 0, 1)
Post Reply