bobaobo的个人空间 https://blog.eetop.cn/?1780277 [收藏] [复制] [分享] [RSS]

日志

catchPinBySel.il

已有 141 次阅读| 2025-8-6 13:37 |系统分类:芯片设计| skill

procedure(catchPinBySel()
let((cv objs )
cv = geGetEditCellView()
objs = geGetSelSet()
shapes = cv ~>shapes

foreach(obj objs
  terminal = obj ~>net~>sigNames
  foreach(pinId shapes
  if(pinId~>pin != nil then 
  if(pinId~>pin~>net~>sigNames == terminal then   ;car(cv ~>shapes)~>pin~>net~>sigNames
  
  print(terminal)
  address = obj~>endPt
  Xaddress = xCoord(obj~>endPt)
  printf(" Xaddress:")
  print(Xaddress)
  
  Yaddress = yCoord(obj~>endPt)

  printf(" Yaddress:")
  print(Yaddress)
  Xpin=xCoord(centerBox(pinId~>bBox))
  
  printf(" Xpin:")
  print(Xpin)
  printf(" ")
  Ypin=yCoord(centerBox(pinId~>bBox))
  
  printf(" Ypin:")
  print(Ypin)
;~~~~~~~~~~~~~~~~~~~~~the key~~~~~~~~~~~~~~~~~~
  ;x=abs(Xaddress-Xpin)
  x=Xaddress-Xpin
  printf(" relative position:")
  print(x)
  printf(" ")
  y=Yaddress-Ypin
  print(y)
  dbMoveShape(pinId cv list(x:y "R0" 1))  ; case1 (x,y) case2 (-x,y) case3 (x,-y) case4 (-x,-y)
  
;~~~~~~~~~~~~~~~~~~~~~the key~~~~~~~~~~~~~~~~~~
  );if
  );if
  );foreach

);foreach
);let
);procedure


点赞

评论 (0 个评论)

facelist

您需要登录后才可以评论 登录 | 注册

  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 2

    关注
  • 2

    粉丝
  • 1

    好友
  • 1

    获赞
  • 0

    评论
  • 10

    访问数
关闭

站长推荐 上一条 /3 下一条


手机版| 小黑屋| 关于我们| 联系我们| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2025-9-10 17:45 , Processed in 1.491564 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
返回顶部