Recent Posts

Pages: 1 [2] 3 4 ... 10
11
General Board / Re: Shapescript. Color definition
« Last post by Geert Bellekens on December 15, 2017, 09:25:03 pm »
use something like
Code: [Select]
     if (HasTag ("Trigger", "None"))
     {
               //set color here
     }

Geert
12
Bugs and Issues / Legends on Diagrams - Forgets correct TagedValue
« Last post by Mads Kirstan on December 15, 2017, 09:20:50 pm »
Hi,

On a diagram, I'm using a Legend the Links to a value like: Domain::MyValue.
In the Legend Dialog box it ends up like: TaggedValue.Domain::MyValue
All elements are colored nicely, I exit the diagram happy.

BUT when I reopen the diagram - the colors are gone. When I open the Legend Dialog box the selected value looks like: TaggedValue.Domain
The field MyValue is missing from the Legend definition - there fore no color :-(

I Hope you can fix this.

Kind regards
Mads.
13
General Board / Re: Shapescript. Color definition
« Last post by Alex9329 on December 15, 2017, 09:19:33 pm »
Thanks. Also I have another question. I would like to choose the value of the tagged value of the element and the color of the element should be changed based on the tagged value meaning. How to do it in shape scripts?
14
General Board / Re: Change attribute type menu
« Last post by Geert Bellekens on December 15, 2017, 09:10:40 pm »
but whatever you do, "int" will always be the default  :-X

Geert
15
General Board / Re: Shapescript. Color definition
« Last post by Geert Bellekens on December 15, 2017, 09:09:51 pm »
I'm not sure if it has anything to do with the DrawParentShape() itself. Might be a problem with the archimate shapescript.
As we know these aren't the best written shapescripts ever. (the ones from BPMN are much much better)

Geert
16
General Board / Re: Change attribute type menu
« Last post by qwerty on December 15, 2017, 08:28:57 pm »
Project / Settings / Code Engineering: Select Java (or which is your default language) and add what you need. It will appear in the list.

q.
17
General Board / Re: Change attribute type menu
« Last post by Yoda33 on December 15, 2017, 07:17:38 pm »
Thanks qwerty.
I am really lazy (and a poor typist).
I would really like to extend the menu.
There seem to be a lot of text configuration files under the install directory.
I was hoping to hack one of these.
18
General Board / Re: Change attribute type menu
« Last post by qwerty on December 15, 2017, 07:11:33 pm »
You can just type any text you like. When I add a couple of attributes I just paste the "string" or "String" if that's the name, or type "str" if it's that.

q.
19
General Board / Re: Shapescript. Color definition
« Last post by qwerty on December 15, 2017, 07:09:11 pm »
I guess it might be worth sending a bug report.

q.
20
General Board / Change attribute type menu
« Last post by Yoda33 on December 15, 2017, 07:07:02 pm »
When I add an attribute to an element the type defaults to 'int'.
1. Can I change default to 'string' (or something else)?
2. Can I add extra elementary types (e.g. date, datetime) to the default list?
    (I know I can 'Select type', but that is tedious for common types)

(EA version 13.5)

Thanks.
Pages: 1 [2] 3 4 ... 10