Book a Demo

Author Topic: Modify Style of DiagObj of Element type of Note  (Read 4128 times)

Paul@IPA

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Modify Style of DiagObj of Element type of Note
« on: April 22, 2016, 09:24:30 am »
HI All
Currently on 12.0.1210
One of the BA's has come up with a simple process to do HL change impacts - add a note to a diagram and change the border and back ground colour of a diagram object to show impact type and impact magnitude.
They should use a Change element and set the attributes and use hotspot but we are still early in our learning here. - Happy to get a reference on how to do that But not the point of this post

As an exercise for myself in learning automation script I tried the example on this page - http://www.sparxsystems.com.au/enterprise_architect_user_guide/11/automation_and_scripting/diagramobjects.html
It works for Element type of Change but it doesn't work for an Element type of Note

Any ideas

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Modify Style of DiagObj of Element type of Note
« Reply #1 on: April 22, 2016, 12:16:32 pm »
Yes, check the style field before and after the change you intend to do and see what has changed, then make that change in your script.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Modify Style of DiagObj of Element type of Note
« Reply #2 on: April 22, 2016, 05:47:50 pm »
I had no issue coloring a not. Maybe you post a part of your code, so we can spot the error.

q.