vivienluo 发表于 2015-2-4 22:07:10

axlSetParam

axlSetParam (
od_paramDbid
)
=> rd_paramDbid/nil

描述

该函数用于修改Allegro某些参数。 该函数主要结合axlGetParam使用。

参数
od_paramDbid 通过axlGetParam函数获取到参数的Dbid,当修改过某些参数的属性后,使用axlSetParam 函数进行数据更新.

返回值
rd_paramDbid 设置成功则返回该参数的Dbid。
nil 数据未被更新.

相关函数
axlGetParam

例子 :

1. 改变显示(注,一般使用axlVisibleSet 更方便快捷。)
(setq etch_top (axlGetParam "paramLayerGroup:ETCH/paramLayer:TOP"))
=>param:123456
; is layer visible ?
etch->visible
t
; blank it
etch_top->visible = nil
t
(axlSetParam etch_top)
=>param:123456
; layer is now invisible
etch_top->visible
nil

2. 改变精度
p = axlGetParam("paramDesign")
p->accuracy = 3
axlSetParam(p)


页: [1]
查看完整版本: axlSetParam