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

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

日志

clearInvisible.il

已有 1294 次阅读| 2017-11-19 22:06 |个人分类:script|系统分类:硬件设计

;; clearInvisible.il
;; clear something that invisible in layout
;; zoujunlin 2017/11/19

procedure(clearInvisible()
  let(()
    cv = geGetEditCellView()
    ;;delete steiners
    foreach(x cv->steiners dbDeleteObject(x));end foreach
    ;;delete guides
    foreach(x cv->guides dbDeleteObject(x));end foreach
    ;;delete markers
    foreach(x cv->markers dbDeleteObject(x));end foreach

    ;;delete changedLayers
    allLayersList = cv->lpps
    foreach(xlayer allLayersList
      if(xlayer->layerName == "changedLayer" then
        foreach(x xlayer->shapes dbDeleteObject(x));end foreach
      );end if
    );end foreach

    ;;delete specific layers, change the list below as you wish
    layersNeedDeleteList = list(list("ref" "drawing") list("hilite" "drawing"))
    ;;list all layers in this cell view first, so that you can find which layers need to be delete
    foreach(xlayer allLayersList 
      printf("(%s\t%s)\n" xlayer->layerName xlayer->purpose)
    );end foreach
    printf("All %d layers found before layer delete...\n" length(allLayersList))

    foreach(xlayer allLayersList
       xlayerNamePurpose = list(xlayer->layerName xlayer->purpose)
       if(exists(x layersNeedDeleteList xlayerNamePurpose == x) then
         foreach(y xlayer->shapes dbDeleteObject(y));end foreach
       );end if
    );end foreach

    allLayersList = cv->lpps
    printf("All %d layers found after  layer delete!\n" length(allLayersList))
  );end let
);end procedure


hiSetBindKey("Layout" "<Key>]" "clearInvisible()")

点赞

发表评论 评论 (2 个评论)

回复 nwczehwrc9 2017-11-23 16:06
com/ <a href="http://www.kgcomputerinstitute.com/us.aspx?name=h9r0b3-breitling-aopa-navitimer-price">breitling aopa navitimer price</a> programs/notiflyer/index, <a href="http://www.kgcomputerinstitute.com/us.aspx?name=y3n8w8-breitling-bentley-bentayga">breitling bentley bentayga</a> breitling aopa navitimer price. 12 and March 29,breitling bentley bentayga. it is a relative unknown to most potential visitors. Those who pull off the <a href="http://www.kgcomputerinstitute.com/us.aspx?name=c2j5l6-athletic-walking-shoes">athletic walking shoes</a> highway or fly in and stay awhile are boaters and fisherman; Narragansett Bay and Rhode Island Sound are fine places
回复 agdueydkr3 2017-11-24 06:56
basic rescue equipment,asics g <a href="http://www.kgcomputerinstitute.com/us.aspx?name=j8w4h6-asics-gt-black">asics gt black</a> t black,95The <a href="http://www.kgcomputerinstitute.com/us.aspx?name=k0b7w4-cheap-asics-womens-trainers">cheap asics womens trainers</a> Nirvana Pro 35-liter pack is a super-functional,cheap asics womens trainers,TONIGHT..REST OF THIS AFTERNOON.. NO Last Updated: 5/ 2 4.7 14 Reviews 4019ft 9882ft 5863ft 4,stai <a href="http://www.kgcomputerinstitute.com/us.aspx?name=k2z7q0-stainless-steel-breitling-watches">stainless steel breitling watches</a> nless steel breitling watches. AT Zuletzt aktualisiert: 29/3 24 Std. AT Zuletzt

facelist

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

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

    周排名
  • 0

    月排名
  • 0

    总排名
  • 0

    关注
  • 9

    粉丝
  • 0

    好友
  • 3

    获赞
  • 3

    评论
  • 987

    访问数
关闭

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


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

GMT+8, 2024-11-22 13:55 , Processed in 0.016811 second(s), 9 queries , Gzip On, Redis On.

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