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

Pages: [1]
1
Hi all,

I want to use an addin to add existing classes and objects in a package to an existing diagram in the same package. Sounds straightforward but..i am only a newbe. The .addNew method seems to work fine for creating new stuff and adding it to a Collection but what about stuff that already exists. Maybe its the order of .updates and .refreshs that just doesn't make the stuff appear on the diagram.
I have got some code that adds an an existing class(Element?) to an collection of DiagramObjects of a Diagram. It runs with no exceptions, just no class on diagram.
Cheers

2
Automation Interface, Add-Ins and Tools / adding notes to diagrams
« on: January 25, 2007, 01:47:54 am »
Am trying to add a series of free text string 'Notes' to diagrams via an addin.

All the notes I have been able to achieve are of the type DiagramNote (?) which includes version/date info. I want to add a simple note similar to the ones a normal user can via the GUI add and link to an element to anotate the diagram. I am beginning to supect that these types of simple notes are not part of the data model and can't be created by the API, am i right?

3
At last..it is working.
I followed instructions on the wiki page by Mr Barnes to the letter..with the following 3 exceptions, 2 of which seemed to be mandatory, one is optional.

Optional
1) used output path /bin/release (up to you?)

Mandatory
2) Needed to open a EA project (not just start it) (any will do)
3) Needed to refresh menu via Tools | Customise | Menu | Reset

I then added in some more stuff from the standard Framework example and..its all worked and then I had to get back to work (proper work).

thx to all that helped, especially other posts on the same subject.

I will try and post some more on what else is required to get the IDE to start the EA (based on the framework example?) then someone that knows more about wiki can update it all if they want.

4
Well i have just had a look at the the ea user group and the following link looks interesting

http://wiki.eausergroup.org/index.php?title=Automation_Addin

Thanks to Mr Barnes for this. I will have a go tonight and post how i get on (some of us don't have the luxury of being actually paid to write stuff for EA during the day - yet - when my project manager sees this working he might change his mind).

PS - i am based in the UK, anyone else in the same time zone?

5
er..no
i unregistered the object and then used the /codebase option and it returned a strong name warning but it did say it was registered.
But when i tried EA i stil didn't get any menus.
I tried copying the .dll and .tlb to the GAC with draganddrop and no luck either.
You might have guessed i am a bit new to .NET.

I am probably not alone in doing this and its a shame Sparx don't have a more robust 'how to' guide for .NET. There seems to be a few tweakes to make this work (see other threads) and they could do with updating the readme.txt in the example.

If anyone could help i would be happy to email a package.zip with my failed version, or could someone send me explicit C# .NET instructions for the standard example using VS Express 2005?

extra .. if i use the /codebase option of regasm, would it help if i regsiter the instance of the .dll that is in the /bin/release or /bin/debug dir of my VS project instead of the one i copied into the /EA folder in programe files?


6
ok, ok another newbe question on a familar theme 'how to get the basic example working' sorry to do this to you but could anyone help?

- used the C# CSFramework example
- complied using XP and MS VS express 2005 and 2.0 .NET framework to a .dll
- running EA 6.1.792
- copied the .dll and the .tlb to C:\Program Files\Sparx Systems\EA
- used regasm command 'regasm CSAddinFramework.dll' (changed the name of example in VS, could this be the problem?)
- registered key in the \sparc systems\EAAddins following instructions in other threads on this site
- loaded EA, refreshed the menus (another thread solution)
- still no new menus

running out of ideas, seemed to have done everything everyone else has in other threads.

Pages: [1]