![]() |
MetaEdit API :: Run Generator |
Post Reply
|
| Author | ||||
martind
Contributor
Joined: 18.Apr.2008 Location: Bremen, Germany Points: 16 |
Post Options
Thanks(0)
Quote Reply
Topic: MetaEdit API :: Run GeneratorPosted: 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 |
||||
![]() |
||||
stevek
MetaCase
Joined: 11.Mar.2008 Points: 643 |
Post Options
Thanks(0)
Quote Reply
Posted: 25.Apr.2008 at 00:16 |
|||
|
You can use either of the following:
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");
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.
|
||||
![]() |
||||
Post Reply
|
|
| Tweet |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |