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

블록 속성 값 가져오기

Aspose.CAD for Python API는 블록 속성의 외부 참조를 가져올 수 있습니다. Aspose.CAD API는 XRefPathName 속성을 노출하여 CadBlockDictionary 컬렉션에서 블록 속성의 외부 참조를 가져옵니다. 다음은 블록 속성의 외부 참조를 가져오는 코드 데모입니다.

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)