I’m attempting to load a file into a headless instance of rhino, but the import keeps failing and I don’t understand why.
Here is my code:
string localPath = ".\\open.3dm";
RhinoDoc rd = RhinoDoc.CreateHeadless(null);
if (!rd.Import(localPath)) {
Console.WriteLine("Import failed");
} else {
Console.WriteLine("Import succeeded");
}
I made sure that open.3dm is in the same folder as my executable.
Any idea why this is failing?