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

空间首页 动态 记录 日志 相册 主题 分享 留言板 个人资料

日志

cross_ruler.il

已有 971 次阅读| 2017-5-22 23:20 |个人分类:script|系统分类:芯片设计

;File   :       cross_ruler.il
;Author :       zoujunlin
;Date   :       2017/05/22
;Description :  create crisscross ruler at the cursor point
;step 1 :       get cursor point
;step 2 :       get bBox of cell view
;step 3 :       create rulers


procedure(cross_ruler()
  let((cv cv_bbox point)
    cv = geGetEditCellView()

;step 1 :       get cursor point
;    point = hiGetDbuPoint(hiGetCurrentWindow())
;    x =  car(pointDb)/2000 ;dbu per unit maybe 1000 or 2000 according to the techfile definition
;    y = cadr(pointDb)/2000 ;dbu per unit maybe 1000 or 2000 according to the techfile definition
    point = hiGetPoint(hiGetCurrentWindow());
    x =  car(point)
    y = cadr(point)
;step 2 :       get bBox of cell view
    cv_bbox = cv->bBox
    lowerleft  =  car(cv_bbox)
    rightupper = cadr(cv_bbox)
    left   = car(lowerleft)
    right  = car(rightupper)
    bottom = cadr(lowerleft)
    top    = cadr(rightupper)
;step 3 :       create rulers
    leCreateRuler(cv list(x:y left:y))
    leCreateRuler(cv list(x:y right:y))
    leCreateRuler(cv list(x:y x:top))
    leCreateRuler(cv list(x:y x:bottom))
  );end let
);end procedure

hiSetBindKey("Layout" "v" "cross_ruler()")


点赞

评论 (0 个评论)

facelist

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

  • 关注TA
  • 加好友
  • 联系TA
  • 0

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 9

    粉丝
  • 0

    好友
  • 3

    获赞
  • 3

    评论
  • 987

    访问数
关闭

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

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

GMT+8, 2024-4-27 11:00 , Processed in 0.017569 second(s), 8 queries , Gzip On, Redis On.

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