@Thierry_BOCK wrote:
Hello,
Rhino hangs when calling _-Export “c:\path\to\file.dxf” a second time
Rhino is started by a script running in the background (session 0), so i cannot see what the problem is. To narrow down the problem, i have used File.WriteAllText.
The plugin is working as expected when called by a script from the powershell command, but not when run from a background service.The file contains many objects in groups spread over several layers.
for each group clear the current selection, then select the objects of the group, and export them
the problem occurs when i export objects the second time using (path beind the dxf file path, i have set _acadschemes, but also fails with ’ _Scheme=“2004Natural” _Enter’ , note it is a custom scheme based on “2004 Natural”, not a typo):string cmd = “_-Export “” + path + “.dxf” _Enter”;
if (!RhinoApp.RunScript(cmd, true)) {/* code to log the error */}i have tried everything I could think of.
this : RhinoCommon - SaveAs does not work ( the delegate is not called when it should be).Also, the same happens with dwg
Switching to Rhino6 is not currently an option.
Posts: 2
Participants: 1