Python Error: Expected Document, Got Document

Seems that I am inputting the right element (document). Has anybody else seen this issue?

image

image

UnwrapElement maybe?

1 Like

Are you using the current document only? If so, I would define this in python by…

doc = DocumentManager.Instance.CurrentDBDocument

And this would be written just below where you import the document manager.

2 Likes

Yes I am. I am just getting into Phython and learning the ropes.

I am modifying a snippet taken from a node that was accessing LInked Docs.

I had a feeling that there was a different way to call up the current doc I will test this and let you know, but I am pretty sure you just answered my quesiton!

Right On Daniel! That worked…

Thank both of you for your responses!

You’re welcome! :blush:

Glad you got your problem solved! I suggest editing your post title to “Python Error: Expected Document, Got Document” so it will show up in search results if someone has the same issue in the future :slight_smile:

5 Likes

done deal!

1 Like