FactoryTalk View SE - Client VBA to return HMI Server Path

andytimc

Member
Join Date
Sep 2016
Location
Pittsburgh, PA
Posts
1
I'm working on some VBA code to place all available trend template names in a combo box from the user to select from. That way they can easily modify the data displayed on ther single trend screen.


I use VBA code to return all the Trend Template FileNames that exist in the HMIServer/Trend Folder. This works great when the Client is running on the Server and I use a hard coded path the the location.

I'd really like to find a way to return the Path of the Server project in VBA. That way when I run a client on another machine the VBA will be able to detect the path and then I can point it to the Trend folder so my combo box continuers to function properly.

Does anyone have any experience doing this?
 
You can use something like this:

strServer = me.application.GetHMIServerComputerName("\AREA")

where AREA is your actual area name. It returns the HMI server name into strServer, which you can then incorporate into a path, something like:

strPath = "\\" & strserver & "\c$\users\public\documents\RSViewSE\HMI Projects\SE\My Project"

or

strPath = "\\" & strserver & "\ftvse\"

The rest of that path is from memory, might not be quite right.
 

Similar Topics

What is the Correct way to move Client files (FactoryTalk View SE)? I have FTVSE Studio installed on a development PC, I created a FTVSE Client...
Replies
6
Views
1,111
Hi, Everyone: I got one project for upgrading desktop PC form window XP to window 10. this PC was running FactoryTalk SE Client application and it...
Replies
5
Views
1,965
Hi Guys, I developed HMI with Resolution of 1920 x 1080 in FactoryTalk View studio SE; and also use same resolution for Client Runtime PC yet...
Replies
0
Views
548
Every since we upgraded FactoryTalk VIew SE to version 13, my Client on my production computer bogs (slows) it down. Everything on the computer...
Replies
5
Views
1,573
Hello sir, Recently one HMI PC failed which FactoryTalk View SE application running. replaced the PC and restored the image and got it up and...
Replies
0
Views
1,295
Back
Top Bottom