Showing results 1 to 2 of 2

Thread: change Linecolor or Fillcolor of a status defination (representationpropertie) with VBA

  1. #1
    Join Date

    Default change Linecolor or Fillcolor of a status defination (representationpropertie) with VBA


    Is it possible to change the Fillcolor or LineColor of a Status definition via VBA.

    We have some baytype symbols and the onlything what is different is the color. (10kV/25kV150kV) each voltage have own color.
    My Idea is to reduce the number of symbols. The color will be changed (VBA) when the display is called. for example one display for 50kV one for 25kV
    The line colors is no problem we can export the color property. but with representation of symbol from library it looks that it is not possible.

    any ideas ??

    Thanks in advance

  2. #2
    Join Date

    Default AW: change Linecolor or Fillcolor of a status defination (representationpropertie) with VBA

    I would suggest to do this another way. Create an internal variable 'Voltage' UINT or something. Create a Rema for this variable that has the different colors needed (e.g. 10=yellow, 25=orange ...) and use this variable in the symbols as dynamic color variable. Then you only have to set this variable to the right value when switching to a picture. This can be done without the use of VBA.

Similar Threads

  1. How to change? VBA code -> c# code
    By backjahyun in forum VSTA
    Replies: 1
    Last Post: 22nd March 2016, 07:46
  2. RGM - VBA - ".Save" / ".Read" - change recipe status
    By markclemens in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 12
    Last Post: 29th September 2014, 12:25
  3. How to change ComboBox Entires with VBA
    By matthias.zoellner in forum VBA
    Replies: 8
    Last Post: 8th June 2011, 10:34
  4. Change RtFunctions parameters in VBA
    By kicker in forum VBA
    Replies: 1
    Last Post: 17th February 2010, 11:05
  5. Change variable status
    By brada in forum VBA
    Replies: 5
    Last Post: 13th February 2008, 17:55

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts