8.2. About Scripted Services

You can write your own M2Doc services by adding JavaScript scripts to your project. For more information about scripts in medini analyze, see the "Ansys medini™ analyze Scripting and API Documentation" guide.

In writing M2Doc services, note that:

  • Trailing numerical characters, such as the 2 in the function name foo2(a,b), are interpreted as defining the number of parameters. These numbers are removed from the actual service name. No number means there is a default of one parameter.

  • The first parameter is always the calling object. If there is only one parameter, there are no additional parameters in the parentheses ( ) of the service.