Accessing FactoryTalk View SE object properties on different screens

phuz

Member
Join Date
Jun 2008
Location
Mohnton, PA
Posts
1,043
Is there a way to access properties of vba-exposed objects on other screens?
For example, if I click a button on screen "MAIN", does SE allow us to make object.visible = false on screen "TEST" ?

I've looked through all the properties/methods, and don't see anything, and nothing is mentioned in the help files.
 
For example, if I click a button on screen "MAIN", does SE allow us to make object.visible = false on screen "TEST" ?
Try this code inside the released event of the button:

Code:
Dim myObject As [COLOR=Red][B]ObjectTypeHere[/B][/COLOR]
Set myObject = Me.Application.LoadedDisplays("TEST").Elements("[COLOR=Red][B]ObjectNameHere[/B][/COLOR]")
myObject.Visible = False
You'd need to add some code to avoid a runtime error if TEST is not displayed or if the object doesn't exist in TEST.
 
Thanks for that. That clears up that one issue, but we discovered another one.
We created a dedicated graphic as a menu bar which resides up top (1920x55). It's display type is "On Top" but when clicking any of the buttons, which load displays, the nav bar disappears. The reason the NAV bar is being done on a separate graphic vs. global displays is for other reasons.
 

Similar Topics

I am trying to access the I/O of a AB CompactLogix PLC within FactoryTalk View using the format such as "Local:1:I.Data.0" instead of using an...
Replies
1
Views
2,400
For the past few day, I have had problems accessing the Rockwell Knowledgebase. When I try to access it (and I do have a TechConnect Support...
Replies
7
Views
370
Hi, Small issue i've really been beating myself up over today. I've been working with Panelview panels for years. Currently working on an older...
Replies
1
Views
575
Dear experts, I have the following setup: CPU-313C (6ES7313-5BF03-0AB0 V2.6) + CP343-1 (6GK7343-1EX30-0XE0 V2.0) communicating with Siemens PC...
Replies
7
Views
2,627
I'm looking to replace an AB PanelView 600 2711-K6C2 HMI with a C-more EA9-T10WCL. The PLC in the system is a SLC 5/03, which is staying. I...
Replies
2
Views
1,230
Back
Top Bottom