Dapatkan Nilai Atribut Blok Dari Referensi Eksternal

Dapatkan Nilai Atribut Blok

Aspose.CAD untuk .NET API memungkinkan Anda untuk mendapatkan referensi eksternal dari atribut blok. Aspose.CAD API mengekspos XRefPathName properti untuk mendapatkan referensi eksternal dari atribut blok dalam koleksi CadBlockDictionary. Berikut adalah demonstrasi kode untuk mendapatkan referensi eksternal dari atribut blok.

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