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 - Paolo F Cantoni

Pages: 1 ... 391 392 [393] 394 395 ... 418
5881
Quote
Yes, the filenames still vary, but you can append something like the following to the url for persistent link.

?guid={62D08670-1458-4d54-8A39-DBA993F6DFC1}
Hi Simon,

One might observe that since Sparx have gone this far, why not "go the whole hog" and make the file names be based on the GUID?  No more meaningless than the current scheme and a hell of a lot more stable!

Paolo

5882
This is a known bug...

I can't remember if v9 Beta fixed it or not...

HTH,
Paolo

5883
Quote
[size=18]...[/size]
Hidden in this context, just means that the diagram doesn't have focus.  I can assure you that I can reproduce the issue with only two diagrams.

Alistair.
And I can assure you that under automation, I observed the behaviour documented.    ;)

Seriously though - which version are you using for testing and are you using automation (with your fix) to open a large(ish)  number of diagrams?  Because I ALREADY had the code correctly written - the dialog was triggered as observed.  The loop worked fine until the original diagram "went under".

I agree that your point about making sure you had focus is correct, but did you test under the circumstances I described?

Paolo

5884
Quote
After a second diagram is opened, and focus is set to this new diagram,
The validation for SelectedObjects will fail (The error you are seeing).
[size=18]...[/size]
Hi Alistair,

Thanks for the response, but your assertion doesn't seem to accord with the observed behaviour (see post #3).  The problem ONLY seems to arise when the original diagram becomes "Hidden".  (As I recall) The number of diagrams before the fault is triggered depends upon the screen size and the length of the diagram names...

Paolo

5885
Quote
Hi,

  I guess You have used the Diagram property SelectedObjects, use DiagramObjects instead. Or explain the situation while getting the error better - piece of code would be also fine.
Hi Ondrej,

Thanks for the somewhat tautological response...   ;)

The problem is that the Use Case requires the ability to select objects on a digram and then process them...

As I process the selected objects, I create new diagrams and lay them out.  Somewhere after the 5 such diagram, the bug is generated.

In thinking about the problem the only place where I do a selected objects is on the starting diagram.  Then, it struck me - having now got somewhat used to EAUI (EA's Unique Interface) I had a brain wave about what the problem might be - ran an experiment and voila the problem exposed...

As usual in EAUI the error message is somewhat spurious.  The bug is generated when the original selection diagram is forced off the visible workspace by the subsequent diagrams.  While the tab (for the selection diagram) is visible at the bottom of the work area, the automation proceeds correctly.  As soon as the tab disappears to the left, the bug is triggered.  EA incorrectly believes the digram is hidden and for reasons of its own decides that it shan't return selection information for the objects that are STILL selected on that diagram.

Bug reported...

Paolo

5886
The full text of the message is:
Selection information is unavailable on hidden diagrams

Anyone know what causes it (or even what it exactly means)?  

I can't yet reliably reproduce it and it stops my Add-In dead in its tracks when I'm trying to process a number of elements in a batch.

TIA,
Paolo

5887
Automation Interface, Add-Ins and Tools / Happy Birthday... IsComposite
« on: August 05, 2009, 02:17:31 pm »
Quote
I am currently working on adding a read/write IsComposite property for the Element interface. No confirmation yet as to when it will appear in EA as it has to go through the usual review and testing process. It will however abstract all the steps highlighted in this post into one variable assignment.
Hi Michael,

I just thought I'd wish your effort a happy birthday... (since the functionality isn't there as of interop.ea.dll 2.10.238.1) and the 8th Aug 2009 is a Saturday!  :o

No offense meant - since I'm SURE you aren't the reason the functionality hasn't surfaced yet...

It's just we've been needing this for YEARS...  :'(

Not holding breath,
Paolo

5888
Automation Interface, Add-Ins and Tools / Re: Alternate image in MDG
« on: July 08, 2010, 10:25:11 am »
Can you elaborate on that please Emma?

I'm not sure I understand the point you are making...

TIA,
Paolo

5889
Automation Interface, Add-Ins and Tools / Re: Alternate image in MDG
« on: April 30, 2010, 10:58:49 pm »
Quote
[size=18]...[/size]
I've used both techniques on past versions of EA. Although haven't tried it with V7.5 or 8.0.
Well, I've just tried option b) (which you've correctly noted is the one I'm after) on v8 and (just like before) it didn't work.  The image data IS generated into the XML file, but it doesn't seem to trigger the alternate image.

Can anybody confirm the process outlined for option b) works for v8?

TIA,
Paolo

5890
Automation Interface, Add-Ins and Tools / Re: Alternate image in MDG
« on: April 26, 2010, 09:55:34 am »
Quote
[size=18]...[/size]
Ah so that what you need Paolo. Well you need this friendly ShapeScript:
[size=18]...[/size]
Hi Kris,

I'm well aware of shapescripts for MDG - I've been reporting bugs with them for most of last week...  ;)

As usual, their behaviour is self inconsistent.

My point is that the Help documentation says I can do some things WITHOUT shapescripts (such as set alternate images).  These don't work either (at least I can't make it work so far).

Frustrating isn't the word...

Paolo

5891
Automation Interface, Add-Ins and Tools / Re: Alternate image in MDG
« on: April 23, 2010, 10:17:30 pm »
Quote
I tried to create an alternate image for my MDG but I can't get it to work...  I'm obviously missing the "special sauce".

Can any kind soul show me how it's done?  There were no effective references in a search.

TIA,
Paolo
Back to the original question...

I've created the emf file.  Added it to the profile (as per the Profile Structure Help topic) - checked it appears in the XML and still nothing...

Anyone got it to work?

Paolo

5892
Automation Interface, Add-Ins and Tools / Re: Alternate image in MDG
« on: April 23, 2010, 11:55:03 am »
Quote
My problem was I'd just coloured the element; NOT set the Default Appearance [F4].
Well,

I can now set the default appearance of the stereotyped element on creation from the profile.  What I CAN'T do is what I need - to create the default appearance of the stereotype.  I need to do the same as the Default Colours panel of the UML Types Stereotypes tab.

I need to be able to change the definition in the profile and when the new profile is loaded have the new definition applied to all the elements with that stereotype.

At present, using this current technology, if I change the Default appearance of the Stereotype - all the existing elements retain the old appearance - creating confusion all round.

Is it really THAT hard to get consistency?  I mean in a profile we're dealing with metadata.  The primary use case should be how to apply the characteristics at the stereotype (not element) level.  Being able to set the element specific characteristics is, at best, as supporting use case!

If, as I suspect, it isn't possible - at present.  I have a proposal for how to (easily) make that happen.

Thoughts?
Paolo

5893
Automation Interface, Add-Ins and Tools / Re: Alternate image in MDG
« on: April 22, 2010, 09:18:16 pm »
Quote
If you don't need the picture, just colors then you can do it without the shapescript. You just need to set "Default appearance F4" in appearance menu. And then select "Color and Appearance" in Save Profile dialog.
[size=18]...[/size]
Hi Kris,

Thanks! My problem was I'd just coloured the element; NOT set the Default Appearance [F4].

Working now...

Paolo


5894
Automation Interface, Add-Ins and Tools / Re: Alternate image in MDG
« on: April 22, 2010, 09:37:49 am »
Quote
What exactly to you mean with "alternate image" ? Do you mean the icon that will be shown in the MDG Technologies dialog ? This icon should be only a 16x16 bitmap maybe this is the problem.
No Michael,

I have those OK - thanks.

I'm after what Ross was mentioning.

Ross, I was aware of using shape scripts - but the help implied I didn't need to do that.

The Help also suggested that I could use the paintbox to set Stereotype default fill, border and font colours - but that doesn't seem true either.  You have to use shapescripts also - which in this latter case don't have the same functionality.  :(

Paolo

5895
Automation Interface, Add-Ins and Tools / Alternate image in MDG
« on: April 08, 2010, 08:29:19 pm »
I tried to create an alternate image for my MDG but I can't get it to work...  I'm obviously missing the "special sauce".

Can any kind soul show me how it's done?  There were no effective references in a search.

TIA,
Paolo

Pages: 1 ... 391 392 [393] 394 395 ... 418