Hi,Hi Ondrej,
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.
After a second diagram is opened, and focus is set to this new diagram,Hi Alistair,
The validation for SelectedObjects will fail (The error you are seeing).
[size=18]...[/size]
QuoteAfter a second diagram is opened, and focus is set to this new diagram,Hi Alistair,
The validation for SelectedObjects will fail (The error you are seeing).
[size=18]...[/size]
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
[size=18]...[/size]And I can assure you that under automation, I observed the behaviour documented. ;)
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.