Cadence Skill 论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 8975|回复: 6

[AXL函数] axlcreate

[复制链接]
发表于 2015-1-22 18:10:43 | 显示全部楼层 |阅读模式
axlcreate (
t_filmname
(n_rotate_code
n_x_offset
n_y_offset
n_undef_line_width
n_shape_bound
n_plot_mode
n_mirrored
n_full_contact
n_supp_unconnect
n_draw_pad
n_aper_rot
n_fill_out_shapes
n_vector_based
n_draw_holes)
(lt_layers))
->name/nil
描述
该函数用于创建或更新allegro光绘参数。通过allegro光绘设置窗口下的load按钮(15.X)或者Add/Replace按钮(16.X)选择文件加载。如下图:
[img][/img] image001.png
t_filename = 光绘名
: 参数类型为list,包含13个参数,对上图中的Film Options进行设置。
lt_layers :光绘所包含的层。例如'("ETCH/TOP" "VIA/TOP"...)

[img=0,1][/img]注意:光绘名不能太长,否则可能导致光绘创建失败。具体长度可在光绘设置窗口下输入比较长的一个字符串,看光绘提示的报错。
image004.jpg
所有参数的单位(比如x offset、width)必须为数据库单位(db_units)而非设计单板的单位(design_units)。db_units单位为整数,可通过以下公式转换而来:
db_units = design_units * design_accuarcy ** 10
例如: 当前设计精度为2,现在想把width设置为12.34,那么此时需要将width设置为1234转换方式: (1234=12.34*10**2) (1234=12.34*100)
参数说明
t_filmname

需要创建的光绘名
l_params
Film Options参数设置列表,顺序需要按下面来排列:
rotate_code rotate参数设置,可设置为 0,2,4,或6,对应于0,90,180,270度旋转
x_offset - x offset偏移量
y_offset - y offset偏移量
undef_line_width – Undefined line width参数
shape_bound – Shape bounding box参数
plot_mode – 光绘模式设置0 = NEGATIVE, and 1 = POSITIVE.
mirrored – Film mirrored参数
supp_unconnect – Suppress unconnected pads
draw_pad – Draw missing pad apertures参数
aper_rot – Use aperture rotation参数
fill_out_shapes –布尔类型 ,Suppress shape fill参数设置。如果suppress shape fill 选择的话,那么fill_out_shapes参数需要设置为0. 若光绘为274X格式的话,该参数必须设置为1
vector_based- 布尔类型,Vector based pad behavior参数设置
draw_holes -布尔类型Draw holes only参数设置
lt_layers

光绘包含层面列表
返回值
创建成功则返回创建的光绘名,否则返回nil
例子
新建一个txt文件,在其中输入下面代码并保存:
axlfcreate( "top_art" '(0 0 0 600 0 1 0 0 0 0 0 0 0) '("VIA CLASS/TOP" "PIN/TOP" "ETCH/TOP"  ))
打开光绘设置窗口,点击 load按钮(15.X)或者Add/Replace按钮(16.X)选择文件指定刚才新建的文件,并导入到allegro中。查看是否新加了一个光绘TOP_ART。可通过该函数编写一个自动设置光绘的程序。

发表于 2015-2-3 17:01:54 | 显示全部楼层
太好了,我一直想这个~
发表于 2015-2-4 10:00:49 | 显示全部楼层
模拟学习中,谢谢!!!
发表于 2016-6-23 17:21:21 | 显示全部楼层
axlcreate与axlfcreate,楼主这两个有什么关系,使用axlcreate的时候显示未找到该函数
发表于 2017-2-3 16:59:09 | 显示全部楼层
Thank you very much!
发表于 2020-2-20 10:10:17 | 显示全部楼层
这个解释的太详细了
发表于 2020-10-27 09:14:03 | 显示全部楼层
学习了,谢谢分享
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|网站地图|Cadence Skill 论坛 ( 蜀ICP备13024417号 )

GMT+8, 2024-3-29 05:03 , Processed in 0.152152 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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