Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Simon M

Pages: 1 ... 6 7 [8] 9 10 ... 415
106
Looks like you've set the object default colour, not the diagram local colour. That will be retrieved directly from the Element class.

107
Using the Ribbon - Configure | Model | Transfer | Export/Import Reference Data.

108
EA doesn't include any SCC providers. I don't know anything about Mercurial other than these two threads, so I can't help you with SCC support for it.

109
You would still need an SCC interface.

Incidentally, SCC is a generic "Generic VCS interface" as requested by the last post in that thread. It's a common API that developers can write to wrap their VCS.

110
To explain KP's post...

It is stored in the registry, but the value will be cached by EA, so changing it while EA is running won't work.

111
The short answer it's never been fixed because there's never been a not a language definition or complete samples available. Contact support and we can give a technology that provides our "best guess" implementation of the grammar rules. Unfortunately, that level of certainty doesn't meet our quality standards to claim that we support it.

112
Uml Process / Re: BPMN Import - Diagram does not draw correctly
« on: August 04, 2017, 08:28:52 am »
The situation I've seen this occur is when an embedded element appears on a diagram without its parent (so it isn't drawn).

Generally, the GUI will prevent this from happening, but it's likely that the BPMN import reconstructed the elements on the diagram literally.

113
General Board / Re: What is a "property"?
« on: August 02, 2017, 08:56:07 am »
The dialog is just using the UML term for what is created. In that sense, it's the easiest term to use.

Reference/Part and part both have specific meanings in SysML, while Property is the catch all term that encapsulates all usages.

114
There's no API to query the padding. Start with some known numbers and see how they come out when generated as images.

115
Suggestions and Requests / Re: Role name vs. attribute
« on: July 31, 2017, 03:45:12 pm »
In the "Good Old Days", UML specifically said: "a named Association End IS an Attribute" (my emphasis and perhaps some paraphrasing).  But that seems to have gone by the way side, notwithstanding that it is patently so.

I think you'll find that it was the navigability (possibly in conjunction with a name) that was previously used for this. Now UML explicitly states that they are different.
Quote
Navigability notation was often used in the past according to an informal convention, whereby non-navigable ends were
assumed to be owned by the Association whereas navigable ends were assumed to be owned by the Classifier at the
opposite end. This convention is now deprecated. Aggregation type, navigability, and end ownership are separate
concepts, each with their own explicit notation. Association ends owned by classes are always navigable, while those
owned by associations may be navigable or not.

Within the UML specification itself you'll find that all association ends are named (with an implicit naming rule if there is no explicit name) but obviously not all of them are intended to be attributes.

116
PutDiagramImageToFile will clip to the area needed by the objects being drawn. Then the diagram frame is added. Both result in the coordinate space being changed.

You could write code to calculate the offset from the returned values by finding the topmost and leftmost element, then adding padding.

117
Yes, EA is interested in the value. But the only way that it looks for the value is by decoding the base64 to get a zip archive and extracting the text file containing the instructions. It won't magically know how to read the value in another encoding, regardless of any declaration.

I'm not saying it wouldn't be nice to support reading a shape script from a CDATA section or something similar for debugging reasons. That feature isn't available though.

118
I would like to past back as plain using <dt:dt string>
Enterprise Architect won't understand it if you don't use the same format.

119
I've added tags with the same name but not from the profile. When necessary for neatness I'll run a script over the tagged values to make EA see them as part of the profile (by changing the first half of the guid)

Code: [Select]
function UpdateMyStereotype( issue )
{
var element as EA.Element;
element = issue;

for ( var i = 0 ; i < element.TaggedValues.Count ; i++ )
{
var tag as EA.TaggedValue;
tag = element.TaggedValues.GetAt( i );

if(tag.Name == "MyTag1")
{
var newGUID = "{88604871-F928-ebf9-" + tag.PropertyGUID.substring(20);
Execute("Update t_objectproperties set ea_guid = '" + newGUID + "' where ea_guid='" + tag.PropertyGUID + "'");
}
else if(tag.Name == "MyTag2")
{
var newGUID = "{A0862D32-C049-20c0-" + tag.PropertyGUID.substring(20);
Execute("Update t_objectproperties set ea_guid = '" + newGUID + "' where ea_guid='" + tag.PropertyGUID + "'");
}
}
element.SynchTaggedValues("MyProfile", "MyStereotype");
AdviseElementChange(element.ElementID);
}

Replace MyProfile, MyStereotype, MyTag1 and MyTag2 with values from your profile. For the two guid fragments, look at the prefix all of your profile tagged values have and copy it.

120
I ran an XMI export of a package containing two attributes identical except for the not null field. There was a difference between them in the EA extensions section of the XMI.

Pages: 1 ... 6 7 [8] 9 10 ... 415