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

Pages: 1 ... 6 7 [8]
106
Hi all
This thread is a feedback on thread
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1268231528

I have managed to find a way to achieve this but would appreciate any comments in case I have done something wrong!

Linking to element notes
Code: [Select]
string query = "UPDATE t_object SET PDATA1='Element Note' WHERE Object_ID=" + noteElement.ElementID;
Repository.Execute(query);
query = "UPDATE t_object SET PDATA2=" + TargetElement.ElementID + " WHERE Object_ID=" + noteElement.ElementID;
Repository.Execute(query);
query = "UPDATE t_object SET PDATA4='Yes' WHERE Object_ID=" + noteElement.ElementID;
Repository.Execute(query);
This pattern can be followed for other link options but for some of these you need to use PDATA3 as well

Thanks

Graham

107
Hi Everyone
I have been trying to create a link from a note to an element feature but not had any success.
Trawling throught the forum I see a couple of posts talking about the connection's StyleEx property. if, from within my code I look at an existing note linked to an element feature this property is the empty string.

What is the best approach to creating such a link

Thanks

Graham

108
Automation Interface, Add-Ins and Tools / Add note to a diagram
« on: March 10, 2010, 07:37:35 pm »
Hi Everyone
I have gone through all the examples and searched this forum but I cannot find how to add a note element to a diagram.
Please can someone point me in the right direction

Thanks

Graham

109
Automation Interface, Add-Ins and Tools / Starting to develop add ins
« on: March 10, 2010, 01:26:28 am »
Hello everyone
I am just starting to look at developing some EA Addins.
THought I might start by creating a diagram when the user has a UseCase selected.
I looked at the c# samples and see how to get menus operating, however, these samples dont show what can be done after.
For example how do I know what type of element is selected when the menu is in operation. What are the commands to add a diagram etc
Any help is appreciated

Graham

110
Hi
I have successfully compiled the c# example CS_AddinFramework and have started to develop an addin around this.
I created a c# class library project and copied the code from the example
I copied all the project settings and set the registry as I did for the example
My namespace is MyAddin and the entry point is Main.
However when I run EA and look at the Addin manager my addin gives and error-not found message.
Does anyone know what I may have done wrong?

Thanks

Graham

PS
Dont know if it is important but I get the following warning when I build my version
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets : warning MSB3214: "C:\VSProjects\Addin2\bin\Debug\Addin2.dll" does not contain any types that can be registered for COM Interop.

Pages: 1 ... 6 7 [8]