Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Schneider Electric
Community
Community
Notifications
close
  • Categories
  • Forums
  • Knowledge Center
  • Blogs
  • Ideas
  • Events & Webinars
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register

Contact Support

Close

Ask our Experts

Have a question related to our products, solutions or services? Get quick support on community Forums

Email Us

For Community platform-related support, please email us

New Community Ranking System
Our Community ranking system has recently been updated. You may notice changes in user rankings and receive system messages or notifications. If you have questions about how the new ranking works, please refer to the announcement post for more details (click here).

Changing Button Symbol Appearance Based On Current Mimic Name

EcoStruxure Geo SCADA Expert Forum

Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).

Search in

Improve your search experience:

  • Exact phrase → Use quotes " " (e.g., "error 404")
  • Wildcard → Use * for partial words (e.g., build*, *tion)
  • AND / OR → Combine keywords (e.g., login AND error, login OR sign‑in)
  • Keep it short → Use 2–3 relevant words , not full sentences
  • Filters → Narrow results by section (Knowledge Base, Users, Products)
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Select a Country

Please select a country to continue with beta search.

  • Home
  • Schneider Electric Community
  • Remote Operations
  • EcoStruxure Geo SCADA Expert Forum
  • Changing Button Symbol Appearance Based On Current Mimic Name
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
sbeadle
sbeadle Champion
335
AndrewScott
AndrewScott
125
BevanWeiss
BevanWeiss
103
View All

Recommended Forums

  • Remote Operations Forum

  • APC UPS Data Center & Enterprise Solutions Forum

Related Products
product field
Schneider Electric
EcoStruxure™ Geo SCADA Expert

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to EcoStruxure Geo SCADA Expert Forum
Start a Topic
Solved
dahoodman
dahoodman
Explorer

Posted: ‎2020-02-12 09:39 AM . Last Modified: ‎2023-05-03 12:17 AM

0 Likes
5
3584
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-02-12 09:39 AM . Last Modified: ‎2023-05-03 12:17 AM

Changing Button Symbol Appearance Based On Current Mimic Name

I am trying to change the properties of a button symbol based on the mimc that is open. For example, I have 5 menu buttons that open/navigate to other mimics via pick action hyperlink, but I want Button 1 to be yellow or disappear (in the code below) since the mimic that opens, is the one that is currently open. I'm not real handy with VB/Scripting.

 

I have the following in the Mimic Script

 

sub Mimic_Load()
   call ButtonMod()
end sub

 

sub ButtonMod()
   if Mimic.FullName = "SA.Sites.Overview.Communication Statistics Overview L1" then
      btn_Booster1.Visible = False
   else
      btn_Booster1.Visible = True
   end if
end sub

 

 

I know that the fullname property is correct as I've done a MsgBox and returned that name and the error happens at the success point where btn_Booster1.Visible happens. The error I get is "Object required: 'btn_Booster1'". And yes, there is a button symbol on the Mimic and its name is btn_Booster1.

 

Labels
  • Labels:
  • SCADA
  • Scripting
Reply

Link copied. Please paste this link to share this article on your social media post.

  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
BevanWeiss
BevanWeiss
Champion

Posted: ‎2020-02-12 01:08 PM . Last Modified: ‎2020-02-12 01:11 PM

1 Like
3
3570
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-02-12 01:08 PM . Last Modified: ‎2020-02-12 01:11 PM

As @geoffpatton recommends, use the Visible animation for this.

On the animations dialog...

 

It's where other people will expect such animations to be located.

 

 

As for your actual script, I've got a terrible memory for these things and the exact syntax.  But I believe you may have to specify the full path to the object, ie. with the appropriate layer also.

I thought there was an example for this in the help, but maybe it was in the Schneider training material.

 

I found it 🙂

 

file:///C:/ProgramData/Schneider%20Electric/ClearSCADA/Help_en-US/Content/ScriptingGuide/Mimic.Layers.htm%3FTocPath%3DCore%2520Reference%7CCoding%7CScripting%7CMimic%2520Functions%2520and%2520Properties%7CMimic%2520Properties%7CMimic.Layers%7C_____0

 

hmm... it seems copying the shortcut, or trying to Open in new Window with GeoSCADA help doesn't work...

You want the scripting section, and then Mimic Properties, and then Mimic.Layers

Core Reference > Coding > Scripting > Mimic.Layers

 

So you should be doing

Mimic.Layers("{NAME OF LAYER HERE}").Item("{NAME OF ITEM HERE"}).Visible = False

 

I just tested it.. and now I've lost a good button...


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

geoffpatton
geoffpatton
Leader

Posted: ‎2020-02-12 01:11 PM

In response to BevanWeiss
0 Likes
0
3566
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-02-12 01:11 PM

Oh duh, I was thinking of writing to a database object.

 

Something like this

 

Mimic.Layers("Graphical").Item("ForcePoll").Visible = True

See Answer In Context

Reply

Link copied. Please paste this link to share this article on your social media post.

Replies 5
geoffpatton
geoffpatton
Leader

Posted: ‎2020-02-12 12:45 PM

0 Likes
0
3573
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-02-12 12:45 PM

I would just use the Animations for Color and Visible and not a script.

 

But to answer your question you want 

 

btn_Booster1.Visible, False

Reply

Link copied. Please paste this link to share this article on your social media post.

BevanWeiss
BevanWeiss
Champion

Posted: ‎2020-02-12 01:08 PM . Last Modified: ‎2020-02-12 01:11 PM

1 Like
3
3571
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-02-12 01:08 PM . Last Modified: ‎2020-02-12 01:11 PM

As @geoffpatton recommends, use the Visible animation for this.

On the animations dialog...

 

It's where other people will expect such animations to be located.

 

 

As for your actual script, I've got a terrible memory for these things and the exact syntax.  But I believe you may have to specify the full path to the object, ie. with the appropriate layer also.

I thought there was an example for this in the help, but maybe it was in the Schneider training material.

 

I found it 🙂

 

file:///C:/ProgramData/Schneider%20Electric/ClearSCADA/Help_en-US/Content/ScriptingGuide/Mimic.Layers.htm%3FTocPath%3DCore%2520Reference%7CCoding%7CScripting%7CMimic%2520Functions%2520and%2520Properties%7CMimic%2520Properties%7CMimic.Layers%7C_____0

 

hmm... it seems copying the shortcut, or trying to Open in new Window with GeoSCADA help doesn't work...

You want the scripting section, and then Mimic Properties, and then Mimic.Layers

Core Reference > Coding > Scripting > Mimic.Layers

 

So you should be doing

Mimic.Layers("{NAME OF LAYER HERE}").Item("{NAME OF ITEM HERE"}).Visible = False

 

I just tested it.. and now I've lost a good button...


Lead Control Systems Engineer for Alliance Automation (VIC).
All opinions are my own and do not represent the opinions or policies of my employer, or of my cat..
Reply

Link copied. Please paste this link to share this article on your social media post.

geoffpatton
geoffpatton
Leader

Posted: ‎2020-02-12 01:11 PM

In response to BevanWeiss
0 Likes
0
3567
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-02-12 01:11 PM

Oh duh, I was thinking of writing to a database object.

 

Something like this

 

Mimic.Layers("Graphical").Item("ForcePoll").Visible = True

Reply

Link copied. Please paste this link to share this article on your social media post.

dahoodman
dahoodman
Explorer

Posted: ‎2020-02-12 01:20 PM

In response to BevanWeiss
0 Likes
0
3557
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-02-12 01:20 PM

Thanks! That worked wonderfully!

Reply

Link copied. Please paste this link to share this article on your social media post.

dahoodman
dahoodman
Explorer

Posted: ‎2020-02-12 01:20 PM

In response to BevanWeiss
0 Likes
0
3556
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

Posted: ‎2020-02-12 01:20 PM

Thanks! That worked wonderfully!

Reply

Link copied. Please paste this link to share this article on your social media post.

Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 

You’ve reached the end of your document

WHAT’S NEXT?

Ask our Experts

Didn't find what you are looking for? Ask our experts!

My Dashboard

Check out the new Feeds and activities that are relevant to you.

To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support

    Ask our Experts

    Have a question related to our products, solutions or services? Get quick support on community Forums

    Email Us

    For Community platform-related support, please email us

Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2026 Schneider Electric

Welcome!

Welcome to your new personalized space.

of

Explore