Hi doday,
Your task perfectly fits for a plugin. The API license is only needed if you want to write an stand-alone program or windows service that works with articy:draft data.
If you write a plugin you derive your plugin class from from "MacroPlugin" base class which provides the current articy:draft ApiSession object as property.
Using the RunQuery(...) method on an ObjectProxy set the "self" reference to that object. If the query does not use that keyword it is the same as calling RunQuery on the session.
To get all Objects with a certain template you could use a query similar like:
- Code: Select all
SELECT * FROM Project WHERE TemplateName='MyTemplate'
You can download the source code of our demo plugins
here. They might give you a better overview than reading the documentation alone.