Hi Norbert,
You should get that handling with the default C++ parsing. As an example from our code base,
std::vector<CubitString> ExportForestCommand::get_syntax()
{
std::vector<CubitString> commands;
CubitString syntax;
syntax = "export forest <string:label='mFileroot'>"
"[<entities:type='<block:label='mBlockList'>'>]"
"[overwrite]";
commands.push_back(syntax);
return commands;
}
and then in the execute method you do something like
std::vector<ElementOutputGroup*> block_entities;
if (data.get_entity_list("mBlockList", block_entities)) {
mBlockList = block_entities;
}
Karl