在svg文件中提取数据并自动存储在excel中 [英] Extract data in svg file and store automatically in excel

查看:870
本文介绍了在svg文件中提取数据并自动存储在excel中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设有20个svg文件具有相同的电路元件但具有不同的元件值,我需要在电路中提取晶体管的内容(型号)并自动将它们输出到excel表。请帮助。 TIA 

我尝试过:

i尝试使用OCR打开svg文件。

解决方案

OCR不起作用,因为SVG文件是文本格式, XML格式更精确。

只需打开一个一个文本编辑器,看看它的外观。

这是一个在VBA中使用XML文件的例子:在VBA中使用XML文件(VBA XML) - Analyst Cave | Excel,VBA,编程等 [ ^ ]



要了解有关 Excel VBA对象的工作的更多信息,请在此处查看:VBA Excel对象 [ ^ ]

suppose if there are 20 svg files with the same circuit components but with different component values, I need to extract the content of transistor(model number) in the circuit alone and automatically export them to excel sheet. Kindly help. TIA

What I have tried:

i ve tried opening the svg file using OCR.

解决方案

OCR will not work as SVG files are in text format, XML format to be more precise.
Just open one with a text editor to see how it looks.
Here is an example of working with XML files in VBA: Working with XML files in VBA (VBA XML) - The Analyst Cave | Excel, VBA, programming and more[^]

To learn more about workig with Excel VBA objects look here: VBA Excel Objects[^]


这篇关于在svg文件中提取数据并自动存储在excel中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆