From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting: get all Friends in a project

Solved!
Go to solution

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

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 1 of 3
(2,722 Views)
Solution
Accepted by topic author _Y_

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
Message 2 of 3
(2,685 Views)

 

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 3 of 3
(2,667 Views)