clone of a group gives an error

A forum dedicated to the Draft, Arch and BIM workbenches development.
User avatar
Posts: 8729
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

clone of a group gives an error

Postby bernd » Tue Jul 09, 2019 6:54 am

- start FreeCAD
- make a new document
- create a group
- select the group
- create a clone

Code: Select all

Running the Python command 'Draft_Clone' failed:
Traceback (most recent call last):
  File "/home/hugo/Documents/dev/freecad/freecadbhb_dev/build/Mod/Draft/", line 4996, in Activated
  File "/home/hugo/Documents/dev/freecad/freecadbhb_dev/build/Mod/Draft/", line 5008, in proceed
  File "<string>", line 1, in <module>
  File "/home/hugo/Documents/dev/freecad/freecadbhb_dev/build/Mod/Draft/", line 2683, in clone
    cl.Placement = obj[0].Placement

'App.DocumentObjectGroup' object has no attribute 'Placement'
Since it seams not possible to make a clone of groups, it should be checked and a error message as a pop up should be printed on FreeCAD GUI

OS: Debian GNU/Linux 10 (buster) (KDE/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17311 (Git)
Build type: Unknown
Branch: master
Hash: 08a7eef9926e2d3b67eec1ec2bee2b989e1c2835
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Switzerland (de_CH)