New Layer -> NameError: name 'Draft' is not defined

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
Markymark
Posts: 228
Joined: Sun Nov 03, 2019 4:54 pm

New Layer -> NameError: name 'Draft' is not defined

Post by Markymark »

After adding a new layer (actually the first layer) I get the following message after pushing <OK> with an otherwise empty document:

Code: Select all

10:34:35  Traceback (most recent call last):
10:34:35    File "C:\Users\ADMIN\AppData\Roaming\FreeCAD\Mod\BIM\BimLayers.py", line 134, in accept
10:34:35      obj = Draft.makeLayer()
10:34:35  NameError: name 'Draft' is not defined
Latest build. Everything else is fine. Nothing found on the forum so far.

Rgrds, m.
____________________________
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22266 (Git)
Build type: Release
Branch: master
Hash: 1a6bbf8127e8957f64dec5d6d37710542f2a6c83
Python version: 3.8.5
Qt version: 5.12.5
Coin version: 4.0.0
OCC version: 7.4.0
Locale: German/Germany (de_DE)
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: New Layer -> NameError: name 'Draft' is not defined

Post by Roy_043 »

Confirmed (BIM_Layers).
User avatar
Markymark
Posts: 228
Joined: Sun Nov 03, 2019 4:54 pm

Re: New Layer -> NameError: name 'Draft' is not defined

Post by Markymark »

Appreciated!!!
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: New Layer -> NameError: name 'Draft' is not defined

Post by vocx »

Markymark wrote: Sat Aug 22, 2020 8:38 am After adding a new layer (actually the first layer) I get the following message after pushing <OK> with an otherwise empty document:
Pending pull request #57.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
User avatar
Markymark
Posts: 228
Joined: Sun Nov 03, 2019 4:54 pm

Re: New Layer -> NameError: name 'Draft' is not defined

Post by Markymark »

OK, thanks for letting us know. I searched the forum before but could not find any reference. Maybe searching the issues tracker, too before posting is a good idea anyway.

VG m.
vocx
Veteran
Posts: 5197
Joined: Thu Oct 18, 2018 9:18 pm

Re: New Layer -> NameError: name 'Draft' is not defined

Post by vocx »

Markymark wrote: Sun Aug 23, 2020 5:35 am ...Maybe searching the issues tracker, too before posting is a good idea anyway.
This issue was reported about a month ago, and I submitted the fix the same day; for quick fixes like this one you will rarely see a tracker issue because the problem is taken care of quickly. Unfortunately it hasn't been merged.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Post Reply