0

I saw "Ole Automation" examples of creating Physical Database Model elements, but there is no examples of opening an existing DB model. Can someone please help me? My expectations are similar to this pseudo-code:

    PdCommon.Application pd;
    pd = PdCommon.OpenApplication(%Path%);
    ...
Andrii Horda
  • 170
  • 1
  • 16
  • 1
    In scripting (VBScript), there's an `OpenModel` global function, which seems to be part of the `Application` interface. Maybe `PdCommon.Application.OpenModel`? – pascal Oct 28 '13 at 16:38
  • @pascal, you were right. It can be done by using OpenModel method of existing application. `PdCommon.Application pdApplication;` `PdPDM.Model pdModel;` `pdApplication = new PdCommon.Application();` `pdModel = (PdPDM.Model)pdApplication.OpenModel(@"C:\SVN\RAS_DB_Control\trunk\Northwind - MS\Model\Northwind.pdm");` – Andrii Horda Oct 28 '13 at 19:35

1 Answers1

1

pascal was right.

 PdCommon.Application    pdApplication;
 PdPDM.Model             pdModel;

 pdApplication = new PdCommon.Application();
 pdModel = (PdPDM.Model)pdApplication.OpenModel(@"C:\SVN\RAS_DB_Control\trunk\Northwind - MS\Model\Northwind.pdm");
Community
  • 1
  • 1
Andrii Horda
  • 170
  • 1
  • 16