LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Class Properties Dialog Box - Wire Pict Ring - Location?

Solved!
Go to solution

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.

0 Kudos
Message 1 of 13
(2,883 Views)
Solution
Accepted by topic author Be-lock-eh

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.

Message 2 of 13
(2,862 Views)

I don't know if sign-up is still open, but you might also consider trying to get into the LabVIEW 2020 beta.

I can't discuss it here, but you might find something more there.


GCentral
Message 3 of 13
(2,848 Views)

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.

Certified LabVIEW Architect
Message 4 of 13
(2,823 Views)

Here

"If you weren't supposed to push it, it wouldn't be a button."
Message 5 of 13
(2,806 Views)

@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.

Message 6 of 13
(2,802 Views)
Solution
Accepted by topic author Be-lock-eh

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.

Message 7 of 13
(2,798 Views)

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.

0 Kudos
Message 8 of 13
(2,745 Views)

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!

0 Kudos
Message 9 of 13
(2,744 Views)

I just finished this.

"If you weren't supposed to push it, it wouldn't be a button."
Message 10 of 13
(2,715 Views)