vivienluo 发表于 2015-1-22 18:10:43

axlcreate

axlcreateaxlcreate (t_filmname(n_rotate_coden_x_offsetn_y_offsetn_undef_line_widthn_shape_boundn_plot_moden_mirroredn_full_contactn_supp_unconnectn_draw_padn_aper_rotn_fill_out_shapesn_vector_basedn_draw_holes)(lt_layers))->name/nil描述该函数用于创建或更新allegro光绘参数。通过allegro光绘设置窗口下的load按钮(15.X)或者Add/Replace按钮(16.X)选择文件加载。如下图: t_filename = 光绘名: 参数类型为list,包含13个参数,对上图中的Film Options进行设置。lt_layers :光绘所包含的层。例如'("ETCH/TOP" "VIA/TOP"...)
注意:光绘名不能太长,否则可能导致光绘创建失败。具体长度可在光绘设置窗口下输入比较长的一个字符串,看光绘提示的报错。
所有参数的单位(比如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_paramsFilm 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。可通过该函数编写一个自动设置光绘的程序。

stevenzhu 发表于 2015-2-3 17:01:54

太好了,我一直想这个~

huijunlv 发表于 2015-2-4 10:00:49

模拟学习中,谢谢!!!

289149318 发表于 2016-6-23 17:21:21

axlcreate与axlfcreate,楼主这两个有什么关系,使用axlcreate的时候显示未找到该函数

zhuhai09 发表于 2017-2-3 16:59:09

Thank you very much!

cuihs2007 发表于 2020-2-20 10:10:17

这个解释的太详细了

xh450321 发表于 2020-10-27 09:14:03

学习了,谢谢分享
页: [1]
查看完整版本: axlcreate