?
用習慣了allegro里面的stroke,安裝了allegro16.3發現stroke不能用了,折騰了好久,用如下方法急救了此功能,終于松了口氣。
用文字編輯器打開x:\Cadence\SPB_16.2\share\local\pcb\skill\example.ilinit,建議不要用記事本打開,因為記事本打開會有很多的小方塊,具體內容如下:
;
; This example file shows how to load Skill files (those with the
; extension ".il" in the current directory.
; To use copy to allegro.ilinit if to be used by all Allegro based programs
; or
;
; Setting Allegro environment variable, LoadSkillFilesDebug will turn
; on printing the name of each file as it is loaded.
unless(boundp('LoadSkillFilesDebug)
LoadSkillFilesDebug = axlGetVariable("LoadSkillFilesDebug"))
when(LoadSkillFilesDebug printf("\n"))
(foreach file (rexMatchList "\\.il$" (getDirFiles "."))
when(LoadSkillFilesDebug printf("Loading Skill file: %s\n" file))
(load strcat("./" file))
)
; Load any ini files (containing axlCmdRegister)
(foreach file (rexMatchList "\\.ini$" (getDirFiles "."))
when(LoadSkillFilesDebug printf("Loading Skill file: %s\n" file))
(load strcat("./" file))
)
when(LoadSkillFilesDebug printf("\n"))
在文件的末尾加上,
procedure(stroke_fix_163(t_open)
axlShell("strokefile allegro")
axlMsgPut("Strokes now enabled in Allegro 16.3 base release") )
axlTriggerSet('open 'stroke_fix_163)
然后另存為Allegro.ilinit,存盤路徑是pcbenv文件夾下。
評論