Lấy Giá Trị Thuộc Tính Khối Của Tham Chiếu Ngoại

Lấy Giá Trị Thuộc Tính Khối

Aspose.CAD cho .NET API cho phép bạn lấy một tham chiếu ngoại của thuộc tính khối. Aspose.CAD API cung cấp thuộc tính XRefPathName để lấy tham chiếu ngoại của thuộc tính khối trong một bộ sưu tập CadBlockDictionary. Dưới đây là ví dụ mã để lấy tham chiếu ngoại của thuộc tính khối.

// 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);
}