How to verity the existence of an Export Scheme


I’m currently writing a DWG File Exporter using

RhinoApp.RunScript(command, true);

I was wondering if there is a Method which let’s me verify the existence of Export scheme, before running the script. (Which might run into an Error, if the “Scheme” doesn’t exist).

I thought I could maybe check the existence of an Scheme File (*.ini) in the default folder location. I couldn’t find the location though.

So here a short summery:

  • Are there special Export Scheme files? And if so, where are they located?
  • Is there an alternative way of testing the Existence of Export Schemes?


Hallo Martin,

not shure if the default Scheme names are exposed somewhere. But if the user created a new scheme using the _AcadSchemes dialog and closed / reopened Rhino since then, the scheme name is listed with its settings in the registry. You can find it here:

HKEY_CURRENT_USER\Software\McNeel\Rhinoceros\5.0x64\Scheme: Default\Plug-ins\39a88493-9e97-4f15-bd62-ad25896a2632\Settings

If ...Settings/SchemeName does not exist, you should might stop the exporter (EDIT: if it is not an existing default scheme name) :wink:

Btw. There is a visual dialog to just set the current dwg scheme _DWGExportOptionsDialog. You could pop this up before export, then script the export command and use _Enter when it asks for the scheme name if this is not too obtrusive…


Hi Clement,

didn’t know about the _DWGExportOptionsDialog

That might be an option.

The registry approach is probably working quite good. I’ll check that out.