RvmSaveOptions.ExportAttributes
RvmSaveOptions.ExportAttributes property
يحصل أو يعيّن ما إذا كان سيتم تصدير قائمة السمات إلى ملف .att خارجي، القيمة الافتراضية هي false.
public bool ExportAttributes { get; set; }
أمثلة
الكود التالي يوضح كيفية تصدير السمة في RVM.
Scene scene = new Scene();
var box = new Box().ToMesh();
//اسم العقدة مطلوب لتصدير السمات
var boxNode = scene.RootNode.CreateChildNode("box", box);
boxNode.SetProperty("rvm:Price", 12.0);
boxNode.SetProperty("rvm:Weight", 30.0);
var opt = new RvmSaveOptions();
//الخصائص ذات البادئة rvm: سيتم تصديرها.
opt.ExportAttributes = true;
opt.AttributePrefix = "rvm:";
opt.Author = "Aspose.3D";
opt.FileNote = "Test attribute export";
scene.Save("output.rvm", opt);
انظر أيضًا
- class RvmSaveOptions
- namespace Aspose.ThreeD.Formats
- assembly Aspose.3D