Book a Demo

Author Topic: Getting Appearance Details From Objects  (Read 2869 times)

MacRunfast

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Getting Appearance Details From Objects
« on: December 02, 2008, 02:31:33 am »
Hi there
I am working on an add-in for my company to use. It involves changing the color of certain objects in the EA project but it must only be temporary. I am done with everything and it is all working fine except that I cant get the objects to change back to their original color other than a default color. The color I am working with is the background color. Is there anyway to get the background color of an object? I can only find ways to set the color and not get it  :-/ What methods and EA objects do I use to get this right? I only know of ways to set the background color using EA.Element.setAppearance and EA.DiagramObject.Style.
Thanks for any help you can give.

[email protected]

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Getting Appearance Details From Objects
« Reply #1 on: December 03, 2008, 02:04:58 am »
It seems that i am working on a similar application.
I also want to temporarily mark modified components with a color. Could you be so kind and send me your code line where you call the elements SetAppearance Method. How to define the Color Parameter?
Setting a default color is sufficient for me but i would also be interrested in a GetAppearance Method.
Thanks in advance.

MacRunfast

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Getting Appearance Details From Objects
« Reply #2 on: December 03, 2008, 03:50:52 am »
K, I have mailed my very lengthy explanation to you :P