Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object.Parents returns wrong information when multiple links exist to the same document #46

Closed
abetis opened this issue Sep 26, 2020 · 2 comments

Comments

@abetis
Copy link

abetis commented Sep 26, 2020

Hi.
Please see the attached example file:
asm_tuto2.zip

Using Assembly4.
There are 2 "arm" links in the assembly: arm001 and arm2
Expand both arm's entries in the tree view.
Right click on arm001.Body002 in the tree, select "Send to python console".
In the console run "obj.Parents", the result will be:
[(<Part object>, '**arm2.Body002**.'), (<Part object>, 'Body002.')]
Right click on arm2.Body002 in the tree, select "Send to python console".
In the console run "obj.Parents", the result will be:
[(<Part object>, 'arm2.Body002.'), (<Part object>, 'Body002.')]

OS: Ubuntu 18.04.5 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22517 (Git)
Build type: Unknown
Branch: gui-command-enhancements
Hash: 7616153
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)

@abetis
Copy link
Author

abetis commented Sep 26, 2020

Is it related to #42 ?

@realthunder
Copy link
Owner

I'll submit a PR to upstream later. You can manually apply the commit and try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants