RvmSaveOptions.AttributePrefix

RvmSaveOptions.AttributePrefix property

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.

public string AttributePrefix { get; set; }

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