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

Pages: 1 ... 598 599 [600] 601 602 603
8986
I once tried that, but long ago. AFAIR it worked once upon a time. Now I tested once again. The window is created, but the return value is nil. Probably you should report that as a bug to Sparx.

N.B. Somehow it must work as (at least one) add-in provider is using it.

q.

8987
Automation Interface, Add-Ins and Tools / Re: Annoying API change
« on: April 06, 2011, 06:25:59 pm »
This discussion must have slipped my attention. However, it is annoying and does not shed a good light on the development branch at Sparx. In the end I found out a way with my own wrappers using a SQL that emulates the old behavior in all versions.

q.

8988
Automation Interface, Add-Ins and Tools / Annoying API change
« on: April 06, 2011, 01:31:57 am »
I was able to get around this up to now, but this is really annoying: The Elements method has changed behavior from 7.5 to (I guess it was already 8.0 but I'm testing with) 9.0. Package.Elements returned ALL elements of a package even those nested inside other elements. Definitely this behavior was wrong and needed correction. But simply changing the method's behavior is definitely the wrong way! As long as there is no way of versioning interfaces the new behavior should have been wrapped in another method named for example ElementsOnTop (or whatever). What I have to do now it to code something like
Code: [Select]
if rep.EAEdition < 4711
  use Elements the old way
else
  use Elements the new way
end
That sucks definitely.

Please, Sparxians: the next time you change an interface make it either during a beta testing phase for a new interface or introduce a new method for any changed behavior.

q.

8989
Automation Interface, Add-Ins and Tools / Re: Preserve Add-In Objects
« on: March 25, 2011, 06:17:50 am »
Paolo (AFAIR) had asked for a way store user data safely in the EA database. Maybe you can search for the thread here and join him with a feature request.

q.

8990
Automation Interface, Add-Ins and Tools / Re: Preserve Add-In Objects
« on: March 24, 2011, 10:02:29 pm »
I guess this is called serialization. Write it to a file or tweak the EA database on your own risk

q.

8991
Select element
Press F4
Uncheck default color
-> the RGB values are the ones you need


q.

8992
Your EAP files are actually MS Access. Also you can host the repository on SQL servers.

Tweaking the DB means using repository.execute(sql). You will find more info searching the Automation board.

q.

8993
Dbl click dia
Diagram
Advanced
Page Setup

which is already hard to find. Or do you want to do that via automation? In that case you have to tweak the SQL database (t_diagram most likely and there likely inside PDATA)

q.

8994
Each diagram object has an element_id which can be retrieved from the repository via getElementById

q.

8995
something like DiagramObject.Element_ID = ElementInRepository.Element_ID
right before the update.

q.

8996
Don't know that language, but you need to set the element_id of the diagram object to that of the element you want to show.

q.

8997
In that case you have to ask Sparx to implement such a feature.

q.

8998
You can use the EA_OnPreNewElement  events to disallow creation of elements. I have used that only on minor occasions so I can't tell much more than what is written in the help file.

q.

8999
Automation Interface, Add-Ins and Tools / Re: Change of metatype
« on: March 15, 2011, 08:16:45 pm »
You should send a priority support request to Sparx.

q.

9000
I never asked why GetByName is limited to the current set of collections. Probably the GetByName is not inherited but implemented separately for each collection. Is there any class design for EA? At least it is missing in this region.

q.

Pages: 1 ... 598 599 [600] 601 602 603