cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Scripting: get all Friends in a project

Solved!
Go to solution
Highlighted

Scripting: get all Friends in a project

I am not so experiences in scripting, please give me a starting acceleration.

 

There is an project including classes and lvlib-s. I need to obtain a table of Friend relationships in the project; i.e. get list of friends for each lvclass and lvlib.

 

So, there should be two steps: 1 - obtaining list of classes and libraries, belonging to the project; 2 - obtaining list of Friends for each found class/library.

 

Unfortunately, I have no idea how to do any of these two and Google does not help.

 

Thank you

0 Kudos
Message 1 of 3
(396 Views)
Solution
Accepted by topic author _Y_
03-19-2017 12:16 AM

Re: Scripting: get all Friends in a project

Once you get the reference to the project you could do something similar to this to find classes and libraries in the project and find their friends.

Find Friends.png

OwnedItems[] will only returns items directly owned by MyComputer so you would probably have to recursively call that to find classes and libraries inside of folders or other libraries.

Matt J
National Instruments | CLA/CTD
You May Not Know
Message 2 of 3
(359 Views)

Re: Scripting: get all Friends in a project

 

0 Kudos
Message 3 of 3
(341 Views)