selObj = car(geGetSelSet())
selInstMasterCV = dbOpenCellViewByType(selObj~>master~>libName selObj~>master~>cellName "symbol" "" "r") ;open the cell view object for the master of selected instance.
pinInfoList = nil
selObjSelBox = car(setof(d_shape selInstMasterCV~>shapes d_shape~>objType == "rect" && d_shape~>lpp == list("instance" "drawing")))~>bBox ;to get the selecting box
foreach(term selInstMasterCV~>terminals ;loop all the terminals
foreach(pin term~>pins
pinXY = centerBox(pin~>fig~>bBox)
pinInfoList = cons(list(term~>name, pinXY, term~>direction), pinInfoList)
);foreach(pin)
);forech(term)
欢迎光临 EETOP 创芯网论坛 (原名:电子顶级开发网) (https://bbs.eetop.cn/) | Powered by Discuz! X3.5 |