memo1

kabuccino / 2023-05-08 / 原文

envSetVal

envSetVal( "cdba.undo" "dbUndoAcrossSave" 'boolean t) undo after save
envSetVal("layout" "displayResolution" 'string "Very High")  
envSetVal("layout" "pteShowColoredLSManager" 'boolean t) layer set组颜色开启
envSetVal("layout" "leWindowBBox" 'string "((0 0) (1118 823))") envSetVal("schematic" "schWindowBBox" 'string "((600 200) (1910 1160))") envSetVal("schematic" "symWindowBBox" 'string "((600 200) (1910 1160))") 默认window打开大小 (layout schematic symbol)
ui enableMenuShortcuts boolean nil

只能设置在cdsenv,禁用menuShortCuts来让enable alt key

 

API

dbSetUndoHandle  
dbUndoToHandle  
hiGetAbsWindowScreenBBox 获得win坐标
dbUndoAcrossSave

保存之后是否还能redo

dbShapeQuery 获取cellView中指定bBox区域内的指定lpp的所有shapes Id,hier level dbShapeQuery( cvId list("AA" “drawing”) l_bBox [ x_startLevel ] [ x_stopLevel ] )=> list((d_shapeId | l_occShape)…) d_shapeId -> top levell_occShape -> (instId1 [instId2...] shapeId) dbShapeQuery(cv list("M2" "drawing") bBox)=> ((db:0x20e6c21a db:0x20e6709f) (db:0x20e6c21a db:0x20e6bb1a db:0x20e6b81b) ) Returns a list of all the shapes in a cellview whose bounding boxes overlap the region specified by l_bBox.
dbGetOverlapsdbGetTrueOverlaps(老版本中搜索的区域与目标重叠与否会有差异,新版本相同) 获取cellView中指定bBox区域内的shapes/inst Id (可指定layername/purpose/lpp/level) dbGetOverlaps( cvId l_bBox [nil (all inst) | tx_layer] [lx_level] 不指定默认top dbGetTrueOverlaps(cv bBox) list("M2") 32)=> ((db:0x20e6c21a db:0x20e6709f) (db:0x20e6c21a (db:0x20e6bb1a db:0x20e6b81b)) )dbGetTrueOverlaps(cv bBox) => all shapes/instId on top leveldbGetTrueOverlaps(cv bBox t 0:5) => all shapes/instId from the top level to the level 5dbGetTrueOverlaps(cv bBox nil) => all instId on top leveldbGetTrueOverlaps(cv bBox nil 3) => all instId from the top level to the level 3 Returns a list of all the objects (such as, shapes, instances, and mosaics) in a cellview that overlaps the area specified byl_bBox
dbGetHierPathTransform 获取该inst上一层inst的transform获取该shape所在inst的transform dbGetHierPathTransform(instId | objId)    
dbGetInstTransform 获取该inst的transform获取该shape所在inst的transform dbGetInstTransform(instId | objId)   Returns the concatenated transform of all instance or mosaic IDs present in the nested listpassed as the parameter. T
dbTransformBBox int中的shape的bBox转换至top bBox dbTransformBBox( shapes在instance里的bBox instance的transform)=> shapes在top的实际位置bBox    
dbLayerAnd 获取相交图形 dbLayerAnd( cvId “M1” ;输出用的layerName l_dbIdList1 ;layer1的id (list里) l_dbIdList2 ;layer2的id (list里)    
hiBoxCenter 获取bbox中心坐标      
rightEdge/leftEdgetopEdge/bottomEdge 获取bbox左右X坐标,上下Y坐标 rightEdge(bBox) - leftEdge(bBox) = x宽度topEdge(bBox) - bottomEdge(bBox) = y高度    
geGetSelSetFigPoint 获取图形选中角信息      
leGetEntryLayer 获取LSW选中的layer      
leSearchHierarchy        

Bindkeys

option menu F3 / 右键double click
zoom to area 右键drag win
重复copy h → .
清楚ciw prompt

ctrl + r

Learn

skill F3菜单怎么实现

  • 使用hiCreateOptionsFrom函数创建了Form 然后用hiToggleeEnterForm()函数 实现
undo after save
  • envSetVal("cdba.undo" "dbUndoAcrossSave" 'boolean t)
Option menu
  • F3 / 右键double click

Dynamic Zoom

  • 使用Windows - Assistants - Navigator时选中obj时zoom模式
  • envSetVal("layout" "autoZoomScale" 'int 60)

  

Settings

F3 menu/option menu 呼出命令后自动弹出

  • CIW – Options – User Preferences – Command Contorls – Options Displayed When Commands Start button