Class RvmSaveOptions

RvmSaveOptions class

Save options for Aveva PDMS RVM file.

public class RvmSaveOptions : SaveOptions

Constructors

NameDescription
RvmSaveOptions()Constructor of RvmSaveOptions
RvmSaveOptions(FileContentType)Constructor of RvmSaveOptions

Properties

NameDescription
AttributeListFile { get; set; }Gets or sets the file name of attribute list file, exporter will generate a name based on the .rvm file name when this property is undefined, default value is null.
AttributePrefix { get; set; }Gets or sets the prefix of which attributes that will be exported, the exported property will contains no prefix, custom properties with different prefix will not be exported, default value is ‘rvm:’. For example if a property is rvm:Refno=345, the exported attribute will be Refno = 345, the prefix is stripped.
Author { get; set; }Author information, default value is ‘3d@aspose’
CreationTime { get; set; }The timestamp that exported this file, default value is current time
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.)
ExportAttributes { get; set; }Gets or sets whether to export the attribute list to an external .att file, default value is false.
ExportTextures { get; set; }Try to copy textures used in scene to output directory.(Inherited from SaveOptions.)
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.)
FileNote { get; set; }File note in the file header.
FileSystem { get; set; }Allow user to handle how to manage the external dependencies during load/save.(Inherited from IOConfig.)
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.)

Examples

The following code shows how to export attribute in RVM.

Scene scene = new Scene();
var box = new Box().ToMesh();
//node's name is required to export attributes
var boxNode = scene.RootNode.CreateChildNode("box", box);
boxNode.SetProperty("rvm:Price", 12.0);
boxNode.SetProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//Properties with rvm: prefix will be exported.
opt.ExportAttributes = true;
opt.AttributePrefix = "rvm:";
opt.Author = "Aspose.3D";
opt.FileNote = "Test attribute export";
scene.Save("output.rvm", opt);

See Also