本帖最后由 vimgcc 于 2023-8-30 09:29 编辑 6 I* w1 v8 u* N7 a9 u! r, E* c( J
8 w+ M. p% U# Z2 b" T
完全不行,第3步就是错的,应该是从英文网站翻译过来的吧。add这个应该去掉。如果文件已经拷贝到skill目录,就应该是添加 load("exportJson.il") "/"路径符号应该是linux系统。win系统用"\"
$ |0 E* g$ K0 J第5步json目录到底在哪里呢?
8 a' [ s6 o1 {% Q( O
3 l6 m! n b" V1 I: n& ?, z& ?2 g$ e. Q! L5 M; K
我在github exportJson项目上找到的原文是这样,应该是一个出处https://github.com/juulsA/exportJson
0 i$ }9 F+ H N8 H( G; WPrerequisitesTo make the skill script available for use, you need to copy the exportJson.il file to your local skill directory ( usually your installation path + \share\pcb\etc ) or the skill directory in the $CDS_SITE path. Append it to the allegro.ilinit file ( add load( "path/exportJson.il" ) ) or load it manually via the skill load command ( type set telskill into the command line and then type load("exportJson.il" ). UsageOnce the script is loaded successfully, you can start exporting the json file by typing exportJson + enter in the command line. A directory named json is created in your project folder containing the .json. The script uses the "project name" ( optional: + "_" + "variant" ) as the file name and asks for the optional arguments revision and company. By passing ?rev "xyz" and ?company "name" as arguments to the exportJson function, the input prompt is suppressed and these values are used for file generation. This is can be useful to customize the function to your needs. |