Instant generator

To generate code from a project through command line:

  1. Browse the scripts folder under the VP Suite installation directory.
    The scripts folder inside VP Suite installation directory
    The scripts folder inside VP Suite installation directory
  2. Copy the script file InstantGenerator and paste to the bin folder of VP Suite installation directory.
    Copy and paste InstantGenerator from scripts folder to bin folder
    Copy and paste InstantGenerator from scripts folder to bin folder
  3. Start the command prompt.
  4. Navigate to the bin folder of VP Suite installation directory.
    Navigate to the bin folder of VP Suite in command prompt
    Navigate to the bin folder of VP Suite in command prompt
  5. Execute the script by supplying the required parameters. For example:
    InstantGenerator -project C:\Demo\Demo.vpp -out C:\Demo\Output 
    Executing InstantGenerator
    Executing InstantGenerator
    Below is a description of parameters:
    Parameter Description Example
    -project Project path
    C:\Demo\Demo.vpp
    -out The folder path of generated source files
    C:\Demo\Output
    -template [optiona]
    The path of template folder. Unless specified, the default folder will be selected.
    C:\MyTemplates
    -lang [optional]
    Specify the language to generate. Unless specified, the lastly selected language (saved in project file) will be generated. Here are the possible options:
    • Java
    • C#
    • VB.NET
    • PHP
    • ODL
    • ActionScript
    • IDL
    • C++
    • Delphi
    • Perl
    • XSD
    • Python
    • Objective-C
    • Ada95
    • Ruby
    C++
    Parameters for InstantGenerator
    NOTE: Code generation through command line generates only classes selected to generate when running VP-UML. In other words, you must at least generate once in VP-UML in order to make command line generation work.