Assembly 3 Unable to make nested assembly

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Astro_bob
Posts: 2
Joined: Sat Jun 25, 2022 8:01 pm

Assembly 3 Unable to make nested assembly

Post by Astro_bob »

I am trying to create nested assembly by dragging and dropping one into another. However, I am unable to do that.
I will get this error message:
File "C:\Users\user\AppData\Roaming\FreeCAD\Mod\FreeCAD_assembly3-master\.\freecad\asm3\assembly.py", line 4616, in canDropObjectEx
return partGroup.canDropObject(obj,owner,subname)
<class 'TypeError'>: argument 2 must be App.DocumentObject, not None
TQBHTAc3up.png
TQBHTAc3up.png (12.3 KiB) Viewed 1914 times
I am using FreeCAD 0.2 official, and the problem is happening in both the add-on manager version of Assembly 3 or the manually installed one from github.
I don't know if this is an installation error on my part or a bug
this problem is not present in the FreeCAD Link Branch.
thanks in advance for the help!

my version about information:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.29177 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: 68e337670e227889217652ddac593c93b5e8dc94
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * 3DfindIT 1.2.0
  * 3D_Printing_Tools
  * A2plus 0.4.56a
  * AirPlaneDesign 0.4.0
  * Assembly4
  * BOLTSFC
  * CfdOF 1.17.0
  * Curves 0.4.4
  * DesignSPHysics 0.6.1-2201-31-01
  * dodo
  * drawing_dimensioning
  * fasteners 0.3.45
  * fcgear 1.0.0
  * FreeCAD_assembly3-master 0.11.3
  * Geomatics
  * Launcher
  * Rocket 2.4.1
  * sheetmetal 0.2.49
  * workfeature
  * workfeature.bak
Last edited by Astro_bob on Sat Jun 25, 2022 8:23 pm, edited 1 time in total.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Assembly 3 Unable to make nested assembly

Post by Kunda1 »

Please always add your full About info
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
Astro_bob
Posts: 2
Joined: Sat Jun 25, 2022 8:01 pm

Re: Assembly 3 Unable to make nested assembly

Post by Astro_bob »

Added the About version. Sorry about that.
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: Assembly 3 Unable to make nested assembly

Post by Kunda1 »

Moved to Assembly subforum
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
marioalexis
Posts: 124
Joined: Wed Jun 19, 2019 7:44 pm

Re: Assembly 3 Unable to make nested assembly

Post by marioalexis »

Here I made some changes to ViewProvider.canDropObject and now the function only supports an App.DocumentObject in the owner parameter.
User avatar
freman
Veteran
Posts: 2200
Joined: Tue Nov 27, 2018 10:30 pm

Re: Assembly 3 Unable to make nested assembly

Post by freman »

I'm getting similar problems.
I can drop but while dragging I'm getting loads of red letter errors spamming report panel.

Code: Select all

20:50:42  Traceback (most recent call last):
  File "/home/user/.FreeCAD/Mod/FreeCAD_assembly3/freecad/asm3/assembly.py", line 4722, in canDropObjectEx
    return partGroup.canDropObject(obj,owner,subname)
<class 'TypeError'>: argument 2 must be App.DocumentObject, not None
IMO: the code should remain silent beyond changing the cursor to indicate acceptable targets.

It should not be throwing Tracebacks while I drag over something. Is this expected ?

Thanks.

Code: Select all

OS: Fedora Linux 35 (Thirty Five) (LXQt//usr/share/xsessions/lxqt)
Word size of FreeCAD: 64-bit
Version: 0.21.30418 (Git)
Build type: Release
Branch: master
Hash: 73c586ba52210cf56db2ab76aa192042f5ce71ef
Python 3.10.6, Qt 5.15.2, Coin 4.0.0, Vtk 9.0.3, OCC 7.5.0
Locale: English/United Kingdom (en_GB)
Installed mods: 
  * FreeCAD_Assembly4 0.11.10
  * FreeCAD_assembly3
Attachments
comboview-spam.FCStd
(11.78 KiB) Downloaded 46 times
Post Reply