Examples/スケマティックに様々な色の線を描く

Last-modified: 2015-11-14 (土) 22:27:17

スケマティックに様々な色の線を描く

スケマティックビューにワイヤを描く際は schCreateWire 関数を用いる。

※リファレンスより引用
(schCreateWire
  d_cvId        ; セルビューID
  t_entryMethod ; リファレンスp174参照、"draw" または "roure"
  t_routeMethod ; 同上、"flight"or"direct"or"full"
  l_points      ; 始点と終点、例:(list 0:0 1:0)
  n_xSpacing    ; xのspacing
  n_ySpacing    ; yのspacing
  n_width       ; ワイヤの幅
)

実はレファレンスに載っていないオプション引数を用いることで、このワイヤの色を変更できる。

使用例:

(schCreateWire
  (geGetEditCellView) ; d_cvId
  "draw"              ; t_entryMethod
  "full"              ; t_routeMethod
  (list 0:-2 1:-2)    ; l_points
  0.0125              ; n_xSpacing
  0.0125              ; n_ySpacing
  0.06                ; n_width
  "white"             ; color(optional)
)

なお、引数の指定が無い場合は "cadetBlue" であるとみなされる。