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 - «Midnight»

Pages: 1 ... 371 372 [373] 374 375 ... 377
Call LayoutDiagram() or LayoutDiagramEx() from the project interface. The latter is preferred.

You'll have to play around with them a little before you see how the documentation maps to the functionality. Then you'll have to play around a lot to see how the arguments map to the results.

Excellent Thomas!

While my idea was in the correct direction I would have taken just as long to find the solution. I would have put the first 3+ hours into experiementing with coercing the left-hand side into a different form, all to no effect.

I have the same love-hate relationship with Perl; all the more so with work on 6.0 seeming to be in limbo.

What about Python? It seems to work well, and development continues at a steady pace.

Remember that you can always get the .Net SDK (1.x or 2.0) from MS. Although the Visual Studio IDE is not included, the C# compiler is. It has always been free.

You can also download and install the Express languages in the various Visual Studio 2005 Express line - I believe there are 5 environments. MS has recently said they are making the one-year free license permanent. Of course SQL Server 2005 Express has been free since its release and MS has always said it will remain so.

Last but not least, Java environments get better every day, and several weren't too shabby to begin with.

More later,

Just making sure that I read it right Thomas.

Remember that GetAt() returns an (untyped) object. Depending on your programming language, you may (will probably) have to cast this in some way.

The various languages I use are strongly typed. No matter what I do I cannot directly assign a value to a property unless I retrieve the resulting object and then manipulate it in a later statement, or type it on the fly - which one often depends on the environment I'm working in.

HTH, David

I am really guessing here Thomas, but could the display issue be related to the Hierarchy View level settings on the main Tools / Options page?

As for the r/o thing, I have no idea. How are you trying to do the modification, through the add-in or the UI? Also, is "lvalue" what you are seeing in a message, or just finger trouble?



That error code is returned by Access (among other Office components) as kind of a general purpose error. It is often associated with privilege or locking violations.

You may be opening the file in a non-shared mode, and then getting into trouble if another thread, or even another portion of your application opens it again. This could potentially happen because of the threading model on your server.

Your server account may or may not use the credentials you have set up. In particular, IIS and ASP (.Net or otherwise) do not always use the credentials of a user, but supply their own. You may be able to handle this in .Net by explicitly switching credentials in code before touching EA, then switching back to handle the non-EA portions of your application logic.

Not a solution I know, but worth checking into.


No Olli you cannot,

This has been requested - or at least the ability to have the Notes for an element in RTF format. No traction at Sparx as far as I know.


Are you using the EA default editor for linked documents? If so, check this post:;action=display;num=1147263376;start=2#2

I was unaware of this - thanks again Simon - but perhaps it is what you need. Otherwise I don't know what to do to import specific items into an EA model from an external file.

Without writing an automation program or add-in that is. I have little problem with doing one of those, but I'm not sure that's what you are talking about. Or is it?


Thomas may be right about this. I always set EA to use Jet 4.0 so I cannot say if the default setting is different.

I do know that Access will complain about the format regardless of the EA setting. As I mentioned in my earlier post you will have to let Access convert the file to the current format. After that you can try the repair. Finally, you will have to get access to export or convert (I cannot remember which way Access refers to the operation) the file back to a previous format - Access 97 has worked for me.

I have only tried this with Access 2000, so cannot say if it will work with 2003. You'll have to try that on your own.

Do you get this message when repairing from the EA menu, or with Access (as I described earlier in this thread)?

Thanks Simon,

They've been there for quite a while too. They are just so familiar with them I hardly notice them...

The one time I had to repair a file, I remember that I had really trashed it. I cannot remember what the problem was, but between my Access tweak and EA, everything came back in one piece.


Good point Thomas.

I once had an EAP file that went sour on me. I opened it with Access 2000, after first doing the convert function from Access (which creates a copy from the original, rather than trashing it). I was able to run the compact and repair function, and things seemed OK. Once that was done I think I needed to convert the resulting file to a previous version - in this case Access 97 (but it was some time ago, so I don't remember for sure). After renaming the end result to .EAP I was able to open it in EA.

Now... I immediately exported everything I needed and dropped it into another model. If you try this make absolutely sure things still fit together (i.e. no broken foreign keys) before you do too much work with the file. I think errors would show up pretty quickly.

Please note as well, that I always select the Jet 4.0 option in EA.


Of course now I can't find it.

In the meantime, take a look at this post:;action=display;num=1145906931;start=3#3

Here, using the corporate edition, you connect to your EAP file as if it were a repository. At the same time you choose to be the exclusive user. This might convince Access - at least for the current session - that you actually own the file. Conversely, if Access (or Windows) has convinced itself that there is a phantom user sharing the file (unlikely but not unheard of), you will probably get an error message when you try to open exclusively. Either way you have some useful information.

Take a try and tell us if the problem goes away (even temporarily). This is obviously not a real solution but at least it should get you back in the game.

If you are trying to open the model throught the automation interface, try this anyway, and take note of the connecction string. Use the same string when you call Repository.OpenFile().

BTW, please confirm that you are using OpenFile() rather than OpenFile2(). I have no idea whether this would make a difference, but have no experience with OpenFile2().


BTW, if you are using the automation interface from outside, rather than from an add-in, you might be the "other" user. This can happen if you have the database (the EAP file) open via OLEDB (or whatever) and EA is also using the file.

If this is the case, check the access rights on your 'back' channel. The defaults lock the database in a way that would be antagonistic to EA.

Which version are you using? EA uses different access rights for the EAP file depending on version. I know that the desktop version locks the file exclusively and the Corporate does not. I think the Professional version works like the corporate, but it could be the other way.

Depending on the version and access rights you might be able to figure this out.

One of the Sparx folks explained this (which version uses what access rights) to me in a recent post, if you want to look.

Automation Interface, Add-Ins and Tools / Re: BPMN event icons
« on: May 11, 2006, 04:21:33 pm »
On the BPEL thing, I know this has been discussed in the context of an upcoming feature in EA. I do not know if this has definitely been adopted, nor do I know of a time frame if it has. My guess is that it might show up in 6.5; otherwise I suspect we'll see it whenever 7.0 rolls around.

I am looking forward to this, since what BPMN interest there is around here is generally coupled with BPEL.

Pages: 1 ... 371 372 [373] 374 375 ... 377