دریافت مقدار ویژگی بلوک از مرجع خارجی
Contents
[
Hide
]دریافت مقدار ویژگی بلوک
Aspose.CAD for .NET API به شما این امکان را میدهد که یک مرجع خارجی از ویژگی بلوک را دریافت کنید. Aspose.CAD API ویژگی XRefPathName را برای دریافت مرجع خارجی ویژگی یک بلوک در مجموعه CadBlockDictionary فراهم میکند. در زیر نمایش کد برای دریافت مرجع خارجی ویژگی یک بلوک آورده شده است.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The path to the documents directory. | |
string MyDir = RunExamples.GetDataDir_DWGDrawings(); | |
string sourceFilePath = MyDir + "sample.dwg"; | |
// Load an existing DWG file as CadImage. | |
using (Aspose.CAD.FileFormats.Cad.CadImage cadImage = (Aspose.CAD.FileFormats.Cad.CadImage)Aspose.CAD.Image.Load(sourceFilePath)) | |
{ | |
System.Console.WriteLine(cadImage.BlockEntities["*MODEL_SPACE"].XRefPathName); | |
} |