Author Topic: Getting current package in Substande Designer Python API  (Read 271 times)

Hello!

I wanted to know if there was an easy way to get the Package of your Current Graph.

I looped through the current properties of "SDPropertyCategory.Annotation" and did not find any labeled "Package" even though there is a field for it in the sidebar of the graph. (Every other field show's up though).
Right now, the only method I found to get a package without having it's path is  ".getUserPackages()" which returns an array of packages, of which I choose a specific one.   

Is there a better way or something I missed in the documentation to get the Package in which the current Graph is located ?

Thanks in advance.