MetaCase Homepage
Forum Home Forum Home > > MetaEdit+
  New Posts New Posts RSS Feed - MetaEdit API :: Run Generator
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

MetaEdit API :: Run Generator

 Post Reply Post Reply
Author
Message
martind View Drop Down
Contributor
Contributor
Avatar

Joined: 18.Apr.2008
Location: Bremen, Germany
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote martind Quote  Post ReplyReply Direct Link To This Post Topic: MetaEdit API :: Run Generator
    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
Back to Top
stevek View Drop Down
MetaCase
MetaCase
Avatar

Joined: 11.Mar.2008
Points: 643
Post Options Post Options   Thanks (0) Thanks(0)   Quote stevek Quote  Post ReplyReply Direct Link To This Post 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: generators, API, and 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 API Tool, you can find the command line API message definitions on lines 777-923, and the operations on lines 1455-1559.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.05
Copyright ©2001-2022 Web Wiz Ltd.

This page was generated in 0.016 seconds.