Asynchron function 'COTLIN' compared to AutoCAD

Hello,

My macro for AutoCAD uses "documentEditor.Command("._COTLIN")" to apply the command COTLIN which makes you choose 2 points before continuing the script in VB.

But if i want to use it in BricsCAD, the command doesnt pause the program which will not find the new object created by COTLIN. How can i make the code wait that COTLIN finished its work before reading the script ?

Thank you, Tanhuy