ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scripting: Cast ProjectItem type to VI type

Solved!
Go to solution

I try to access specific properties of VI found in project tree. However, there is no datatype "VI" among sub-types of "ProjectItem". This is a very simplified illustration.

 

171111_t_Forum.png

 

Which type shall I select to access properties of VI type?

 

Thank you

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

In  1000 words equivalency.

Capture1.png

 


"Should be" isn't "Is" -Jay
Message 2 of 4
(2,892 Views)

Thank you Jeff,

 

It was unexpected but exactly what I need.

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

@_Y_ wrote:

Thank you Jeff,

 

It was unexpected but exactly what I need.


Unexpected?  OK that begs the question:  How did Jeff traverse that property tree without even testing it?  Assume: NI wrote minimally obfuscated code to parse the *.lvproj file.  (Assumption validated by inspection)

 

Spoiler

 

Hint: open the project in a web browser and compare solution to file

 


"Should be" isn't "Is" -Jay
0 Kudos
Message 4 of 4
(2,824 Views)