|
allegro版本高于15.7,而且editor中包括skilDev权限的话,可以解决这个问题- procedure(ADD_Myprops( t_open)
- prog((saveVis myprops brd existing)
- brd = car(t_open)
- existing = cadr(t_open)
- if( existing then
- println("New design has been opened,add my props.")
- saveVis=axlVisibleGet()
- axlVisibleDesign(nil)
- axlVisibleLayer("pin" t)
- axlVisibleUpdate(t)
- axlClearSelSet()
- axlSetFindFilter(?enabled list( "noall" "symbols") ?onButtons list( "noall" "symbols"))
- axlAddSelectAll()
- myprops = axlDBGetProperties(car(axlGetSelSet()) '("user" "allegro"))
- unless(myprops=="LOCKED"
- axlDBAddProp(axlGetSelSet() list("LOCKED"))
- )
- axlVisibleSet(saveVis)
- axlVisibleUpdate(t)
- )
- )
- )
- if(axlVersion('version)>15.7 then
- axlTriggerSet('open 'ADD_Myprops)
- )
复制代码 以上代码替换掉abc.il,allegro.ilinit内容不变 |
|