Hi,
This code works fine in Rhino 5 for exporting an wrml file but in Rhino 6 it is exported a 3dm file.
I can´t find a method to export objects to a wrml file…
Thanks
DialogResult rc;
string tex_name, tex_name_dst, dst_path, filename;
System.Windows.Forms.SaveFileDialog gf;
FileWriteOptions options;
gf = new System.Windows.Forms.SaveFileDialog( );
gf.Title = "VRML Export"
gf.AddExtension = true;
gf.CheckPathExists = true;
gf.DefaultExt = ".wrl";
rc = gf.ShowDialog( RhinoApp.MainApplicationWindow );
if ( rc != DialogResult.OK ) return false;
filename = gf.FileName.Trim( );
if ( string.IsNullOrEmpty( filename ) ) return false;
options = new FileWriteOptions( );
options.WriteSelectedObjectsOnly = true;
RhinoDoc.ActiveDoc.WriteFile( filename, options );