hfettig Posted December 11, 2007 Report Share Posted December 11, 2007 Hi Folks,I am trying to programmatically change the Description property of LabView libraries (lvlib) and LabView classes (lvclass) at edit time (to include my copyright).I had no problem changing the property for VIs and controls using property nodes but how do I open a reference to an lvlib or lvclass?I guess I could open the xml as text and change the property there but there must be a more elegant solution.Cheers, HeikoWell, I decided to give it another go and found a solution. Open an Application reference Wire the app ref to an invoke node Select LVClass.Open or Library.Open and wire the path to the invoke node Wire the lvclass/library ref to a property node and select Description Cheers, Heiko Quote Link to comment
MikaelH Posted December 11, 2007 Report Share Posted December 11, 2007 Hi Heiko You start by opening a reference to your project. Them you can drill down an get the reference for a Project Item of your choice. Then you can cast this Project Item to a Library-Project Item, then you can read/write all your properties. Cheers, Mikael Quote Link to comment
hfettig Posted December 12, 2007 Author Report Share Posted December 12, 2007 Thanks, Mikael. I had already figured out something similar but my reply to my own post must have gotten lost somewhere in the ether ;-) You can also open an application reference and then use an invoke node to open a library based on its path. Cheers, Heiko Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.