외부 참조의 블록 속성 값 가져오기

블록 속성 값 가져오기

Aspose.CAD for .NET API는 블록 속성의 외부 참조를 가져올 수 있게 해줍니다. Aspose.CAD API는 XRefPathName 속성을 노출하여 CadBlockDictionary 컬렉션에서 블록 속성의 외부 참조를 가져올 수 있습니다. 아래는 블록 속성의 외부 참조를 가져오는 코드 시연입니다.

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