03-26-2020 06:56 PM
I'm working on a tool to help make creation, adjusting inheritance, editing of class icons, editing of class wires, and saving them all streamlined and fast. I've got most of it done and figured out but I would like to display the class wire on my front panel the same way the "Class Properties Dialog Box" (right click on class>properties pops up this dialog) displays it.
My strategy was to try to find the dialog and see if the block diagram is accessible so I could see what method(s) they're using to convert the class wire property to the pict ring they display. I have been unable to locate this dialog on disk or any of the wire functions. Any help in the right direction would be great. I've already found the icon editor and been using its functions but I just need to get this wire to picture part figured out and would prefer to use the built in NI function if possible.
Solved! Go to Solution.
03-26-2020 07:44 PM
In this folder:
C:\Program Files (x86)\National Instruments\LabVIEW 20xx\resource\Framework\Providers\LVClassLibrary
It's called "libpropPage_WireDesignEditor.vi". However, it's password-protected and doesn't appear to have inputs or outputs.
There are about 10 other files in that same folder that have the word "wire" in them. You could experiment with them to see if you can make your own, as most of them look like subVIs for that dialog.
03-26-2020 09:05 PM
03-27-2020 04:35 AM
In addition to what cbutcher said, there are also some tools out there that does something similar to what you are describing, for example G#. Maybe you want to make a tool of your own but otherwise see if there isn't one out there already that does what you want or almost what you want and help improve that tool.
03-27-2020 12:28 PM
Here
03-27-2020 12:40 PM - edited 03-27-2020 12:42 PM
@Kyle97330 wrote:
In this folder:
C:\Program Files (x86)\National Instruments\LabVIEW 20xx\resource\Framework\Providers\LVClassLibrary
It's called "libpropPage_WireDesignEditor.vi". However, it's password-protected and doesn't appear to have inputs or outputs.
You can still open the VI, right click the ring and select Copy data. Then paste in a VI's front panel, and you have the ring!
EDIT: It's attached.
03-27-2020 12:55 PM - edited 03-27-2020 01:00 PM
So to give a bit more info... It all seems to be done with these VI's:
CLSUIP_GetWirePatternArray.vi (returns an array that is indexed by the ring value)
CLSUIP_WireDesignToControlValues.vi
CLSUIP_ChangeWirePatternAndColor.vi
CLSUIP_DrawWires.vi (generates a preview)
CLSUIP_WireDesignToPens.vi
Then the pens are set with LVClassLibrary.WirePens.
03-29-2020 09:58 PM
You guys all rock! Thanks so much for all the help and suggestions. Have had a busy weekend so haven't had time to look into it yet but I'm sure with all the information you all have given me I'll more than be able to figure it out. I'll try to remember to post back what I did when I finish.
03-29-2020 10:09 PM
Sweet I just messed with a few of those functions listed and the other ones in the directory and this is exactly what I needed. Thanks guys!
03-31-2020 10:35 PM
I just finished this.