TA的每日心情 | 开心 2019-11-19 15:32 |
---|
签到天数: 1 天 [LV.1]初来乍到
|
本帖最后由 jet2001 于 2017-6-3 14:21 编辑
幫你改了一下skill 原點Origin移動到一般pin時,顯示 uxx.pin
原點Origin移動到MECHANICAL PIN時,顯示padstack 和原x /y 位置
defun( jumpAnypad ()
let( ()
axlClearSelSet()
axlFormSetField( newform "msg" "Please Pick A Pad!")
axlSetFindFilter(?enabled list( "noall" "pins") ?onButtons list( "noall" "pins"));??
anyPin = axlGetSelSet(axlSingleSelectPoint())
when( anyPin
orx = xCoord(car(anyPin)->xy)
ory = yCoord(car(anyPin)->xy)
axlDBChangeDesignOrigin(list(minus(orx) minus(ory)))
pin1 = car(anyPin)
if(pin1->component then ; for 正常pin
sprintf(msg "The Origin Move to Pin:%s.%s" pin1->component->name pin1->number)
else sprintf(msg "The Origin Move to %s : %2.2f %2.2f" pin1->name orx ory) ; for MECHANICAL PIN
); if(pin1->component
axlFormSetField( newform "msg" msg )
)
);let
axlClearSelSet()
axlDBRefreshId(nil);debug,避免??多次出?定位出?的bug!
);end defun jumpAnypad |
|