Author Topic: Getting started...  (Read 3951 times)

Gary W.

  • EA User
  • **
  • Posts: 139
  • Karma: +0/-0
    • View Profile
Getting started...
« on: May 03, 2005, 05:31:26 pm »
Hi,

Can anyone clarify the instructions at:
http://www.sparxsystems.com.au/AutIntVBSetup.htm

... in the case of MS Word?  I don't see a Tools -> References in Word 2003, nor do I see it in EA (4.50.747).

If it's Visual Basic that I'm missing, then can I still access EA objects from MS Word?   I've downloaded:
http://www.sparxsystems.com.au/bin/AutIntBas.zip

In Word's Macro editor, it stops on "Dim rep As EA.Repository".    

Am I stuck unless I install Visual Basic?  If not, how do I tell Word about the EA methods?

TIA,
Gary

P.S.  Sorry the seemingly dumb question.  There's lots of docs on this in the EA on-line help and Forum posts... however, it's not getting through my thick skull.

P.P.S.  I'm not really looking for 'automation' per se.. I just want to get the class notes into a text file, reformatted to my specifications.  Basically, I've created a relational model from my class model, where the specializations are rows of data in a hiearchical table (i.e. with a recursive foreign key to itself).   I'd like to do a 'SQL INSERT' with my notes, but of course I need to escape the quotes and add the SQL*Plus continuation character at the end.  If there's a simpler way to get this data out of EA into a formatted text file, I would *love* to hear it!  Thanks again.

fwoolz

  • EA User
  • **
  • Posts: 435
  • Karma: +0/-0
  • We have met the enemy, and he is us.<Pogo, 1970>
    • View Profile
Re: Getting started...
« Reply #1 on: May 03, 2005, 07:12:21 pm »
The 'Tools->References' menu option can be accessed from the Visual Basic window. Open the Visual Basic Editor by selecting 'Tools->Macro->Visual Basic Editor' in Word 2003. Then click 'Tools->References' in the Visual Basic editor. There should be an entry in the dialog box than opens (scroll down) for 'Enterprise Architect Object Model N.NN' (on my machine N.NN is 2.10). Check the box to the left, and the library will be added to the list of checked references shown at the top of the dialog box list.
Fred Woolsey
Interfleet Technology Inc.

Always be ready to laugh at yourself; that way, you beat everyone else to the punch.


Gary W.

  • EA User
  • **
  • Posts: 139
  • Karma: +0/-0
    • View Profile
Re: Getting started...
« Reply #2 on: May 06, 2005, 11:59:01 am »
Fwoolz,

Yup, I see it now..

thanks!
Gary