LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically Place Instance of Unsaved TypeDef

I can do this manually:

  1. Create a new typedef (a cluster), but don't save it yet.
  2. Place an instance of the unsaved typedef on a block diagram.

How do I script that?

If it's saved, I can place an instance of a typedef on a BD with this:tdc.png

But before it's saved, the path doesn't exist.  How can I place an instance of an unsaved typedef.

 

(So why do I want to do something so odd?  This is part of a utility that (among other things) converts some VIs from an old system to a new system.  The new system requires a typedef'd cluster constant (which is created by the converter).  I want the user to be able to examine the newly created open items, then decide whether or not to save them.)

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 1 of 3
(1,657 Views)

Wouldn't it be just as easy to save them, place them, and then remove/delete if the user didn't accept them?

0 Kudos
Message 2 of 3
(1,598 Views)

@natasftw wrote:

Wouldn't it be just as easy to save them, place them, and then remove/delete if the user didn't accept them?


Of course that's a solution, but I was hoping for something a little cleaner.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 3 of 3
(1,591 Views)