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.


Topics - Ondrej Kolenaty

Pages: [1]
1
Suggestions and Requests / Element's attribute reference in notes
« on: February 29, 2008, 03:01:55 am »
Would it be possible to any element's attribute (ie. name, value of Tagged Value etc.) to notes and scenarios (the RTF ones newly in EA 7.1). That will update after change in the target element?

An example: in class A note i would like to refer to class B's name. And after I change name of B to "C" the note in class A will remain uptudate and the note will contain "C" instead of "B".

2
Hello,

  is there any way how to run scripts from model via automation interface?

Thank You.

3
Hello,

  is there any way how to manage custom cross references trough Automation Interface? There is no clue on this topic in help.

Thank You.

P.S: The way going directly to database is not solution.

4
Hi,

  does anyony know whether there is any speed diference, if any, between Repository.GetElementById and Repository.GetElementByGUID functions?
 I am making quite complicated transformation, with usage of addin functions, and I would like to improve the performance.

Thx.

5
Hi,

  I am wandering how to set class template type (the one from Class properties/tab Details) to "Instantiated" using the intermediate file.
I found no clue in documentation and this forum.

Thank You.

6
Does anyone know how to get application handle? I need if for Windows function:

Code: [Select]
int MessageBox(          HWND hWnd,
    LPCTSTR lpText,
    LPCTSTR lpCaption,
    UINT uType
);

Thanx.

7
Hello,

 I am trying to customize my addin menu based on selected item in GetMenuItems event. I use this code:
Code: [Select]
function TEARPlugin.EA_GetMenuItems(const aRepository: IDispatch;
  const aLocation, aMenuName: WideString): OleVariant;
var obj : IDispatch;
begin
  Repository(aRepository).GetContextItem(obj); // "Repository" is IDualRepository synonym from EA_TLB
  .
  .
  .
end;

But this cause a acces violation error. Please, can anyone tell me what I do wrong?

I have D7, WinXP, EA7.1 (I even tried EA7.0 with freshly imported Type Library, but without success).

Thanx.

8
I have question about the XMLContent attribute of Scenario class. Is this attribte free to store user data by add-ins? Otherwise what it is used for? What is suggessted structure of the XML content.

9
Automation Interface, Add-Ins and Tools / EA 7.1 RichText Editor
« on: February 28, 2008, 08:27:51 am »
I would like to make Add-in that will "paste" a name of selected model element and will be able to update the name on request. I noticed that the richtext is stored as a simple HTML. Is there any possibility how use/extend features of the richtext edit used in EA 7.1?

Pages: [1]