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 - Simon M

Pages: 1 ... 387 388 [389] 390 391 ... 434
Create multiple instances of the metatype.

Yes, the filenames still vary, but you can append something like the following to the url for persistent link.


The error isn't caused by generating using the Java API.  If it's generated, then the parameters are okay.  I don't know the exact details, but the javascript generated by EA can cause errors in some circumstances.

You should be able to get more details, and possibly a workaround if you contact sparx systems support directly.

It's only valid in print methods and queries.

No, it's not correct. You do need to tick the checkbox to the left of the language name though.

Select 'Code Modules' as something to be included. That allows for the inclusion of Data Types and Code Templates from the current model, and an options file for the language.

db, all collection properties are marked as readonly.

You can't

Code: [Select]
r.Models = differentCollection
You can

Code: [Select]
r.Models.AddNew("Something", "")

Add the following to your shape script.

Code: [Select]
shape middlebottomlabel

I would recommend separately importing the images.

You have accurately described the problem that existed until version 9. Version 9 allows images from technologies distributed in the recommended fashion.

You may also want to call AdviseElementChange on the original object the method belonged to.

Prior to EA 9, the images in an MDG technology file were only available when the technology was imported into the model.

Automation Interface, Add-Ins and Tools / Re: Java Automation Example
« on: April 11, 2011, 01:29:29 pm »
Have you seen the Java code samples in your install directory?  They may not provide exactly what you're after but they should be fairly close.

Probably because no-one imagined a situation where you would be wanting to access a parameter in isolation from the owning method.

I'd suggest sending in a feature request.

... it means that calls using Interop.EA.dll and C# would more more native ...
Actually, using the automation interface from either .Net or Java are both using a wrapper around the COM interface that EA provides.  I don't know the inner workings of the .Net wrapper, but I know the Java wrapper will only have a very small impact on performance, probably most significant when converting formats for large strings.

If you have something written in Java I wouldn't try porting to C# for performance reasons.  You will be disappointed.

Pages: 1 ... 387 388 [389] 390 391 ... 434