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

日志

copyLayer.il

已有 61 次阅读2019-8-9 22:16 |个人分类:script|系统分类:芯片设计

procedure(copyLayer()
    let((cv objSet)
    ;; get selected objects
    cv = geGetEditCellView()
    objSet = geGetSelectedSet()

    ;; get current active layer
    activeLayer = leGetEntryLayer()
    actLayerName = car(activeLayer)
    actLayerPurpose = cadr(activeLayer)

    ;; copy and change the layer
    foreach(x objSet
        y = dbCopyFig(x nil)
        y->layerName = actLayerName
        y->purpose   = actLayerPurpose
    );end foreach
  );end let
);end procedure


hiSetBindKey("Layout" "Ctrl<Key>r" "copyLayer()")

评论 (0 个评论)

facelist

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

关闭

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

关于我们|联系我们|ET创芯网 ( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2019-8-21 16:43 , Processed in 0.030108 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

返回顶部