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 - stevesavage

Pages: [1] 2 3 ... 8
General Board / Model View with the current user as the default search term
« on: December 11, 2018, 12:45:46 am »
I want to create a model view where a user can select a package, then select the model view, and see a list of all elements within that package that they are assigned to as a resource.  I was hoping to use the build in resource search, but I can't seem to find how I'd set the search term to a wildcard for Author, of if I even can using the build in search.

My fall back is to create a custom SQL query using #Author# and #Branch#

Currently we have multiple projects within our repository, which means that when I select the gannt view, you see all the elements assigned to you across all projects.

I'd like to have a model view that users can use to see only the elements they are assigned to within a select package (and child packages)

Is there anyway to set the default <search term> for a model view to the current User?

Bugs and Issues / Re: CSV Import Character Encoding
« on: September 21, 2018, 02:00:11 am »
Thanks Roy, it's under Source Code Engineering.

Bugs and Issues / Re: CSV Import Character Encoding
« on: September 19, 2018, 03:30:26 am »
Hello WzDrg,

You can specify encoding for importing CSV file from the Main menu | Tools | Options | Source Code Engineering | Code page for source.
(This option is available for both source code and CSV file.)

Anyone know where this option is hidden in EA14, I've been looking and can't find it under the Code or Configure ribbons.

Suggestions and Requests / Re: WebEA view child diagrams
« on: September 15, 2018, 02:59:28 am »
To bad the "+" and the "o-o" symbols that appear on diagrams to indicate a composite diagram can't be set-up to be what you touch/click to show the composite diagram.  Basically if you touch/click the element in general you get the element info, but if you touch/click on the "+" or the "o-o" the composite diagram loads.

I've started making heavy use of the new Image Asset element to bring in mock-ups created by our development team so I can link them to BPMN activities.
E.g. while doing the activity the actor is interacting with the IT solution using the interface.

Because they are NOT using Sparx EA for the mockups (using Balsamiq), I'd like to:

  • Export screens from Balsamiq
  • Import them in to Sparx EA (and store in Sparx EA) using the file names as the Element Name
  • If they later update
  • Export screens from Balsamiq
  • Run a script in EA that replaces the images in Sparx with the new images, using the file/element names for matching

Does the API have a feature for this, or one planned for this?
I was hoping for something similar to the Element.LoadLinkedDocument(string Filename) function.
E.g. LoadLinkedImage(string Filename)


General Board / Re: EA13 image assets
« on: February 07, 2017, 12:38:16 am »
Thanks Paolo, I thought that might be the case, but at the moment I haven't found a GUID that it matches up with.

The image asset is stored in t_document,
  • docID = {5E923B0A-B2C7-4761-9739-480DA752DCAE}
  • Style = {19435D98-9499-4cbb-96B7-C58D39CB8DF7}
  • ElementID = {5E923B0A-B2C7-4761-9739-480DA752DCAE}

In t_object,
  • the image asset Element GUID = {5E923B0A-B2C7-4761-9739-480DA752DCAE}
  • the Class Element with the updated appearance has the GUID {34B7553B-BF89-48a1-936B-0C635E78DB37}

There is also an XREF entry for the image asset:
In t_xref, the XrefID = {A21E578D-6DCE-41a7-8986-B42E417636DB}, client = {5E923B0A-B2C7-4761-9739-480DA752DCAE} (the client is the GUID of the asset Element)

The GUID of the diagram = {DE664BE3-F69F-4259-A0B2-7F8FFDCEB351}

So I'm not sure where 608EC5C1 was pulled from.

I put the same Class Element on a different diagram and set it appearance to the same image asset and go a DUID of FFEED9EF

General Board / Re: EA13 image assets
« on: February 06, 2017, 12:26:59 pm »
Hi Guillaume, I've also been experimenting with image assets, this is what I've found so far:

  • You can use the image assets directly in diagrams, they seem to be treated as class elements.... I've been in contact with Sparx, and they don't recommend using image assets directly in you diagram, the intent is to use them as an alternate image
  • You can use image assets as the "alternate" image for an element, but you have to set this for each diagram the element appears in... a bit of a pain
  • Once you set the image asset as the alternate image, you can update the image linked to the image asset and all you diagrams and elements pointing to it are updated.

What I'd like is a way to set the image asset as the "default" appearance for the element, but that doesn't seem to be possible yet.

So I'm trying to see if I can make a script work around for step 2.   
At the moment this is what I've figured out:
  • Each image file is stored in the table t_documents that references the GUID of the image asset Element
  • Each image asset element is stored in the t_objects table (like all other elements), element's GUID = {5E923B0A-B2C7-4761-9739-480DA752DCAE}

When you want to use the image asset for an element in the diagram:
  • You select an element, then select "appearance->select image asset as alternate image
  • Sparx EA updates t_diagramobjects and the ObjectStyle field for the diagramobject representing the element: DUID=608EC5C1;
  • Sparx EA then updates t_diagram and the StyleEx field for the diagram: OPTIONS_608EC5C1=AIG={5E923B0A-B2C7-4761-9739-480DA752DCAE}:;

So it seems to be that a script could be created that would work by:
  • Select an Element in a diagram that has already had it's appearance linked to the image asset
  • The Script identifies all diagrams that contain the Element
  • The Script would update the in each diagramobject for the Element
  • The Script would update the diagram.styleEx for each diagram contain an diagramobject for the Element

Will experiment and post once I figure things out.
What I don't know right now is how Sparx EA generates the value DUID=608EC5C1;

Hi Query, I've discovered that calling Session.Prompt actually pauses script execution.
I already have a similar script working where I select Diagram Objects 

I use that script to select a set of Diagram Objects, then select Elements in the Project Browser, and then the script creates a trace relationships between the Diagram Objects and the Selected Elements.  The script creates the a trace relationship in the correct direction based on Element Types + Stereotypes.

I find this quicker than dragging to the diagram, or using a matrix in many cases.

I'd like to do the same between the Package Browser and the Package List View.


For one of my scripts I'd love to be able to do the following:

  • In the Package Browser, select Package "A"
  • View Package "A" as a List (Package List View)
  • Navigate to Package "B"
  • Select some Elements in Package "B"
  • Run my script
  • Script uses Repository.GetTreeSelectedElements() to get the Elements I selected in Package "B"
  • Script uses "Session.Prompt" to pause and ask me to select items from Package "A"
  • I go back to the Package List View from step 2
  • I select Elements in the Package List View
  • Script uses ????? to get the Elements I selected in the Package List View, fromPackage "A"

I don't think this is supported right now, but I thought I'd ask.

By the way, if you didn't know already, you can open multiple "list views" at the same time, and drag and drop elements between them... handy for organizing things in Sparx EA.

General Board / Re: Image Assets in Generated Reports
« on: January 10, 2017, 04:32:43 am »
Hi Roy,
I don't think we're talking about the same thing.
The user guide mentions linking to an asset in my notes, or a linked document.

I want to know how to reference an asset's image directly in an RTF reporting template so that when the report is looping through the image assets in a package, the images will be displayed in the report.

Package 1 = P1

Select P1, create documentation

Report generates.
Header 1 = P1.Name

Header 1.1 = Asset1.Name

Header 1.2 = Asset2.Name


General Board / Re: EAUML::trace and Relationship Matrix
« on: January 07, 2017, 11:09:49 am »
Thanks Simon, I didn't realize that the stereotypes for connectors were also being stored in the t_xref, will run your fix.

General Board / Image Assets in Generated Reports
« on: January 07, 2017, 10:02:57 am »
We've started using Image Assets to import Interface Mockups created in an external tool in to Sparx EA.

I created several image assets by dragging some PNG files on to a diagram, and selecting "Image Asset" as the element type.

But I'm having some issues getting them to show up in reports:
"They can also be used in documentation by inserting hyperlinks to the Image Asset element."

I tried:
package >
  element >
  child elements >
< package

And that didn't work.
Anyone have any success yet?

My workaround is creating a diagram under the image asset to include the image.

General Board / Re: EAUML::trace and Relationship Matrix
« on: December 21, 2016, 02:47:35 am »
I had the same issue, and this is the fix info from Sparx EA:

"We had a similar report and found that the issue was caused by a stereotype which had been defined in the project "UML Types". Please try the following...
Open the project which is having the issue, then open the UML Types dialog (via "Configure > Reference Data > UML Types"). In the list of stereotypes, locate the "EAUML::trace" stereotype (see attached) and delete it. Trace connectors should be created correctly (if not, please let us know)."

For trace relationships that you've already created, that have the wrong stereotype, I wrote a quick jScript script to fix them.

var updateSQL = "UPDATE t_connector SET t_connector.BTM_MID_LABEL = '«trace»', t_connector.Stereotype = 'trace' WHERE t_connector.Stereotype = 'EAUML::trace'"

General Board / Dyanamic Documents crash EA?
« on: December 21, 2016, 02:40:59 am »
I was really hoping to make use of the new Dynamic Documents feature to improve the readability of information contained in my model.
Unfortunately every time I try using one, EA stops responding, I'm using EA 13.09.

Just wondering if this is isolated to me, or if others are having the same issue.
I'm sure this was working on an earlier version of 13, but I don't really want to role back.
Tested on both our Oracle repository, and a local MS-Access EAP file, using a "reqirement" element with no stereotype.

Seems to be an error introduced in Sparx EA 13

When I generate a report (docx), the bookmark for an Element section is being placed at the "end" of the Element instead of the beginning.
Running the same report with the same template on Sparx EA 12.1.1224 correctly places the bookmark at the beginning of the Element section.


In Sparx EA 13.09 and 13.08:
Element 1 - start
Element 1.1 - start
Element 1.1 - end - bookmark for Element 1.1 is here (guid)
Element 1.2 - start
Element 1.2 - end - bookmark for Element 1.2 is here (guid)
Element 1 - end - bookmark for Element 1 is here (guid)

In Sparx EA 12.x:
Element 1 - start - bookmark for Element 1 is here (guid)
Element 1.1 - start - bookmark for Element 1.1 is here (guid)
Element 1.1 - end
Element 1.2 - start - bookmark for Element 1.2 is here (guid)
Element 1.2 - end
Element 1 - end

Also reported through the official bug reporter.

Pages: [1] 2 3 ... 8