Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8550

WriteFile works on Rhino5 but does not work on Rhino6 to export vrml files

$
0
0

@Eliseo wrote:

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 );

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8550

Trending Articles