在Python脚本中,我使用dxfgrabber读取dxf文件,并能够获得层的名称和其他信息。我的一个图层中有文本信息,我无法通过代码获取文本信息。到目前为止,我已经试过了-
import dxfgrabber
dxf = dxfgrabber.readfile("/home/user/skype_files/289253.dxf")
myTextLayer = dxf.layers.__getitem__('Text-Info-Layer')
print myTextLayer.name, myTextLayer.linetype
文本信息层是包含文本信息的层,但我不知道如何获取这些信息。有什么帮助吗?在
谢谢!在
在dxf图层仅包含图层定义。使用过滤器收集特定图层的所有dxf图元dxf.实体,其中包含模型空间的所有实体:
相关问题 更多 >
编程相关推荐