找回密码
 注册
关于网站域名变更的通知
查看: 1347|回复: 7
打印 上一主题 下一主题

如何report零件的页数资料?

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2015-12-10 14:53 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

EDA365欢迎您登录!

您需要 登录 才可以下载或查看,没有帐号?注册

x
我有一个skill 可以report 零件的placebound height 高度,但我想再加上零件的页数在报告里,请问应该怎样做?
这是component height skill 的脚本

axlCmdRegister("height_rep" '_extract_report ?cmdType "general")
defun( _extract_report ()
let(list(last_line extract_commands extract_data report_file cmd_file ext_results f_report l_fields)
last_line = ""
extract_commands = "_tmp_extract.txt"        ;name of temp extract command file
extract_data = "_tmp_extract.dat"
report_file = "comp_height_report"

;Create the extract command file
cmd_file = outfile(extract_commands)
fprintf(cmd_file "GEOMETRY\n")
fprintf(cmd_file "REFDES!=\"\"\n")
fprintf(cmd_file "COMP_DEVICE_TYPE!=\"\"\n")
fprintf(cmd_file "CLASS = \"PACKAGE GEOMETRY\"\n")
fprintf(cmd_file "SUBCLASS=\"PLACE_BOUND_TOP\"\n")
fprintf(cmd_file "OR\n")
fprintf(cmd_file "SUBCLASS=\"PLACE_BOUND_BOTTOM\"\n")
fprintf(cmd_file "SUBCLASS=\"PLACE_BOUND_BOTTOM\"\n")

fprintf(cmd_file "REFDES\n")
fprintf(cmd_file "COMP_DEVICE_TYPE\n")
fprintf(cmd_file "GRAPHIC_DATA_NAME\n")
fprintf(cmd_file "SUBCLASS\n")
fprintf(cmd_file "GEO_PACKAGE_HEIGHT_MAX\n")
fprintf(cmd_file "GEO_PACKAGE_HEIGHT_MIN\n")

close(cmd_file)

axlExtractToFile(extract_commands extract_data '("quiet"))
ext_results = infile(extract_data)
f_report = axlDMOpenFile("allegro_REPORT" report_file "w")
while( gets(line_rd ext_results)
        l_fields=parseString(line_rd "!")
        if(car(l_fields)=="S" then
                unless(last_line==line_rd
                ;unless the line read matches the last line write it to the report.

                        fprintf(f_report "%s", line_rd)
                        last_line=line_rd                ;reset the last line value
                );end unless
        );end if
);end while
close(ext_results)
close(f_report)
;Clean up
deleteFile(extract_commands)        ;delete the view file
deleteFile(extract_data)                ;delete the raw data file
printf("Report complete.\n")
);end let
);end defun

谢谢

该用户从未签到

2#
发表于 2015-12-10 14:58 | 只看该作者
但我想再加上零件的页数在报告里,请问应该怎样做?


=>你是說該零件在原理圖裡面是第幾頁嗎?

该用户从未签到

3#
 楼主| 发表于 2015-12-10 15:06 | 只看该作者
是的,"FUNC_PHYSICAL_PATH"
谢谢

点评

你試試看在這一行close(cmd_file)前面,加入fprintf(cmd_file "FUNC_PHYSICAL_PATH\n")  详情 回复 发表于 2015-12-10 15:20

该用户从未签到

4#
发表于 2015-12-10 15:20 | 只看该作者
本帖最后由 XYX365 于 2015-12-10 15:23 编辑
chloe_mei 发表于 2015-12-10 15:06
是的,"FUNC_PHYSICAL_PATH" 谢谢

你試試看在這一行close(cmd_file)前面,加入fprintf(cmd_file "FUNC_PHYSICAL_PATH\n")


  1. fprintf(cmd_file "GEO_PACKAGE_HEIGHT_MAX\n")
  2. fprintf(cmd_file "GEO_PACKAGE_HEIGHT_MIN\n")
  3. fprintf(cmd_file "FUNC_PHYSICAL_PATH\n")
  4. close(cmd_file)
复制代码


该用户从未签到

5#
 楼主| 发表于 2015-12-10 15:27 | 只看该作者
我之前试了不行

点评

你是的原理圖是什麼? 另一個問題有可能FUNC_PHYSICAL_PATH所對應的值沒有導進PCB[/backcolor]  详情 回复 发表于 2015-12-10 15:41

该用户从未签到

6#
发表于 2015-12-10 15:41 | 只看该作者

你是的原理圖是什麼?

另一個問題有可能FUNC_PHYSICAL_PATH所對應的值沒有導進PCB

该用户从未签到

7#
 楼主| 发表于 2015-12-10 16:00 | 只看该作者
我的原理图是allegro design Entry HDL
PCB 里是有这值的
谢谢

该用户从未签到

8#
发表于 2019-4-8 16:02 | 只看该作者
好~感謝分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

推荐内容上一条 /1 下一条

EDA365公众号

关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

GMT+8, 2025-6-9 06:27 , Processed in 0.078125 second(s), 28 queries , Gzip On.

深圳市墨知创新科技有限公司

地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

快速回复 返回顶部 返回列表