Draftsight API - DSAddin - wait for user selection?

Hi,

Anyone familiar with the Draftsight API?

I'm having issues waiting for user interaction (selection) in a DSAddin. The code is working when run in a standalone application, but when implemented as a plugin (DSAddin) the code is not waiting for user selection. Anyone have an idea how to wait for the selection?

[code]

bool singleSelection = false;
string prompt = "Select elements";
string errorMessage = "Unknown entity";

if (dsCommandMessage.PromptForSelection(singleSelection, prompt, errorMessage))
{
//This is working in a standalone application, but not in a DSAddin
}

//code is not blocking/ waiting for user interaction instead it just runs through...

[code]

Commandline is displaying:
Select elements>> <>

BR,
Markus