LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to programmatically remove the reference to a VI within a project...

Big picture of what I'm after is to go through a massive project and remove unused VIs.  I've got a way to programmatically go through and find all unused VIs and can them delete them from my machine.  But I'd like to also remove the reference to them in the project.  Anyone aware of how to go about this?

Thanks!
0 Kudos
Message 1 of 6
(4,019 Views)
 

LV8.5's project explorer introduces a new setting for the folders : Snapshot or Auto-populating. The project will be refreshed automatically according to the content of an auto-populating folder.



The behaviour of a folder is shown by its icon and it is possible to change it at any time.


 

See this document for more details.

 



Message Edité par JB le 02-22-2008 09:11 AM

Download All
0 Kudos
Message 2 of 6
(4,001 Views)
Thanks for the response, JB. 

The way I need to do this, though, is programmatically.  I've found that one of the methods that I can invoke on the ProjectItem is Delete--but am having some problems with it.
0 Kudos
Message 3 of 6
(3,981 Views)
Hi Jim,

I think the point JB was trying to make is that if you make all of your folders auto-populating, the Project Explorer will automatically remove those VIs from your Project view after they are deleted from your hard drive.  Will this not work for you?

What approach are you trying to take and what problems are you having?
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
0 Kudos
Message 4 of 6
(3,964 Views)

Eric_V a écrit:

I think the point JB was trying to make is that if you make all of your folders auto-populating, the Project Explorer will automatically remove those VIs from your Project view after they are deleted from your hard drive.  Will this not work for you?


Yes, this was my point. Please give us more info if this should not solve your problem.
0 Kudos
Message 5 of 6
(3,949 Views)
    Yeah, not quite sure why I was having the difficulty after all.  It's going.  Sorry this has been so vague.  I see now where you were heading with the Auto-populate suggestion.  Thanks for the heads up.
0 Kudos
Message 6 of 6
(3,936 Views)