Chapter 1: Introduction

The M2Doc feature in Ansys medini® analyze™ enables you to report project contents into a Microsoft Word file (DOCX or DOCM) which you format to your needs.

Ansys medini analyze is based on the Eclipse Modeling Framework (EMF). M2Doc is a template language built on top of Eclipse's Acceleo Query Language (AQL). M2Doc makes use of AQL to navigate and query EMF models.

To generate a report, you supply medini analyze with a Microsoft Word template (DOCX or DOCM) that is readable with M2Doc. Use Microsoft Word or a compatible product to create and format the template, for example with sections and tables. Insert dynamic fields that contain variables or expressions. During report generation, medini analyze evaluates the fields and writes the resulting data from your safety project into the report.

About this Guide

This guide is for creators of M2Doc templates. Basic scripting knowledge is helpful. The guide describes examples of typical uses of AQL and M2Doc in medini analyze. Additional resources are also available.

  • For more information about AQL, see the Eclipse website.

  • For more information about M2Doc control statements, see the M2Doc website.

  • To learn how to generate a report in medini analyze using an existing M2Doc template, see the Ansys medini analyze User Guide in the Ansys Help Portal.

  • In addition, the Ansys medini analyze forum is regularly updated with M2Doc examples.