motohawk_update_titleblock_headers

The motohawk_update_titleblock_headers M-script will update the information in all of the MotoHawk title block annotations. This can be used to refresh the copyright date or address information.

updated = motohawk_update_titleblock_headers
        (model_name, copyright_year, [company_name, company_address, website])

updated

Non zero if the script updated the model supplied and zero otherwise.

model_name

The name of the model to be updated. The model is supplied without the suffix (.mdl, .slx) and must reside on the MATLAB path.

updated = motohawk_update_titleblock_headers('MyModel', 2017)

Opens MyModel and sets the Copyright date in all of the title blocks used in that model to 2017.

The copyright year to be written to the title block in the modlel. Can be a numeric or string.

company_name

Use this optional argument to explicitly specify the company name that is to be written to the title block. Is a string with a default of Woodward.

company_address

Use this optional argument to explicitly specify the company address that is to be written to the title block. Is a string.

website

Use this optional argument to explicitly specify the website that is to be written to the title block. Is a string.