Print Page | Close Window

MetaEdit API :: Run Generator

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: https://www.metacase.com/forums/forum_posts.asp?TID=26
Printed Date: 27.Mar.2026 at 00:26
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: MetaEdit API :: Run Generator
Posted By: martind
Subject: MetaEdit API :: Run Generator
Date Posted: 24.Apr.2008 at 19:42
Hello,

is there an API-Method with which it is possible to invoke a generator inside MetaEdit+? If not is there maybe some kind of workaround?

Regards,

Martin



Replies:
Posted By: stevek
Date Posted: 25.Apr.2008 at 00:16
You can use either of the following:
 
MENull forAll
 
(MENull receiver,
  string forAll,
  string run)

For all graphs whose type name matches the forAll wildcard argument, run the generator named run.
MENull forName
 
(MENull receiver,
  string forName,
  string type,
  string run)

For all graphs whose name matches the forName wildcard argument, and whose type matches the type wildcard argument, run the generator named run.
 
The MENull receivers are because these are based on command line operations, which have no receiver. E.g. in Java (where receiver parameters come before the method name) you might have:
com.metacase.MENull meNull = new com.metacase.MENull();
meNull.forName("2008Models", "WatchFamily", "Autobuild");
meNull.forAll("Watch*", "Export graph to HTML");
All the other command line operations can be used as API methods too. This nicely integrates the three MetaEdit+ automation facilities: http://www.metacase.com/support/45/manuals/mwb/Mw-5_3.html - generators , http://www.metacase.com/support/45/manuals/mwb/Mw-8.html - API , and http://www.metacase.com/support/45/manuals/mwb/Mw-9.html - command line , all of which can start each other. When command line operations are used as API methods, the method name is the command line parameter up to the first colon (e.g. forAll:run: becomes forAll). The receiver is always an MENull, any arguments are strings, and the return value is always an MENull. If you look in the WSDL saved from the http://www.metacase.com/support/45/manuals/meplus/Mp-5_4_1.html - API Tool , you can find the command line API message definitions on lines 777-923, and the operations on lines 1455-1559.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net