Skip to Content

Automate import model with powershell

I need to be able to import a model from an Excel file in PowerDesigner and this I have to automate so that it is launched from the command line, via powershell. I have seen that there is a FILEIMPORT method but I can not import the file and it does not return any type of error.

How could I do it?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jun 27, 2019 at 09:19 AM

    Hi,

    you don`t even need Powershell to do that. You can launch pdshell16.exe either with parameter -r or -x and give him the path to the *.vbs script, which will run the functionality for importing metadata from excel. Here you have two options:

    1. You will call the method for importing in the standard ExcelImport extension (but you have to stick to the data structure required by ExcelImport extension)
    2. You can import data in any structure from excel, but you will have to script all the import logic by yourself.

    I did both ways many times and I recommend the first option, if you have the possibility to modify the excel structure to fit the ExcelImport extensions` needs.

    Regards,

    Ondrej

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.