Book a Demo

Author Topic: Element appearance + selectable  (Read 5152 times)

RainerQ

  • EA User
  • **
  • Posts: 122
  • Karma: +1/-0
    • View Profile
Element appearance + selectable
« on: November 05, 2010, 11:25:32 pm »
Hi,

I would like to modify the Font (Appearance->SetFont) of a boundary element and I also would like to set this boundary to "not selectable".

How can this be done?
Note : I already have the element instance in my code available.

Regards
Rainer
« Last Edit: November 05, 2010, 11:26:36 pm by RQ »

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Element appearance + selectable
« Reply #1 on: November 06, 2010, 02:27:09 pm »
HI Rainer,

to get non-selectability, you need to add/merge
Code: [Select]
NSL=1; to the object.Style attribute.

HTH.
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

RainerQ

  • EA User
  • **
  • Posts: 122
  • Karma: +1/-0
    • View Profile
Re: Element appearance + selectable
« Reply #2 on: November 06, 2010, 06:45:44 pm »
Hi Paolo,

thanks, NSL=1; works nicely. Now I only need to know how to set the Font.

Regards
Rainer

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Element appearance + selectable
« Reply #3 on: November 08, 2010, 05:31:51 pm »
Rainer,

I don't know how to set the font, but here's how I would try to figure out.
- Create a new empty model
- Create and element with standard font setting and an element with adjusted font.
- Open the database and figure out what the difference is between the two elements. In this case I would specifically look at t_object and t_diagramobject. The font will probably be hidden somewhere in the style columns.

If this doesn't work, a database trace can also help as it shows wich SQL statements are being executed by EA when you change the font.

Geert

RainerQ

  • EA User
  • **
  • Posts: 122
  • Karma: +1/-0
    • View Profile
Re: Element appearance + selectable
« Reply #4 on: November 08, 2010, 08:12:22 pm »
Hi Geert,

thanks for your suggestions. I also thought about this way, but was still hoping for a easier solution ;-)

I guess I will walk on this path when I am done with my other tasks and have not received a easier solution ...

Regards
Rainer

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Element appearance + selectable
« Reply #5 on: November 09, 2010, 08:52:46 am »
Quote
In this case I would specifically look at t_object and t_diagramobject. The font will probably be hidden somewhere in the style columns.
Correct. Specifically, t_diagramobjects.ObjectStyle and t_object.Fontcolor
The Sparx Team
[email protected]

RainerQ

  • EA User
  • **
  • Posts: 122
  • Karma: +1/-0
    • View Profile
Re: Element appearance + selectable
« Reply #6 on: November 09, 2010, 08:29:11 pm »
Geert, KP,

I walked this path and it now works fine.

Thanks for your help!

Regards
Rainer