الحصول على قيمة سمة الكتلة لمرجع خارجي
Contents
[
Hide
]الحصول على قيمة سمة الكتلة
تتيح لك واجهة برمجة تطبيقات Aspose.CAD for Python الحصول على مرجع خارجي لسمة الكتلة. تكشف واجهة برمجة تطبيقات Aspose.CAD عن خاصية 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
import aspose.cad as cad | |
from aspose.pycore import cast | |
if __name__ == '__main__': | |
image = cad.fileformats.cad.CadImage.load(file) | |
castedImage = cast(cad.fileformats.cad.CadImage, image) | |
for entity in castedImage.block_entities.values: | |
if entity.original_block_name == '*Model_Space': | |
print(entity.x_ref_path_name) |