BUG: activeDocument.dataFile.parentProject.id results in API not implemented

BUG: activeDocument.dataFile.parentProject.id results in API not implemented

lichtzeichenanlage
Advisor Advisor
395 Views
2 Replies
Message 1 of 3

BUG: activeDocument.dataFile.parentProject.id results in API not implemented

lichtzeichenanlage
Advisor
Advisor

I'm trying to get the associated project id of the currently active document. I'm using the apper framework, but this shouldn't matter.

 

If I use this statements to get the project's name, it works just fine:

        ao = AppObjects()
        dummy = ao.app.activeDocument.dataFile.parentProject.name

But if I try to run this statements, it fails with API Function not yet implemented:

        ao = AppObjects()
        dummy = ao.app.activeDocument.dataFile.parentProject.name

Error message:

14-05-2020 14-11-00.png

0 Likes
Accepted solutions (1)
396 Views
2 Replies
Replies (2)
Message 2 of 3

JeromeBriot
Mentor
Mentor
Accepted solution

Hello,

 

I think that this is the same bug as the one reported here: Cannot access ID for Projects and console issues in Spyder

 

Message 3 of 3

lichtzeichenanlage
Advisor
Advisor

Jip. I did a quick search before I've created my post, but haven't found this. Thanks for pointing this out. So I can close this thread, because it looks like it's covered with the ticket UP-31902

0 Likes