10-22-2008 09:21 AM
10-22-2008 04:40 PM - edited 10-22-2008 04:40 PM
If you have documented each control in the 'Description' field, then you can print the documentation for multiple controls at once.
The 'Description' Field is under the 'Documentation' category in the 'Control Properties' dialog.
To print the description field:
Open one of the controls
Go to File->Print...
Then select 'Multiple VIs'
Then add all the controls you want to document.
Follow the instructions in the wizard to specify what you want printed
Then select your Destination as an HTML (other choices are a printer, rich text, or plain text)
Hope this helps!
-Jonathan
10-23-2008 03:02 PM
10-23-2008 03:29 PM
If you have the items in a project then you can get the list of items in the "Dependencies" item and simply get all the items that have .ctl as the extension, which should be controls. You can then export this list of names to a text file.
An example of getting that list of items can be found in this thread.
10-23-2008 03:57 PM - edited 10-23-2008 03:58 PM
Ok, so I think what you want is a way to list all the strict type def, enum, control, strings along with the name/label of said enum.
Since using the print documentation/description doesn't print out the actual value in the enum.
So heres what I came up with....
Attached is a VI that takes in a path to a control, opens a VI reference, grabs the control reference, then outputs an array of enum strings for that control and the control label.
This only works with strict type defs since I am type-casting to an enum(strict) reference, but this should get you started.
So, I'm thinking you can loop through the controls in a folder that are enums and this will give you a string array for each enum.
Hope this helps,
Jonathan
10-23-2008 04:23 PM
malkier--
Wonderful! Exactly what I needed. Thank you all.
kc64