motohawk_project

The motohawk_project M-script creates a new MotoHawk™ project that is constructed from a template. The created model illustrates what a MotoHawk™ model could look like. It illustrates the use of the Target Definition block and instantiates as examples some inputs and outputs. This script can be used to quickly create a starting point for a MotoHawk™ project.

motohawk_project(project, [model_name], [model_description])

project

The script will create new directory called project that will be used to house the files related to the sample project. This is a required string parameter. The project may be an absolute path or a path relative to the current working directory. It may contains spaces and any other characters that are legal for a path.

An error will result if the directory specified by the project already exists.

model_name

An optional string parameter, the created model will be named model_name when supplied. The name of the leaf directory specified by the project path will be used if a model_name is not supplied. The model_name must starts with a letter and contain only letters, numbers and underscores.

model_description

An optional string parameter, the model will set the model's properties to the value of model_description and also apply this description in the title on the top sheet. The name of the leaf directory specified by the project path will be used if a model_description is not supplied.