Book a Demo

Author Topic: Import XML Schema (XSD) with Automation Interface  (Read 5139 times)

venezohio

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Import XML Schema (XSD) with Automation Interface
« on: August 06, 2014, 01:10:26 am »
The Project class of the EA Automation Interface has GenerateXSD to generate XML Schema, which I have successfully used using VB and VBA.  Likewise, it has a ImportFile method (which I guess was intended for importing traditional programming language files.)  However, my attempts to use ImportFile for XSD have been unsuccessful.  How can one import an XML Schema (XSD) file using the Automation Interface?  In other words, I would like to do the equivalent of the following, but from a script or ActiveX COM Client (e.g., MS VB app or MS VBA macro):

1. From open model EA GUI,  right-click on a target "parent" package (e.g., a namespace package) (Note: I already can do this)

2. In resultant Right-mouse menu, navigate to Code Engineering-->Import XML Schema ...

3. From the Import XML Schema dialog, select the appropriate options and one or more XSD files to import into the EA model.

I'm using EA Version 10.0.1010,  Ultimate Edition. :question

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Import XML Schema (XSD) with Automation Interf
« Reply #1 on: August 06, 2014, 08:45:33 am »
Don't think the function exists in the API.

venezohio

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Import XML Schema (XSD) with Automation Interf
« Reply #2 on: August 06, 2014, 08:53:16 am »
Okay, thanks.  :(  I was afraid of that.  So, as a sort of work-around,   does EA provide a way to essentially record User GUI events/actions so as to produce the desire effect?

If not, is there an Add-Ins based API that provides this capability (as opposed to the Automation Interface API)?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Import XML Schema (XSD) with Automation Interf
« Reply #3 on: August 06, 2014, 07:22:06 pm »
The answer in no in both cases. Some tricky Windoze programmers can hack events programmatically but that's beyond my scope.

q.