Both very valid remarks, but ..
The function handling the inserting & setting of the blockreferences is one and the same.
When the function is called via the command-line in BricsCAD (we added an <CommandMethod("runInsert")> to it so we can call it)
all goes well.When we call the
exact same function from a form, the newly inserted
blocks behave oddly. When we select & delete them, they remain drawn on screen untill a 'regen' is triggered.Would this have to do with threading ? Depending from wich thread ('winform GUI' or 'BricsCAD application') this function got called from ?
The 'temp' fix we got in place is instead of calling the insert-function from the button-click event on the form, we do a 'acDoc.SendStringToExecute' to call the function via the command-line