الحصول على قيمة سمة الكتلة للمرجع الخارجي
Contents
[
Hide
]الحصول على قيمة سمة الكتلة
تسمح لك واجهة برمجة التطبيقات Aspose.CAD for .NET بالحصول على مرجع خارجي لسمة الكتلة. تكشف واجهة برمجة التطبيقات Aspose.CAD عن خاصية XRefPathName للحصول على المرجع الخارجي لسمة الكتلة في مجموعة CadBlockDictionary. فيما يلي عرض توضيحي للكود للحصول على المرجع الخارجي لسمة الكتلة.
This file contains hidden or 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); | |
} |