Book a Demo

Author Topic: CreatingModel Method  (Read 6174 times)

pwhiston

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
CreatingModel Method
« on: November 23, 2006, 05:36:36 am »
I am looking to create an EA model using the automation interface and have spotted the CreateModel method. However it doesn't seem listed in the documentation. Is it supported and can anyone tell me what the parameters mean ie
(EA.CreateModelType CreateType, string FilePath, int ParentWnd)

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: CreatingModel Method
« Reply #1 on: November 23, 2006, 06:12:42 am »
Quote
I am looking to create an EA model using the automation interface and have spotted the CreateModel method. However it doesn't seem listed in the documentation. Is it supported and can anyone tell me what the parameters mean ie
(EA.CreateModelType CreateType, string FilePath, int ParentWnd)
I'm afraid you'll need to specify what you mean by the term creating a model (in this context)...

The term Model has at least three different meanings that I have found within EA the product, the EA help system, the EA website and the EA automation documentation and the automation interface.  Sometimes it has more than one meaning withn the same context...

Welcome to EA's UI (Unique Interface)

Paolo
Manage Complexity,
       Reduce Ambiguity,
               Eliminate Inconsistency!
TM


[size=10]PS: the term model can mean:
Model = Repository (including EAP file) also sometimes and ambiguosly known as a Project
Model = Subject Area - what you see at the top of the Project Browser  also knowns as a Project Root
Model = A subset of one or more Subject Areas - a more general (and public) use of model.[/size]
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

pwhiston

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: CreatingModel Method
« Reply #2 on: November 23, 2006, 06:25:31 am »
Okay.
I have no EAP file at all to open and I wish to create a new one automatically.
I subsequently then wish to launch EA and open this EAP.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: CreatingModel Method
« Reply #3 on: November 23, 2006, 08:48:40 am »
Quote
Okay.
I have no EAP file at all to open and I wish to create a new one automatically.
I subsequently then wish to launch EA and open this EAP.
OK...

Unfortunately can't help with the parameters.

But as a work-around, you could create an empty repository via the UI and copy that to a new location and then get EA to open the new one.  This has the added benefit that it mimics the EA Copy a Base Project... functionality (but without the Reset New Project GUIDs option).

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!