I think this is not possible yet. There are a little few
actions that you cannot automated as is today unless you use
wscript (which is simulating clisks rather than manipulating
the core engine).
Some examples are given in the VBScript directory.
> Hello powerdesigner newsgroup,
>
> I used C# and OLE automation to build a PDM with
> powerdesigner 9.5.2 (I used the examples in the
> "C:\Program Files\Sybase\PowerDesigner Trial 9\OLE
> Automation\CSharp Samples" folder as a starting point).
>
> This works fine, but now, I would like to generate the
> database script in code using C# and OLE automation. Does
> anyone know if it is possible and what the best approach
> is?
>
> Thanks,
>
> Kristof Van Praet
>
>
May be you can look at the "Preview" property of the model (available
depending on your xem contents)
This contains what would be generated, in one string, separated by header
for each xem.
But you may need to sometime manipulate the xem file (always work on a copy,
of course)
For example, I noticed that the C# xol contains a test in
"C#::Profile\Model\Criteria\VisualStudio.NET\Generated Files\SolutionFile"
<<
.if (%PreviewMode% == false) ...
>>
to not generate in preview mode (that is exactly what you want !)
Good luck,
Marc.
<TS> wrote in message news:3fd04779.34...@sybase.com...