FreeCAD_assembly3 icon indicating copy to clipboard operation
FreeCAD_assembly3 copied to clipboard

'ViewProviderAsmConstraint' object has no attribute 'ViewObject'

Open ceremcem opened this issue 5 years ago • 2 comments

Reproduction

error-torrent

Unhandled Base::Exception caught in GUIApplication::notify.
The error message is: 'ViewProviderAsmConstraint' object has no attribute 'ViewObject'
Traceback (most recent call last):
  File "/opt/FreeCAD/Ext/freecad/asm3/assembly.py", line 267, in claimChildren
    return self.ViewObject.Object.Group
<type 'exceptions.AttributeError'>: 'ViewProviderAsmConstraint' object has no attribute 'ViewObject'

Attachments and Version

Same with #269

ceremcem avatar Aug 16 '19 18:08 ceremcem

I can't reproduce this. Can you please attach a sample file?

realthunder avatar Aug 18 '19 13:08 realthunder

I have a similar error when I try to apply a constraint. assemby3 In the above example I have created 2 parts in part design workbench. Then I made a 3rd file in which I created the assembly. I have linked the bodies of the parts (As and pasgat) to the assembly file and put them in the "parts" folder of the assembly. I have followed this tutorial (but with other parts): https://www.youtube.com/watch?v=Q6pbU2dVCfQ&ab_channel=JokoEngineeringhelp Now, when I try to add a constraint I get the error message. 07:56:42 Traceback (most recent call last): File "/tmp/.mount_FreeCAzXcduO/usr/Mod/asm3/freecad/asm3/assembly.py", line 333, in claimChildren return getattr(self.ViewObject.Object, 'Group', []) <class 'AttributeError'>: 'ViewProviderAsmConstraint' object has no attribute 'ViewObject'

Some additional information: OS: Linux Mint 19.3 (X-Cinnamon/cinnamon) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 2022.709.28846 (Git) AppImage Build type: Release Branch: LinkStage3 Hash: c880c050c5f7601e4bae6740de71500edf2be0c7 Python version: 3.9.13 Qt version: 5.12.9 Coin version: 4.0.1 OCC version: 7.5.3 Locale: Dutch/Netherlands (nl_NL)

The sample files: assembly3test.zip

BePeMee avatar Jul 31 '22 06:07 BePeMee