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 - peppermint-bunny

Pages: [1]
1
Automation Interface, Add-Ins and Tools / Re: SpearFish Plugin
« on: October 28, 2009, 12:29:43 am »
Alex,

What language have you written your plugin in?  I like the sound of your use case functionality.

Cheers

2
Automation Interface, Add-Ins and Tools / Re: Delphi language features
« on: November 07, 2009, 09:14:22 pm »
Simon,

Can I take you up on you kind offer of help?

I'm using Delphi and am trying to iterate thro my model.  I can create a repository com object and can access .MODELS and can get .MODELS.COUNT.

But I'm struggling to go further. The sticking point is the ubiquitous GetAT(i: integer) call which returns an IDispatch.  I can't use this interface pointer to get anywhere.  
I'd like to get a list of all packages, with their PackageID, name, and count of child packages, diagrams for starters.
I've tried casting the IDispatch to IDualPackage and to TPackage without success.  

Can you advise me how to interrogate the Models in the Repository object using Delphi?

Many thanks

3
Automation Interface, Add-Ins and Tools / Re: Delphi language features
« on: November 07, 2009, 09:14:14 pm »
Simon,

Can I take you up on you kind offer of help?

I'm using Delphi and am trying to iterate thro my model.  I can create a repository com object and can access .MODELS and can get .MODELS.COUNT.

But I'm struggling to go further. The sticking point is the ubiquitous GetAT(i: integer) call which returns an IDispatch.  I can't use this interface pointer to get anywhere.  
I'd like to get a list of all packages, with their PackageID, name, and count of child packages, diagrams for starters.
I've tried casting the IDispatch to IDualPackage and to TPackage without success.  

Can you advise me how to interrogate the Models in the Repository object using Delphi?

Many thanks

4
Automation Interface, Add-Ins and Tools / Re: Delphi language features
« on: October 14, 2009, 01:55:00 am »
I haven't seen anything like this around.  How complex do you want your code to be?

In the first instance I guess we need to get up and running - ie doing simple things like connecting to EA, iterating through the model.  Modifying some attributes, adding new one, delete etc.  And the same thinkg with elements and connectors.   At the moment I've not been able to create a link between Delphi and EA.  Have you managed to do this?

5
Automation Interface, Add-Ins and Tools / Re: Delphi language features
« on: October 13, 2009, 05:25:05 am »
I've spent some time now looking at c#.  it looks promising for what I need to do.  However, I'd be interested in developing delphi support for EA.  Which version of delphi are you using?

6
Automation Interface, Add-Ins and Tools / Re: Delphi language features
« on: October 12, 2009, 10:20:52 pm »
I've tried to work with EA and Delphi but have failed miserably!  I've not upgraded to the latest version - I'm still using D6.   :'(

7
Automation Interface, Add-Ins and Tools / Re: My first extension to EA
« on: October 19, 2009, 08:05:48 pm »
Oliver,

Thanks for you reply.  You have given me a lots of options to mull over!  I think Ill try developing both an addin and a standalone and see the pro's and con's of each for my current problem.  This will help me learn about about. (I'm thinking of recording my efforts on a blog)

I really do like your idea of a file containing the connection information which my extension could parse and then act on.  Great idea.  i can see this as quite realistic to implement on a large project with several modellers.

Charlotte

8
Automation Interface, Add-Ins and Tools / My first extension to EA
« on: October 16, 2009, 11:57:17 pm »
I am working on a very large project in which we have imported into our EA project via a csv file several hundred elements.  I now have to establish connectors between the elements.  I was hoping to write a c# app to facilitate this.
I can link between c# and my ea project.  And I understand how to create a new connector and set the object id for the start and end.
I have two questions:
1) should I develop an addin or a standalone exe?
2) how does my app identify the 2 elements to be connected?  I was thinking of the user clicking on the start and end element in the project browser.

Any advice would be much appreciated.

Pages: [1]