| 
 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]
 
 
t_filename = 光绘名 : 参数类型为list,包含13个参数,对上图中的Film Options进行设置。 lt_layers :光绘所包含的层。例如'("ETCH/TOP" "VIA/TOP"...)  
  [img=0,1][/img]注意:光绘名不能太长,否则可能导致光绘创建失败。具体长度可在光绘设置窗口下输入比较长的一个字符串,看光绘提示的报错。 所有参数的单位(比如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) 参数说明  |  |   | Film Options参数设置列表,顺序需要按下面来排列:  |  
    |  | rotate_code rotate参数设置,可设置为 0,2,4,或6,对应于0,90,180,270度旋转  |   |  |  
    |  |   | 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参数设置  |  
  |  
   返回值 创建成功则返回创建的光绘名,否则返回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。可通过该函数编写一个自动设置光绘的程序。  
 |