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

Pages: [1] 2
1
Automation Interface, Add-Ins and Tools / IsRoot on Element
« on: August 20, 2010, 08:21:24 am »
Is there any way to access the "Is Root" property of an element short of direct database access? Read would be good, but write access is preferable.

2
Automation Interface, Add-Ins and Tools / Generating Custom XML
« on: May 20, 2010, 02:51:16 pm »
We'd really like to be able to generate custom XML for UML model using the code generation capabilities of EA. The problem is is that we'd want it to just generate one file and be able to apply rules to packages (namespaces) in such a way that we could nest classes and all that.

Is this possible with the code generation in EA? XSLT against XMI and Add-Ins are our absolute last resort, is there any other options for this? Is it possible to modify the XML generation tool in EA?

3
Automation Interface, Add-Ins and Tools / DiagramLink Geometry and Style
« on: November 18, 2008, 03:00:54 am »
I'm programmaticly organizing diagrams, but I've run into a bit of a wall. I am trying to set the Style portion in particular to "Vertical Tree" however, I'm not sure which flag contains this on either style or geometry of a diagram link. Is there any, even informal, documentation for these flags? Anyone have experience with them?

Thanks

4
Automation Interface, Add-Ins and Tools / Re: Test Automation Features?
« on: November 18, 2008, 04:00:28 am »
I'm not sure exactly what you mean, but it sounds like you mean unit testing against the automation interfaces?

If so; then yes. You can instantiate the 'App' class and open a project and generally interact with EA's stuff programaticly. From there you can use your language appropriate unit testing suite to load and run tests.

5
Automation Interface, Add-Ins and Tools / RefreshModelView speed issues
« on: November 07, 2008, 04:03:08 am »
We are doing heavy automations in our own add-in, and we have recently noticed that RefreshModelView takes an exceptional amount of time to complete. When we go through EA's COM objects, it can be around five minutes, but when we do direct database access we've seen it get into the 15-20 minute range for that one function.

I have two points to this: A) Anyone having the same problem, if you refresh the whole model, it only takes about 5 seconds. B) Given that a superset of the functionality takes dramatically less time, does sparx consider this an issue or plan on fixing it?

6
For reasons unknown, I believe the ID for this class is stored in the TransitionEvent property as a string.

7
Whenever I make a call to read a role tags ElementGUID, I get this exception:

System.BadImageFormatException: Invalid access to memory location. (Exception from HRESULT: 0x800703E6)
   at EA.IDualRoleTag.get_ElementGUID()

I'm doing everything that is in the help file regarding role tags, so am I missing something? Is this a known defect?

Thanks

8
Automation Interface, Add-Ins and Tools / Database documentation
« on: September 04, 2008, 03:26:32 pm »
We have recently decided to deal directly with the .eap Access Database for performance issues, but we were wondering if there was a) any kind of documentation on the database tables or related sql commands or b) any way to 'see' what sql commands EA is sending to the database?

Thanks

9


This is what i get from querying it in .Net. I'm not quite sure how valid these are, in particular for the java API


10
Thanks. I couldn't find the forum post, but knowing that gave me a way to at least distinguish when I needed to do something with the diagram and when i didn't, so problem solved. This is surely an eccentric way to handle something like this though; I'd love to know the reasoning behind it.

11
We have a tool that generates a hundred or so diagrams out of one tool; and it would be helpful to have those diagrams laid out automatically for this. The problem is that EA, for some reason, has a ton of overhead on the LayoutDiagram call; as it opens the diagram, lays it out, and then closes it again. So we have to leave it how it is, which means everything is on top of eachother.

To address this, I'm trying to use 'EA_OnContextItemDoubleClicked' to catch events in which diagrams are being opened, and simply seeing if every object starts at the same x y coordinates. If it does, perform a layout. Simple. The problem is that the coordinates given to me from the diagram are invalidat this point. As in, they are like 3000000+. It appears as if that part of the data structure hasn't been filled yet so it has junk data. I've tried updates, and things like project.loaddiagrams,  but it simply will not populate these fields correctly. Is there any way to force it to do this?

12
Automation Interface, Add-Ins and Tools / Custom icons on treeview
« on: April 23, 2008, 04:34:16 am »
Is there anyway  (esp. through MDG) to specify a custom icon for a diagram, or for that matter, any element in the project browser?

13
If you have a custom toolbar profile, that provides an interface to create a stereotyped relationship, the F3 key will repeat a relationship of that type (such as a generalization), but it will NOT properly set the the stereotype. Is there an option for this somewhere, is it a bug that needs to be logged, or is it a bug that is already set to be fixed?

For the record, it does do the right thing for elements.

Thanks

14
I found the problem. The operation I was doing was essentially a clone of an existing connector. So I set every property of the target attribute to the value of the source attribute. Apparently IsChangeable's property is seriously broken. The source.IsChangeable was 'none' which jives with the EA UI for that field ({'none', 'frozen', 'addOnly'}) but when you set it to anything, its value becomes '1', which is set to show up in the diagram window. Hopefully I'll never need to set IsChangeable I guess.

15
I am using version 7.0.818

I am setting the cardinality of the associations, and if I dont set them the junk doesn't show up, but I have a funny feeling that is because nothing shows up on the label, not because the cardinality is screwing them up.

I can attach a simple model, if need be, but I dont know if this will help.

Pages: [1] 2