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

Pages: 1 2 3 [4] 5
General Board / Mixing versions
« on: January 07, 2016, 05:04:06 am »
I often 'roam' with my EA license, and I usually keep my version current. But often, the clients I visit tend to run old versions. Is there a list somewhere that would help me work out what happens when I point my EA at those repositories?

Right now I would like to know if 12.1 and 7.5. can work on the same repository? But in general, a compatibility matrix would be really helpful.

Rgds Chris

Bugs and Issues / Re: Report Writer 11.1 not as good as 11
« on: November 16, 2014, 09:12:15 am »
Yes, it is not that hard. The attached documents is interesting option, hadn't given that much thought as I hardly use it. But i am looking for a certain flexibility, as to what is touched and how it is touched. Right now I'm thinking of something along the lines of the report template editors left pane, with some filtering options so you can obfuscate different elements differently and also something that would allow new strategies for replacing information, as i could imagine that my simple strategies might not be good for everyone. It's just a matter of finding some time between job time and family time to get stuck in. I tried my first hello world version today, that was more than easy.

Bugs and Issues / Re: Report Writer 11.1 not as good as 11
« on: November 16, 2014, 03:58:14 am »
I actually received the link, but it wouldn't have helped that much, as it is limited. I needed to anonymize the notes, their obfuscater could only clear notes, not change them.

So, I am looking into building my own, as I have a need beyond sending bugs in EAP's to Sparx, I don't run into many bugs, so this is secondary requirement. It's been a while since I did this for a living, so progress probably won't be fast, but might as well take the opportunity to explore the world of EA add-ins  ;)

Bugs and Issues / Re: Report Writer 11.1 not as good as 11
« on: November 13, 2014, 01:05:51 am »
The bug has been submitted and validated, (issue 14119353). However the obfuscator was not provided, so I've asked for this functionality in the product as it occurred to me that I often find myself having to duplicate work because I need to show how I constructed the repository, but can't show the content I used, so it would be a time saver for me.

Bugs and Issues / Re: Report Writer 11.1 not as good as 11
« on: November 07, 2014, 02:40:00 am »
Good idea, I've submitted a bug report, and if I need to send a working problem, I'll ask for that......

Bugs and Issues / Re: Report Writer 11.1 not as good as 11
« on: November 04, 2014, 07:09:23 am »
No, as the sample project contains info I cannot share. As it took me some time to solve, haven't had time to create a completely new project with fudged data.

Bugs and Issues / Report Writer 11.1 not as good as 11
« on: November 02, 2014, 04:24:45 am »
I have found something like a bug with the report writer introduced in 11.1. I had a template that used a table, the elements write rows, the package wraps the table. I had used the trick of removing the newlines, so that the tables got merged together if the template was run over multiple packages. So, I created a master document, model document that references the right template and included the packages I want. It worked well. Since 11.1 it will not iterate over the packages. A single package still works fine. It took me some time to figure out that by putting a newline after the table would resolve the issue, and I settled for removing the newlines manually.

Any other change proved making no difference, from .docx to .rtf, altering the table layout, nothing. But that newline after the table made a world of difference. I'm not sure what it should be doing, but I'm very tempted to go back to 11.0, because I use that table without newline trick quite a lot and it's been working for some time, deduced from the fact that I've been using it for years.

Automation Interface, Add-Ins and Tools / Re: Add-in user friendly
« on: August 12, 2015, 01:57:06 am »
Thanks Geerrt, lots of inspiration to be found in the links you gave. Will try some of the ideas. I will possibly go to SQL sooner, as you've provided a nice headstart.....

Automation Interface, Add-Ins and Tools / Re: Add-in user friendly
« on: August 11, 2015, 05:29:45 pm »
Hi, I've tried using a modeless window in a different thread, but it seems that it doesn't sit well with EA. I've also tried the backgroundworker on the progress dialog and that failed. Although I'm now thinking I read something about TLS being different in .NET nowadays. My .NET knowledgde is a little dated, say .NET 2.0, so probably the problem lies there.

I was hoping someone had a working example I could adapt.

It's not that long, max is around 2 mins, but since EA 12 I've noticed that the GUI 'jumps' a little after about 10 secs or so. And seeing there's no visual clue things are going well, I'd like to have something there.

SQL might be an option, but at this point, the API seems fine. I can't find any documentation on what you can and cannot do in a thread. So I could simply move the processing to a dialog, which feels wrong, make a complex dialog (something like a wizard), which is a lot of work for a simple task and I've even been thinking to simply not make an add-in, but write a standalone program. The latter would be a lot of work, and again, don't feel really validated in this case.

I'd like it to be C# and .NET, as those are the ones I'm most familiar with, albeit from some time ago. As most repositories I have are either eap or PostgreSQL databases, SQL seems a step too far, not wanting to have to cater for different SQL dialects (which would mean I would want to wrap the SQL dialect in a set of classes to keep it out of my functional layer).

I'll have a look and see if TLS is now separated (I remember you objects being shared across threads and writing code to prevent accessing members from different threads at the same time).

Automation Interface, Add-Ins and Tools / Add-in user friendly
« on: August 11, 2015, 05:30:15 am »
After getting some fine pointers here, buying some books, I'm revisiting the 'write your own EA add-in'. It works well, except for one point.

I'm going through a package structure and it takes some time (I still have to digest the using SQL statements for increased speed.

Anyway, the speed is fine (for now), but I'd like to display some kind of progress while it is gathering the info. I've been unsuccessful in getting a window running in a seperate thread. Writing to system output works, but only when my menuhandler ends, you get to see it.

I'm hoping there's a friendly way to do this, other than moving the code into a form and doing it there. As I'm collecting data, then the users gets to twiddle with the results before deciding how to proceed, it would require quite a bit of rethinking on UI's and bar for the progress display, I'm already happy with how it works.

But the async displaying I'm trying for is elusive, so I'm sort of assuming I just need to create a UI that covers collecting, processing. I was hoping I could collect before display the UI, with just a simple progress bar.....


Ok, I don't mind going that deep, but would not want to access functionality via that route (unless there is no workaround). It feels like tying things to back, rather than the front. I'm just wanting to get something that works for me, and perhaps others, but stay away from DB access as it would currently makes things too complex in the wrong area.

Nonetheless, having a good understanding of the innards is never a bad idea, as it will make understanding all the alternatives given a particular situation all the easier.

In the meantime, I'll look into the excellent pointers provided.... many thanks

Hmmm, does that imply I need to dive into the database? This would complicate things somewhat, or (if I buy the book(s)), will this also provide a path via the API?


Still more to discover, like how do I determine the kind of model, like EA does, the type is otPackage, but some are decorated with a folder icon that represents the model contained therein. I assume this is done through the element, specifically the element type of the package, but the value range is unclear to me. Does anyone know how this is done?

Great, precisely what I was looking for.  I count 95 icons, I wonder, is there some index as what image position means what.... :) Before I start counting, is there a quicker way for that also?

Yes, makes sense. Any tips on how to use the same tree icons as EA? It would be good to present something people are already used to.

Pages: 1 2 3 [4] 5