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 - Rudi Claes

Pages: [1]
1
General Board / Sparx vNext
« on: September 18, 2013, 11:49:03 pm »
Hi,

I know its early, but is there a roadmap for the next version of Sparx EA (10.1, 11)?

Regards,

Rudi

2
Yes, the sort option on the Name Column of the Model Search is indeed not too much effort. But I would like to use the sorted output of the query in RTF document generation.

3
Hi,

The end-users would like to see the element names in alphabetic order for easy retrieval. Now, the order seems completely random. As this seems a fair question, can this requirement be realized without scripting?

Regards,

Rudi

4
Hi all,

I would like to use the following custom SQL search in a Model Document:

SELECT ea_guid AS CLASSGUID, Object_Type AS CLASSTYPE, Name FROM t_object o WHERE stereotype = 'BR' AND Phase = '<Search Term>' ORDER BY Name

However, the sort order is respected in the output window, but not in the generated RTF document.

Any thoughts on this one?

Regards,

Rudi

5
Does the trick  :) Thx!

6
Hi,

is it possible to get user input from a script? I would like to get confirmation from a user to start a script.

In VBA this looks like:

iRet = MsgBox("Continue Y/N", vbYesNo, "Title")

In JavaScript, Session.Prompt works well for output, but I can't seem to get a response from Session.Input.

Any ideas on this one?

7
Indeed. I used a wrapper function in which the third argument was assigned to the stereotype attribute.

So the following statements:

(5) elements.AddNew("XYZ", "Component", "ArchiMate_Component" );
(6) elements.AddNew("XYZ", "Interface", "ArchiMate_Interface" );
(7) elements.AddNew("XYZ", "ArchiMate::Component", "ArchiMate_Component" );
(8) elements.AddNew("XYZ", "ArchiMate::Interface", "ArchiMate_Interface" );

Should be read as:

(5) newElement = pkg.elements.AddNew("XYZ", "Component")
newElement.stereotype = "ArchiMate_Component"

(6) newElement = pkg.elements.AddNew("XYZ", "Interface")
newElement.stereotype = "ArchiMate_Interface"

(7) newElement = pkg.elements.AddNew("XYZ", "ArchiMate::Component")
newElement.stereotype = "ArchiMate_Component"

(8) newElement = pkg.elements.AddNew("XYZ", "ArchiMate::Interface")
newElement.stereotype = "ArchiMate_Interface"

Thanks for the correction.

Regards,

Rudi

8
A small update on this one: the ArchiMate namespace prefix has to be present in order to resolve ambiguity. From an OO perspective, this is a common approach.

With an Archimate Function, there is no problem:

(1) elements.AddNew( "XYZ", "ArchiMate::Function" );
(2) elements.AddNew( "XYZ", "Function" );

will produce the same result, an ArchiMate Function for (1) and (2)

However, there is a problem with an ArchiMate Component:

(3) elements.AddNew( "XYZ", "ArchiMate::Component" );
(4) elements.AddNew( "XYZ", "Component" );

will produce a different result: an Archimate Component for (3), but a UML component for (4)

Adding a stereotype does not help:

(5) elements.AddNew("XYZ", "Component", "ArchiMate_Component" );
(6) elements.AddNew("XYZ", "Interface", "ArchiMate_Interface" );

will get you a UML Component (5) / Interface (6), that is stereotyped as an ArchiMate one. This is not wat you want.

To be in sync with elements / connectors that you drag & drop from the toolbox, use the stereotype in combination with the namespace prefix:

(7) elements.AddNew("XYZ", "ArchiMate::Component", "ArchiMate_Component" );
(8) elements.AddNew("XYZ", "ArchiMate::Interface", "ArchiMate_Interface" );

will produce the expected results.

Regards,

Rudi

9
Hi all,

is it possible to create a Hyperlink Element by means of the automation interface? I'm particularly interested in creating a hyperlink to another diagram. Any ideas on this one?

Regards,

Rudi

10
Automation Interface, Add-Ins and Tools / Import from legacy database
« on: March 22, 2012, 12:34:05 am »
I've got a legacy database with a lot of content I need to migrate to Sparx. Import via XMI should then be the path to follow. Leads to a conversion from that relational data to XMI. I'm considering the usage of XSLT or SSIS (SQL Server Integration Services). Has anyone got experience with this? Are there other scenarios to consider?

11
I'm writing a script in order to color some elements on a diagram based on the presence / contents of a tagged value. Rather straightforward stuff, but the coloring is giving me some trouble. More specifically the third parameter of SetAppearance: a call to SetAppearance 1,0,255 followed by an Update gives a nice red color and 1,0,-1 returns the default color, but what of the other basic colors (yellow, blue, green, etc)? Is this documented somewhere?

Pages: [1]