LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Location in Project

Is there any "property node" argument that allows obtaining location in project, of .ctl, .vi,...?

 

For example:

 

My Computer/Support VIs/Add.vi
My Computer/Type Definition/Add.ctl

locationinproject.png

 

Regards,

0 Kudos
Message 1 of 5
(387 Views)

Hi gomez,

 


@dgd.gomez wrote:

Is there any "property node" argument that allows obtaining location in project, of .ctl, .vi,...?


You can switch the project view to show file locations using <Ctrl-E>.

And there is the menu item "Project->Show Item Paths".

 

Is that good enough or do you want to automate project-related work (using LV scripting)?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(337 Views)

Hi GerdW,

 

Thank you very much for the reply.

 

What we would like to obtain is an array with the location in the project, of .ctl, .vi,... for this, we understand that it is necessary to perform LV scripting, but we do not know which property node can provide this information.

 

That is to say,, just as you can obtain by means of the reference of a .vi, the name, the path,... we would like to obtain the location in the project.

 

Best regards,

0 Kudos
Message 3 of 5
(324 Views)

Something like this? The last type case and indicator is just to show it's a valid reference.

Yamaeda_0-1712653120655.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 5
(298 Views)

I'm not sure what the utility of this is and I don't think there is direct way to get this, but here are a couple of options:

 

  1. Recurse through the hierarchy of the project, similar to what Yamaeda shows, but actually do the recursion.
  2. You might be able to simulate going to the current VI in the project by calling the Application class method UI.Invoke Menu Item and invoking the relevant option from the View menu and then use the project's selected item property to get the specific item and then go up through its owners.

 

If all of this doesn't help, you might want to say what your actual goal is.


___________________
Try to take over the world!
Message 5 of 5
(286 Views)