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

Pages: [1]
1
Automation Interface, Add-Ins and Tools / Re: Error loading Addin
« on: April 15, 2005, 04:04:15 am »
The problem was resolved when I manually added the assemblies into the Application Folder and set the Register property to vsdraCOMRelativePath.

2
Automation Interface, Add-Ins and Tools / Error loading Addin
« on: April 14, 2005, 09:16:13 am »
Greetings,

I've successfully developed tested an Addin on my local machine. However, I'm having problems installing it on other machines. I'm receiving an dialog window that states:

There was an error loading Add-in:
<name of add-in>
Remove it from the list of Add-ins?

I suspect the add-in is not being registered by the .NET setup project even though I've specified vsdraCOM but it's tough to tell since EA's error message is so general - it doesn't indicate the precise reason for the failure.

Any ideas?

3
I'm having trouble installing my Add-in on other machines. I think it has something to do with COM registration. How did you register your add-in to COM?

Thanks,

Roy

4
Automation Interface, Add-Ins and Tools / Re: Behavior
« on: December 02, 2004, 01:01:36 pm »
I finally found some doc in the Help. It's listed as "Operation Detail."

5
Automation Interface, Add-Ins and Tools / Behavior
« on: December 02, 2004, 11:27:16 am »
Greetings,

I noticed there exists a "Behavior" tab in the properties dialog for a class's operation. Double clicking on a class's operation (in a class diagram) displays the dialog.

What does the "Behavior" tab do? I can't seem to find any doc on it. And, how do I access it from the automation interface?

Thanks,

Roy

6
Automation Interface, Add-Ins and Tools / Re: SelectedObjects Type
« on: January 14, 2005, 10:27:22 am »
Apparently, SelectedObjects returns a DiagramObject.

Here's the code I used to retrieve the name of a selected element on a diagram.

Note, I pass the EA repository to the method as an argument.

EA.Diagram m_EADiagram  =    
                          m_EARepository.GetCurrentDiagram();

EA.Element m_EAElement  =   null;
EA.DiagramObject m_EADiagramObject;

for( short i = 0; i <  
     m_EADiagram.SelectedObjects.Count; i++ )
{
   m_EADiagramObject =  (EA.DiagramObject)  

   m_EADiagram.SelectedObjects.GetAt(i);

   m_EAElement = m_EARepository.GetElementByID
                               (m_EADiagramObject.ElementID);
             
    MessageBox.Show(m_EAElement.Name);
}

7
Automation Interface, Add-Ins and Tools / SelectedObjects Type
« on: January 14, 2005, 09:02:58 am »
In the Diagram class, there is a collection called SelectedObjects.

What is the type of the objects within it?

I tried casting to the Element type, but received an exception.

Thanks!

Roy

8
Automation Interface, Add-Ins and Tools / Re: Diagram Elements
« on: December 15, 2004, 04:59:08 am »
Thanks for your reply. I've decided to take a different approach. I'm going to write an Add-In that is invoked by a menu item. The menu item will only be available when the state diagram is displayed and the Add-In will provide the functionality I need.

9
Automation Interface, Add-Ins and Tools / Diagram Elements
« on: December 14, 2004, 01:45:24 pm »
Greetings,

I need to know when a StateFlow arrow is selected by the mouse so that I can retrieve it's properties, in particular it's link name.

I know how to retrieve the link name I just need to know when a user selects the arrow.

Is there anyway, documented or not, that the EA Automation Interface or an Add-in can detect when a user selects a diagram element?

By the way, does anyone in Sparx Support ever read these forum messages?

Thanks,

Roy

10
Automation Interface, Add-Ins and Tools / Re: State Diagram Transitions
« on: December 07, 2004, 01:10:42 pm »
see the following attributes in the Connector class:

TransitionEvent  
TransitionGuard  
TransitionAction  



11
Automation Interface, Add-Ins and Tools / State Diagram Transitions
« on: December 06, 2004, 12:41:15 pm »
Where in the object model can the State Diagram transitions be found? I'm try to dump the Guard condition.

Thanks!

Pages: [1]