主权项 |
1.一种快速调整文字方向的方法,基于CadenceAllegro的PCB设计软件,使用CadenceSkill语言开发一个快速调整文字方向的Skill设计程式,作为一键将所有文字方向调整为需要方向的插件,其特征在于,所述Skill设计程式为:Defun(text_r()axlVisibleDesign(nil)axlVisibleLayer(″RefDes/Silkscreen_Top″t)axlVisibleLayer(″RefDes/Silkscreen_Bottom″t)axlVisibleLayer(″RefDes/Assembly_Top″t)axlVisibleLayer(″RefDes/Assembly_Bottom″t)axlSetFindFilter(enabledlist(″noall″″text″)onButtonslist(″noall″″text″))axlAddSelectAll()text_db_list=axlGetSelSet()foreach(text_dbtext_db_listxy=text_db->bBoxdx=caar(xy)dy=cadar(xy)ux=caadr(xy)uy=cadadr(xy)loc_x=(ux+dx)/2loc_y=(uy+dy)/2loc=list(loc_xloc_y)ang=0ang=text_db->rotationif((ang>90&&ang<=270)thenaxlTransformObject(text_db,angle180originIoc))axlVisibleDesign(nil)axlVisibleLayer(″RefDes/Silkscreen_Top″t)axlVisibleLayer(″RefDes/Silkscreen_Bottom″t)axlVisibleLayer(″RefDes/Assembly_Top″t)axlVisibleLayer(″RefDes/Assembly_Bottom″t)))axlCmdRegister(″text_rotate″text_r)。 |