קבלת ערך אAttributes של בלוק חיצוני

קבלת ערך אAttributes של בלוק

Aspose.CAD for Python API מאפשרת לך לקבל הפניה חיצונית של ערך אAttributes של בלוק. Aspose.CAD API מציגה את מאפיין XRefPathName כדי לקבל את ההפניה החיצונית של ערך אAttributes של בלוק באוסף CadBlockDictionary. להלן הדגמת הקוד לקבלת ההפניה החיצונית של ערך אAttributes של בלוק.

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)