Write virtual world to virtual world 3D file





vrworld object representing a virtual world


Name of virtual world 3D file, specified as a string. You can specify a .wrl (VRML), .x3dv or .x3d (X3D in classic or XML format) file.


Make an additional copy, specifying all resources relative to actual virtual world location. Set to true or false.


The save method saves the current virtual world to a VRML97 file or X3D file, based on the file extension (.wrl or .x3d) that you specify. The virtual world must be open for you to use this method.

If the virtual world is associated to a VRML file, it can be saved to the VRML or X3D file formats. If the virtual world is associated to an X3D file, it can be saved only to one of the X3D file formats.

Lines are indented using spaces. Line ends are encoded as CR-LF or LF according to the local system default. Values are separated by spaces.

If you specify a VRML file, the resulting file is a VRML97 compliant UTF-8 encoded text file.

The optional export argument saves an additional copy of the virtual world, specifying all resources relative to the actual virtual world location. Resources include virtual world elements such textures and resources from the Simulink 3D Editor library. This option supports using a Simulink® 3D Animation™ virtual world outside of Simulink 3D Animation.

Was this topic helpful?