קבל את ערך האטрибוט של הבלוק של הפניה חיצונית
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); | |
} |