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.


Topics - martin1

Pages: [1] 2
1
General Board / Table containing Tagged Values
« on: August 07, 2024, 06:11:08 pm »
In some older posts I've seen queries operating on t_attribute/t_attributetag when getting tagged values. In my database those are empty, and the tagged values seem to be located in t_objectproperties.

Does anyone know about the reason for this? Was there a change some time?

2
General Board / Get all elements of hierarchy
« on: August 05, 2024, 10:46:05 pm »
Dear all, I try to accomplish the following:
* I want to write an SQL query returning all elements (e.g. requirements, classes, blocks) of a package hierarchy
* The only parameter is the Package_ID of the "root" node
* No recursion mechanisms, no macros
* The number of levels to go down the hierarchy can be fixed and set to e.g. 3

My current idea was to use t_object and join t_package multiple times and get the elements. But it doesn't work yet.

Code: [Select]
SELECT *
FROM ((((t_object AS o
INNER JOIN t_package AS p0 ON o.Package_ID = p0.Package_ID)
LEFT JOIN t_package AS p1 ON p1.Parent_ID = p0.Package_ID)
LEFT JOIN t_package AS p2 ON p2.Parent_ID = p1.Package_ID)
LEFT JOIN t_package AS p3 ON p3.Parent_ID = p2.Package_ID)
WHERE p0.Package_ID = <number>

Any ideas what's missing and how to realize this?


3
General Board / Limiting "Model Search" to package?
« on: August 01, 2024, 07:03:57 pm »
Is there an easy possibility to limit the model search to one package? i.e. I want to get all elements of a certain stereotype within one package and its subpackages

Thanks

4
General Board / Relationship matrix with multiple packages
« on: July 09, 2024, 03:52:05 am »
Hi,
Is it somehow possible to create a relationship matrix in EA which uses a group of packages as source for elements? (to view in the matrix against the target elements)
My initial idea was to create a special SQL query or use the query editor, but until now I was not able to come up with a solution.
Thanks
Martin

5
Automation Interface, Add-Ins and Tools / Truncate text in shape
« on: January 28, 2020, 07:30:20 pm »
Hi,
I display text using PrintWrapped in a custom shape script.
Is it somehow possible to truncate the text shown in the shape script, just for display purpose? The original text should be left untouched. To give an example, I only want to show the first 100 characters of a label.

Martin

6
Automation Interface, Add-Ins and Tools / Term "model validation"
« on: March 10, 2019, 09:52:37 am »
Hi,
One question related to the "Model validation" feature of EA.

In short, I learned that validation answers the question "do I build the right model?",
whereas verification answers the question "do I build the model right?"

The "model validation" feature of EA allows to define checks to decide if a model (or parts thereof) fulfills certain properties. To me, this is more like verification. Model validation can only be achieved through looking at higher level requirements (e.g. from stakeholders) to decide if the model fits the purpose.

Why is this feature called model validation? Did Sparx have another interpretation of validation? Or do I miss something here?

7
I'm working with an MDG technology that was created by someone else. This MDG has a toolbox, which allows me to create an element on a diagram. This element has a tagged value. Right after I dropped the element on a diagram, it prompts me to select a value from a given list of choices for the tagged value.

How can I get this behaviour in my own MDG?

8
I have a really nasty problem here with VS2015 and my EA add in written in C#. From another project I was used to starting EA right out of VS, using EA as "external program" to start the debugging. Now this leads to completely irreproducible exceptions, most of the time on EA.Elements, EA.TaggedValues, etc.
When I start EA normally and attach the EA process to the VS debugger, everything seems to behave normally.

I am compiling the dll without optimizations and in Debug configuration.

What is the recommended way of debugging add-ins?

And another question: What .NET framework version is officially supported by EA? I read about 3.5 and 4.0, but maybe this information is outdated? I am using 4.5 currently.

Thanks!

mk

9
Hi,
I am struggling with the methods getContextItem and getTreeSelectedItem.

I have a piece of code where I want to get the user-clicked element. The first call after starting EA to either of these messages always succeeds. But whenever the user calls the same procedure a 2nd time, EA crashes with an unknown exception.

Any help?

10
Bugs and Issues / Drop as... dialog
« on: February 09, 2016, 05:45:22 pm »
The help page "Define Creation of Instance" describes how one can create an instance of a block. However, in EA 11 this seems to be completely missing, the "drop as" dialog only lists "Link", "Property (part)", "Child (Generalization)", and "Property".

Any hints?

11
Bugs and Issues / EA 9 crashes
« on: September 03, 2014, 05:41:30 pm »
For certain reasons (which I don't want to stress out here ;)) I have EA 9 running on a new installation of windows 7. Unfortunately EA crashes "randomly" after several minutes of use. Is there any log file I can enable or view to get a clue what's going on here?

Thanks

Martin

12
Automation Interface, Add-Ins and Tools / MARTE for EA?
« on: September 22, 2015, 05:27:42 pm »
Hi,
Is there any MARTE implementation for EA available?

Thanks

13
Automation Interface, Add-Ins and Tools / Diagram Layout
« on: August 21, 2015, 04:16:22 pm »
Hi,
I deal with somewhat large models where its corresponding diagrams are generated automatically. My models consist of blocks with ports, unfortunately port-to-port connections (relationships) are rendered horribly and demand huge efforts for beautification. Problems are lines through blocks, overlappings, etc. Is there any solution for these kind of problems? Any additional tools?

Thanks

Martin

14
Automation Interface, Add-Ins and Tools / Port Layout
« on: April 09, 2014, 11:07:25 pm »
Hi,
I created a diagram using the automation interface for C#. The elements on the diagram contain ports. The problem is, that those ports are stacked one upon the other. Is there a possibility to arrange those ports in a nice way around the element?

15
Automation Interface, Add-Ins and Tools / Stereotype shape
« on: September 16, 2014, 09:11:40 pm »
How do I get a "traditional" representation of a stereotype on a diagram, avoiding the EA-style using the blue parentheses icon?

m

Pages: [1] 2