Class RvmLoadOptions

RvmLoadOptions class

Load options for AVEVA Plant Design Management System’s RVM file.

public class RvmLoadOptions : LoadOptions


RvmLoadOptions()Construct a RvmLoadOptions instance
RvmLoadOptions(FileContentType)Construct a RvmLoadOptions instance


AttributePrefix { get; set; }Gets or sets the prefix of the attributes that were defined in external attribute files, The prefix are used to avoid name conflicts, default value is “rvm:”
CenterScene { get; set; }Center the scene after it’s loaded.
CylinderRadialSegments { get; set; }Gets or sets the number of cylinder’s radial segments, default value is 16
DishLatitudeSegments { get; set; }Gets or sets the number of dish’ latitude segments, default value is 8
DishLongitudeSegments { get; set; }Gets or sets the number of dish’ longitude segments, default value is 12
Encoding { get; set; }Gets or sets the default encoding for text-based files. Default value is null which means the importer/exporter will decide which encoding to use.(Inherited from IOConfig.)
FileFormat { get; }Gets the file format that specified in current Save/Load option.(Inherited from IOConfig.)
FileName { get; set; }The file name of the exporting/importing scene. This is optional, but useful when serialize external assets like OBJ’s material.(Inherited from IOConfig.)
FileSystem { get; set; }Allow user to handle how to manage the external dependencies during load/save.(Inherited from IOConfig.)
GenerateMaterials { get; set; }Generate materials with random colors for each objects in the scene if color table is not exported within the RVM file. Default value is true
LookupAttributes { get; set; }Gets or sets whether to load attributes from external attribute list file(.att/.attrib/.txt), default value is true.
LookupPaths { get; set; }Some files like OBJ depends on external file, the lookup paths will allows Aspose.3D to look for external file to load.(Inherited from IOConfig.)
RectangularTorusSegments { get; set; }Gets or sets the number of rectangular torus’ radial segments, default value is 20
TorusTubularSegments { get; set; }Gets or sets the number of torus’ tubular segments, default value is 20


The following code shows how to customize the tessellation parameters for primitive geometries imported from RVM file using RvmLoadOptions.

RvmLoadOptions opt = new RvmLoadOptions();
opt.RectangularTorusSegments = 30;
opt.CylinderRadialSegments = 20;
opt.DishLatitudeSegments = 20;
opt.DishLongitudeSegments = 20;
opt.CenterScene = true;
var scene = Scene.FromFile("input.rvm", opt);

See Also