I’m working on a project where I need to import blocks from other rhino files to a current document.
I’m using a construction like this:
using (var libraryDoc = Rhino.RhinoDoc.CreateHeadless(null))
{
foreach (var filePath in filePaths)
{
if (!System.IO.File.Exists(filePath)) continue;
if (!libraryDoc.Import(filePath)) continue;
...
}
}
The problem is that sometimes the process interrupts asking for a confirmation from a user. And a user has to keep pressing Enter until all the blocks are imported.
Units and tolerances are the same in the current document and in the source doc.
Is there a way to suppress these messages?