setingds./xxx.gdssetoutgds./yyy.gds###opensourcegdssetL[layoutcreate$ingds-dt_expand-preservePaths-preserveTextAttributes]###getallcellssetallCell[$Lcells]###traveleachcellforeachc$allCell{###matchthecellhavesuffixif[stringmatch*_suffix$c]{###setnewcellnameasnosuffixsetnewc[stringmap{“_suffix”“”}$c]###ifnewcellexistsif[$Lexistscell$newc]{puts“$newcexist!!!!!!!!!!!!!!”}else{###changethecellnametonew$Lcellname$c$newc}}}$Lgdsout$outgds预览时标签不可点收录于话题#个上一篇下一篇