06-05-2006 02:52 PM - edited 06-05-2006 02:52 PM
Message Edited by Tomi M on 06-05-2006 10:58 PM
06-05-2006 03:01 PM
Knowing what a "Xnode" is puts you out of my league.
I have played games with doing stategic renaming etc.
You probably know the game already.
1) Everything closed.
2) Open a typdef of a control.
3) Edit the control the way you like it.
4) OPen the VI's that use the typedef.
5) Save the typedef as a new name.
6) Save the caller as new name (from the bottom up).
Lather rinse repeat.
Ben
06-05-2006 03:50 PM - edited 06-05-2006 03:50 PM
Message Edited by Tomi M on 06-05-2006 11:53 PM
06-05-2006 06:45 PM
I'm not quite sure if I'm not distracting you with something that does not work.
This time slowwer with more words.
1) Collect a bunch of typef'd controls in a folder.
2) Create a VI (VIT) that uses a typedef'd input where the said control is just a typical control with name A..ctl.
3) Write code that does the folowing.
4) Get list off ctl in folder from step 1.
5) Open 1st ctl in folder and do a "save as" "A.ctl" over top of where "A.ctl" (from step 2) was.
6) OPen the VI (VIT) (from step 2). It will see the typdef'd control as "A.ctl".
7) Open a ref to the typedef'd control and do a "save as' to a llb as "Version1.ctl"
😎 Do a "save as" on the VI(VIT) into your llb as "Version1.VI". The VI in the LLB is now pointing a "Version1.ctl"
9) Close the VI (VIT) without saving.
10) Repeat 5-9 for all controls found in the folder.
When the VI si done, you should have a complete set a VI's all pointing at their own ".ctl".
Ben
11-08-2009 07:43 AM
Ben -
step 7, I cannot find a method to do a 'save as' on the control (typedef)
please see the attached jpg
is there a different way to do this?
otherwise this is very cool thanx
lmd2
11-09-2009 08:05 AM
okay, got it
the control class only exposes the typedef method if the scripting API is installed and activated.
see this post:
http://forums.ni.com/ni/board/message?board.id=170&message.id=454252&jump=true
thanx "tst"