LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Invoke the "Replace With..." method in a LabVIEW Project?

Similar to Antoine CHÂLONS' question on renaming a project item...

Does any know if there is a way to invoke the Replace With... method in a LabVIEW Project?

Antoine's topic's solution only works if the original file exists.

The reason for this is that I want to invoke this method after a SCC transaction which removes the file from disk.

I want to then update the LabVIEW Project to maintain correct linking.

By the way, this seems to be a pain if the item is owned by a Library (but I  have to investigate further) - in case anyones got any comments on that too?

Cheers

-JG

replace.png

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 1 of 15
(7,229 Views)

Nope. Most of the project-level popup items (meaning menu items that can appear on any project item, as opposed to those that are specific to particular item types) do not have scripting support.

0 Kudos
Message 2 of 15
(3,618 Views)

Bugger! But cheers for the reply AQ.

One work around I have found has been to copy the new file to the old location then call Antoine's replace method.

This means the file replaces itself so there is no problem there, then I just delete the file I copied.

Messy, but it seems to work.

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 3 of 15
(3,618 Views)

Right, time for a feature request then!

Let's call it "support for all the project-level popup items (meaning menu items that can  appear on any project item, AND to those that are specific to  particular item types) in the LabVIEW API"

AQ, do you think the LabVIEW Idea Exchange is the best place to request feature regarding the LabVIEW API?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 15
(3,618 Views)

Hey you are reading my mind... I am adding it as we speak!

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 5 of 15
(3,618 Views)
do you think the LabVIEW Idea Exchange is the best place to request feature regarding the LabVIEW API?

I would say that the Idea Exchange is the best place to make any LabVIEW feature request, as the request has a chance to gain a lot of momentum in the LV community.

Chris Bolin
LabVIEW Partner Program, CLA
0 Kudos
Message 6 of 15
(3,618 Views)

Great job!


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 7 of 15
(3,618 Views)

Do you want to do a combined one?

I will pick your brain here.

Are you just after the "Replace With..." method?

Or are you thinking a little larger?

I am thinking requesting that all LabVIEW Project methods be made available.

If you can do it with a Right Click Popup then you should be able to script it?

Thoughts?

Certified LabVIEW Architect * LabVIEW Champion
0 Kudos
Message 8 of 15
(3,618 Views)

Ok.

So I shall stop using the "Product Suggestion Center" when I place a LabVIEW related feature request/suggestion, right?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 9 of 15
(3,618 Views)

Yes, if you think other users care about the suggestion as well, and are willing to make some noise about it on the Idea Exchange

Chris Bolin
LabVIEW Partner Program, CLA
0 Kudos
Message 10 of 15
(3,618 Views)