Skip to content

附录 A:Tcl 命令参考(第 1 部分)

PDF 来源

Sentaurus Visual User Guide (W-2024.09) 附录 A:第 220–280 页 原文命令区间:通用属性diff_plots


通用属性

如果命令中未指定 -name 参数,则 Sentaurus Visual 会生成一个内部名称,该名称在脚本中保持一致。如果生成的名称与脚本中后续定义的同一类型元素(如曲线或切割线)的名称冲突,Sentaurus Visual 将打印错误消息并停止命令执行。

TIP

本节为通用属性介绍,非独立命令。

颜色

在允许指定颜色属性的 Tcl 命令中(如 -color <#rrggbb> 选项),需要提供一个字符串来指定 RGB 系统的红、绿、蓝分量。该字符串以井号(#)开头,每个值以十六进制形式提供。常用颜色也有别名。

表 11 常用颜色

别名颜色预览通用格式别名颜色预览通用格式
white#ffffffdarkMagenta#800080
black#000000yellow#ffff00
red#ff0000olive#808000
darkRed#800000orange#ffa500
lime#00ff00darkOrange#ff8c00
green#008000gray#a0a0a4
darkGreen#006400darkGray#808080
blue#0000fflightGray#c0c0c0
darkBlue#000080skyblue#87ceeb
cyan#00ffffslategray#708090
darkCyan#008080chocolate#d2691e
magenta#ff00ff

字体

对于允许调整字体属性的 Tcl 命令,Sentaurus Visual 定义了特定的字体系列和属性列表。

NOTE

在 XY 图中,字体大小通过 font_size 参数设置;而在 2D 和 3D 图标中,通过 font_factor 参数作为图表框架的因子设置。

表 12 字体系列及其属性

字体系列属性
ArialBold
CourierItalic
TimesNormal
Strikeout
Underline

线型

表 13 线型

线型名称短形式描述
solid_实线
dot.点线
dash-虚线
dashdot-.点划线
dashdotdot-..双点划线

标记

表 14 标记类型

标记类型名称短形式描述
circleo
circlefof实心圆
diamond菱形
diamondf实心菱形
square正方形
squaref实心正方形
plus+加号
crossx叉号

add_custom_button

向"脚本"工具栏添加自定义按钮。

TIP

此命令仅在交互模式下有效。如果同时指定了 -icon-name,则工具栏中只显示图标。

语法

tcl
add_custom_button 
-file <stringValue> | -script <stringValue> | -separator
[-desc <stringValue>] [-icon <stringValue>]
[-label <stringValue>] [-name <stringValue>]

返回值

返回 -name 指定的自定义按钮名称。

示例

tcl
add_custom_button -script "echo Hello World!" -name Greetings \
-desc "Echoes a Hello World Message."
#-> Greetings

参数说明

参数说明
-desc <stringValue>按钮的描述文本。
-file <stringValue>要执行的 Tcl 文件名。
-icon <stringValue>用作按钮图标的图形文件。
-label <stringValue>按钮的标签。
-name <stringValue>按钮名称。
-script <stringValue>要执行的 Tcl 脚本。
-separator添加分隔符。

add_frame

向帧缓冲区添加新帧。

TIP

必须先使用 start_movie 命令。

语法

tcl
add_frame [-name <stringValue>] [-plot <stringValue>]

返回值

字符串。

示例

tcl
add_frame -name Frame1
#-> Frame1

参数说明

参数说明
-name <stringValue>新帧名称。
-plot <stringValue>保存帧的图表。

calculate

从 Id-Vd 或 Id-Vg 曲线中提取 FET 参数。

TIP

此命令仅适用于 XY 图。

语法

tcl
calculate <stringValue> -op vth | gmmax | idsat | ioff | rout | ron
[-plot <stringValue>]

返回值

Double。

示例

tcl
calculate Curve_1 -op ron
#-> 0.0554013

参数说明

参数说明
<stringValue>曲线名称。
-op要提取的参数:vth、gmmax、idsat、ioff、rout、ron。
-plot <stringValue>图表名称。

calculate_field_value

计算场的最小值和最大值,并显示位置标记。

TIP

此命令仅适用于 2D 和 3D 图。

语法

tcl
calculate_field_value -min | -max
[-dataset <stringValue> | -plot <stringValue>]
[-field <stringValue>]
[-geom <stringValue>]
[-materials <stringList> | -regions <stringList>]
[-ranges {<x1> <x2> <y1> <y2> [<z1> <z2>]}]

返回值

Double 和坐标值列表。

示例

tcl
calculate_field_value -plot Plot_n9_des \
-field Abs(TotalCurrentDensity-V) -min
#-> 0.0206237318885 {271.172 5.39062 0}

参数说明

参数说明
-min | -max返回最小值还是最大值。
-dataset | -plot数据集或图表。
-field场的名称。
-geom几何体。
-materials | -regions材料或区域列表。
-ranges特定值范围。

calculate_scalar

计算标量值。

TIP

此命令仅适用于 XY 图。

语法

tcl
calculate_scalar 
(-curves [-plot <stringValue>] | -variables)
-function <stringValue>

返回值

Double。

示例

tcl
calculate_scalar -curves -plot Plot_1 \
-function vecmax(<Curve_1>)+vecmin(<Curve_1>)
#-> 0.000351277048757

参数说明

参数说明
-curves | -variables曲线函数还是变量函数。
-function提取标量值的公式。
-plot图表名称。

create_angle

测量由三个点定义的角度。

TIP

此命令仅适用于 2D 图。

语法

tcl
create_angle
-point1 {x y} -center {x y} -point2 {x y}
[-plot <stringValue>] [-snap_on | -snap_off]

返回值

字符串(测量角度)。

示例

tcl
create_angle -point1 {0.02 -0.04} -center {0.11 -0.04} \
-point2 {0.07 0.04}
#-> 63.4349488229

参数说明

参数说明
-point1 {x y}角度的第一个点。
-center {x y}角度的中心(顶点)。
-point2 {x y}角度的第二个点。
-plot图表名称。
-snap_on | -snap_off吸附到网格功能。

create_curve

为 XY 图创建新曲线。

TIP

此命令仅适用于 XY 图。

语法

tcl
create_curve
-dataset <stringList> -axisX <stringValue> 
(-axisY <stringValue> | -axisY2 <stringValue>) | 
-function <stringValue>
[-name <stringValue>] [-plot <stringValue>] [-y <intValue>]

返回值

列表。

示例

tcl
create_curve -plot Plot_1 -dataset IdVd_example \
-axisX "drain OuterVoltage" \
-axisY "drain TotalCurrent"
#-> Curve_1

参数说明

参数说明
-dataset | -function数据集列表或公式。
-axisXx 轴变量。
-axisY | -axisY2y 轴或 y2 轴变量。
-name曲线名称。
-plot图表名称。
-y针对哪个轴创建。

create_cut_boundary

沿指定结构边界创建切割线。

TIP

此命令仅适用于 2D 图和自由切割面。

语法

tcl
create_cut_boundary 
(-materials <stringList> | -regions <stringList>) 
-points <pointList>
[-dataset <stringValue> | -plot <stringValue>] [-name <stringValue>]
[-reverse] [-segments <stringList>]

返回值

字符串(1D 数据集名称)。

示例

tcl
create_cut_boundary -plot Plot_2D -regions {R.Gateox R.PolyReox} \
-segments {R.Gateox R.PolyReox} \
-points {"-0.5125 -0.002 0" "-0.6 -0.002 0" "-0.6 0 0"} -name myCut
#->myCut

参数说明

参数说明
-materials | -regions材料或区域。
-points切割线通过的点。
-dataset | -plot图表或数据集。
-name切割线名称。
-reverse反转方向。

create_cutline

创建新的切割线。

TIP

此命令仅适用于 2D 和 3D 图。

语法

tcl
create_cutline 
-type x | y | z -at <doubleValue> [-axisX x | y | z [-surface]] | 
-type free -points {<x1> <y1> [<z1>] <x2> <y2> [<z2>]}
[-dataset <stringValue> | -plot <stringValue>]
[-materials <stringList> | -regions <stringList>]
[-name <stringValue>]

返回值

字符串(1D 数据集名称)。

示例

tcl
create_cutline -plot Plot_2D -type free -points {-0.45 -0.15 0.30 0.80} \
-name myCutlineDataset
#-> myCutlineDataset

参数说明

参数说明
-at | -points轴位置或自由点。
-type x | y | z | free切割线类型。
-dataset | -plot源数据集或图表。
-materials | -regions材料或区域。
-name切割线名称。

create_cutplane

创建新的切割面。

TIP

此命令仅适用于 3D 图。

语法

tcl
create_cutplane
-type x | y | z | free -at <doubleValue> |
-type free -origin {<x> <y> <z>} -normal {<x> <y> <z>}
[-dataset <stringValue> | -plot <stringValue>] [-name <stringValue>]

返回值

字符串(2D 数据集名称)。

示例

tcl
create_cutplane -plot Plot_3D -name Cut1 -type y -at 0.3
#-> Cut1

参数说明

参数说明
-at | -origin -normal切割位置或自由面定义。
-type切割面类型。
-dataset | -plot源数据集或图表。
-name切割面名称。

create_cutpolyline

使用指定的顶点创建新的切割线。

TIP

此命令仅适用于 2D 图。

语法

tcl
create_cutpolyline -points <pointList>
[-dataset <stringValue> | -plot <stringValue>] 
[-materials <stringList> | -regions <stringList>]
[-name <stringValue>]

返回值

字符串。

示例

tcl
create_cutpolyline -plot Plot_2D \
-points {"0.05872 -0.260434" "0.46536 -0.034674" "0.26 0.074126"}
#-> C1(2D)

参数说明

参数说明
-points切割线通过的点。
-dataset | -plot源数据集或图表。
-materials | -regions材料或区域。
-name切割线名称。

create_cutpolyplanes

使用折线创建一系列切割面。

TIP

此命令仅适用于 3D 图。

语法

tcl
create_cutpolyplanes
-type x | y | z
-points <pointList>
[-dataset <stringValue> | -plot <stringValue>]
[-geom <stringValue>] [-name <stringValue>]

返回值

字符串(2D 数据集名称)。

示例

tcl
create_cutpolyplanes -type x \
-points { {0.3 0.1 0.2} {0.1 0.5 1.6} {2.4 0.5 1.3} } \
-plot Plot_3D -name Cut1
#-> Cut1

参数说明

参数说明
-type拉伸轴。
-points定义折线的顶点。
-dataset | -plot源数据集或图表。
-geom几何体。
-name数据集名称。

create_field

使用图表或数据集的数据创建新场。

TIP

此命令仅适用于 2D 和 3D 图。

语法

tcl
create_field -function <stringValue> -name <stringValue>
[-dataset <stringValue> | -plot <stringValue> [-geom <stringValue>]]
[-overwrite] [-show]

返回值

字符串。

示例

tcl
create_field -name newFld -dataset 3D -function "log(<ElectricField>)"
#-> newFld

参数说明

参数说明
-function要计算的函数。
-name新场的名称。
-dataset | -plot源图表或数据集。
-overwrite覆盖已存在的场。
-show立即显示。

create_iso

创建或修改等值几何体。

TIP

此命令仅适用于 2D 和 3D 图。

语法

tcl
create_iso -field <stringValue> -value <doubleValue>
[-color <#rrggbb>] [-geom <stringValue>]
[-modify | -name <stringValue>]
[-plot <stringValue>]

返回值

字符串(几何体名称)。

示例

tcl
create_iso -plot Plot_3D -geom 3D -field ElectrostaticPotential \
-value 0.0 -name Iso1(3D) -color blue
#-> Iso1(3D)

参数说明

参数说明
-field等值所在的场。
-value等值。
-color颜色。
-geom几何体名称。
-modify | -name创建或修改。
-plot图表名称。

create_plot

创建空 XY 图,或从 2D/3D 数据集创建图表。

语法

tcl
create_plot
-1d | -dataset <stringValue> | -duplicate <stringValue>
[-name <stringValue>]
[-ref_plot <stringValue>]
[-tdr_state_index <intValue>]

返回值

字符串。

示例

tcl
create_plot -dataset 3D
#-> Plot_3D

参数说明

参数说明
-1d | -dataset | -duplicate创建空图、从数据集创建或复制。
-name图表名称。
-ref_plot参考图表。
-tdr_state_indexTDR 状态索引。

create_projection

创建包含 3D 图轴上最大值或最小值的 2D 图。

TIP

此命令仅适用于 3D 图。

语法

tcl
create_projection 
-field <stringValue>
-function max | min
-type x | y | z | free
[-dataset <stringValue> | -plot <stringValue>] [-geom <stringValue>]
[-materials <stringList> | -regions <stringList>]
[-name <stringValue>] [-normal <doubleList>]
[-origin <doubleList>] [-resolution <x>x<y>x<z>]
[-width <doubleValue>] [-window {x1 y1 [z1] x2 y2 [z2]}]

返回值

字符串。

示例

tcl
create_projection -plot Plot_3D -field DopingConcentration \
-function max -resolution 50x50x50
-type free -origin {0 0 0} -normal {0.1 0.05 -0.3}
#-> Projection_max(3D)

参数说明

参数说明
-field要投影的场。
-function max | min最大值或最小值投影。
-type投影轴。
-dataset | -plot源数据集或图表。
-geom几何体。
-materials | -regions材料或区域。
-name结果图表名称。
-normal平面法线。
-origin平面原点。
-resolution算法分辨率。
-width域宽度。
-window窗口范围。

create_projection_path

创建从路径上多个平面提取最大值/最小值的 2D 图。

TIP

此命令仅适用于 3D 图。

语法

tcl
create_projection_path
-field <stringValue>
-function max | min
-points <pointList>
-type x | y | z
[-dataset <stringValue> | -plot <stringValue>]
[-geom <stringValue>]
[-name <stringValue>]
[-resolution <x>x<y>x<z>]
[-width <doubleList>]

返回值

字符串。

示例

tcl
create_projection_path -plot Plot_3D -field DopingConcentration
-type x -function max -resolution 50x50x50 -width {0.1 0.14}
-points {"2.5e-05 -0.0669983 0.0378416" "-0.0950691 -0.0272096"
"0.0251004" "-0.100966 0.00648555 0.0243684"}
#-> Projection_max(3D)

参数说明

参数说明
-field要投影的场。
-function最大值或最小值投影。
-points定义路径的点。
-type拉伸轴。
-dataset | -plot源数据集或图表。
-geom几何体。
-name结果图表名称。
-resolution算法分辨率。
-width每个平面的宽度。

create_ruler

测量两点之间的距离。

TIP

此命令仅适用于 2D 和 3D 图。

语法

tcl
create_ruler -id <intValue> -point1 {x y [z]} -point2 {x y [z]}
[-plot <stringValue>] [-snap_on | -snap_off]

返回值

两点之间的距离。

示例

tcl
create_ruler -id 2 -point1 {0.1 0.1 0.1} -point2 {0.5 0.5 0.2} -snap_off
#-> 0.574456264654

参数说明

参数说明
-id直尺的 ID。
-point1第一个点。
-point2第二个点。
-plot图表名称。
-snap_on | -snap_off吸附到网格功能。

create_streamline

在 2D 或 3D 图上创建新的流线。

TIP

此命令仅适用于 2D 和 3D 图。

语法

tcl
create_streamline
-direction forward | backward | both
-field <stringValue>
(-point {<x> <y> [<z>]} | 
-p1 {<x> <y> [<z>]} -p2 {<x> <y> [<z>]} -nofpoints <intValue>)
[-geom <stringValue>]
[-integ_initial_step <doubleValue>]
[-integ_max_propagation <doubleValue>]
[-integ_max_steps <intValue>]
[-integ_terminal_speed <doubleValue>]
[-materials <stringList> | -regions <stringList>]
[-name <stringValue>] [-plot <stringValue>]

返回值

列表。

示例

tcl
create_streamline -field ElectricField -point {0.5 0.2} -direction both
#-> Streamline_1

参数说明

参数说明
-direction流线方向。
-field创建流线的场。
-point | -p1 -p2 -nofpoints起点/终点定义。
-geom几何体名称。
-integ_initial_step初始步长。
-integ_max_propagation最大传播长度。
-integ_max_steps迭代次数。
-integ_terminal_speed终端速度阈值。
-materials | -regions材料或区域。
-name流线标识符。
-plot图表名称。

create_surface

使用 2D 数据集创建新的 3D 数据集。

TIP

此命令仅适用于 2D 和 3D 表面数据集。

语法

tcl
create_surface
[-dataset <stringValue> | -plot <stringValue> [-geom <stringValue>]]
[-factor <doubleValue>] [-field <stringValue>] [-name <stringValue>]
[-range <doubleList>] [-scale linear | logabs | asinh]

返回值

字符串(数据集名称)。

示例

tcl
create_surface -plot Plot_2D -geom 2D -field ElectrostaticPotential \
-factor 0.2 -name Surface1(2D)
#-> Surface1(2D)

参数说明

参数说明
-dataset数据集。
-factor坐标乘数。
-field场。
-geom几何体。
-name表面数据集名称。
-plot图表。
-range坐标范围。
-scale比例类型。

create_variable

创建新变量。

TIP

此命令仅适用于 XY 图。

语法

tcl
create_variable
-dataset <stringValue>
(-function <stringValue> | -values <doubleList>)
-name <stringValue>

返回值

字符串。

示例

tcl
create_variable -name nVar -dataset idvd -values {0.1 0.3 0.5 0.7 0.9}
#-> nVar

参数说明

参数说明
-dataset数据集。
-function | -values表达式或值列表。
-name变量名称。

diff_plots

创建图表差异数据集。

TIP

此命令仅适用于 2D 和 3D 图。

语法

tcl
diff_plots <stringList> [-display] [-normalized]

返回值

字符串。

示例

tcl
diff_plots {Plot1 Plot2}
#-> Plot1-Plot2

参数说明

参数说明
<stringList>图表列表。
-display创建新图表。
-normalized归一化值。

draw_ellipse

在指定位置绘制椭圆。

TIP

此命令仅适用于 XY 图。

语法

tcl
draw_ellipse -p1 {<x1> <y1>} -p2 {<x2> <y2>} 
[-plot <stringValue>]

返回值

字符串(椭圆名称)。

示例

tcl
draw_ellipse -plot Plot_XY -p1 {0 0.5} -p2 {0.75 0.25}
#-> Ellipse_1

参数说明

参数说明
-p1矩形左上角。
-p2矩形右下角。
-plot图表名称。

draw_line

绘制连接两点的直线。

TIP

此命令仅适用于 XY 和 2D 图。

语法

tcl
draw_line -p1 <doubleList> -p2 <doubleList>
[-plot <stringValue>]

返回值

字符串(线条名称)。

示例

tcl
draw_line -plot Plot_n9_des -p1 {62.9161 49.8411} -p2 {138.117 60.5841}
#-> Line_1

参数说明

参数说明
-p1第一个点。
-p2第二个点。
-plot图表名称。

draw_rectangle

绘制矩形。

TIP

此命令仅适用于 XY 和 2D 图。

语法

tcl
draw_rectangle -p1 <doubleList> -p2 <doubleList>
[-plot <stringValue>]

返回值

字符串(矩形名称)。

示例

tcl
draw_rectangle -plot Plot_n9_des -p1 {46.0341 38.0749} \
-p2 {97.1916 112.253}
#-> Plane_1

参数说明

参数说明
-p1左上角。
-p2右下角。
-plot图表名称。

draw_textbox

绘制带有标签的文本框和箭头。

TIP

此命令仅适用于 XY 和 2D 图。

语法

tcl
draw_textbox -at <doubleList> -label <stringValue>
[-anchor <doubleList>] [-plot <stringValue>]

返回值

字符串(文本框名称)。

示例

tcl
draw_textbox -at {219.458 41.6559} -anchor {219.458 41.1443} -label Text
#-> Text

参数说明

参数说明
-at文本框位置。
-label标签文本。
-anchor箭头指向位置。
-plot图表名称。

echo

在控制台中打印字符串。

语法

tcl
echo [<stringValue>]

返回值

无。

示例

tcl
echo "Hello World"
#-> Hello World

exit

退出 Sentaurus Visual。

语法

tcl
exit [<intValue>]

返回值

无。

示例

tcl
exit 1
#-> Exit status: 1

参数说明

参数说明
<intValue>退出代码。默认 0。

export_curves

将曲线导出为文件。

语法

tcl
export_curves -filename <stringValue> -plot <stringValue>
[<stringList>] [-format csv | plx] [-overwrite]

返回值

Integer。

示例

tcl
export_curves -plot Plot_1 -filename testFile.csv -format csv
#-> 0

参数说明

参数说明
-filename文件名。
-plot图表。
<stringList>曲线列表。
-format格式:csv 或 plx。
-overwrite覆盖。

export_movie

将帧导出为 GIF 电影。

TIP

必须先使用 start_movieadd_frame 命令。

语法

tcl
export_movie -filename <stringValue>
[-frame_duration <intValue>]
[-frames <stringList>] [-overwrite]

返回值

字符串。

示例

tcl
export_movie -filename Movie.gif -frame_duration 2 -overwrite
#-> Movie.gif

参数说明

参数说明
-filename电影文件名。
-frame_duration每帧持续时间(1/100 秒)。
-frames帧列表。
-overwrite覆盖。

export_settings

导出 Sentaurus Visual 设置到文件。

语法

tcl
export_settings <stringValue>

返回值

Integer。

示例

tcl
export_settings settings.conf
#-> 0

export_variables

将变量导出到文件。

语法

tcl
export_variables -dataset <stringValue> -filename <stringValue>
[-overwrite] [<stringList>]

返回值

Integer。

示例

tcl
export_variables -dataset Data_1 -filename exportedVars.csv
#-> 0

参数说明

参数说明
-dataset数据集。
-filename文件路径。
-overwrite覆盖。
<stringList>变量列表。

export_view

将图表导出为图像文件。

语法

tcl
export_view <stringValue>
[-format <stringValue>] [-overwrite] [-plots <stringList>]
[-resolution <width>x<height>]

返回值

Integer。

示例

tcl
export_view /path/to/examplePlot.bmp -format bmp
#-> 0

参数说明

参数说明
<stringValue>文件名。
-format格式:BMP、EPS、JPEG、JPG、PNG、PPM、TIF、TIFF、XBM、XPM。
-overwrite覆盖。
-plots图表列表。
-resolution输出分辨率。

extract_path

提取标量场最小值/最大值的路径。

TIP

此命令仅适用于 2D 和 3D 图。

语法

tcl
extract_path <stringValue> -max | -min
[-bottom <doubleValue>] [-geom <stringValue>]
[-materials <stringList> | -regions <stringList>] 
[-plot <stringValue>] [-points <pointList>]
[-start {<x> <y> <z>} -end {<x> <y> <z>}]
[-top <doubleValue>] [-type x | y | z]
[-window {<x1> <y1> [<z1>] <x2> <y2> [<z2])}]

返回值

字符串(几何体名称)。

示例

tcl
extract_path ElectrostaticPotential -plot Plot_2D -geom 2D \
-materials {Oxide Silicon} -window {-10.32 0 10 10} -max
#-> PathGeometry_2D

参数说明

参数说明
<stringValue>标量场名称。
-max | -min最大值还是最小值。
-bottom底面坐标。
-geom几何体。
-materials | -regions材料或区域。
-plot图表。
-points多边形顶点。
-start -end3D 路径起点终点。
-top顶面坐标。
-type拉伸轴。
-window窗口。

extract_streamlines

从流线中提取场和坐标数据。

TIP

此命令仅适用于 2D 和 3D 图。

语法

tcl
extract_streamlines <stringList> [-plot <stringValue>]

返回值

列表(1D 数据集名称)。

示例

tcl
extract_streamlines {Streamline} -plot Plot_2D
#-> {Streamline(Plot_2D)}

参数说明

参数说明
<stringList>流线列表。
-plot图表。

extract_value

计算多面体的最小/最大场值。

TIP

此命令仅适用于 3D 图。

语法

tcl
extract_value -min | -max
[-bottom <doubleValue>] [-dataset <stringValue>]
[-field <stringValue>] [-geom <stringValue>]
[-materials <stringList> | -regions <stringList>]
[-plot <stringValue>] [-points <pointList>]
[-top <doubleValue>] [-type x | y | z]

返回值

Double 和坐标值列表。

示例

tcl
extract_value -plot Plot_n10_des -field Abs(TotalCurrentDensity-V) 
-min -type z -top 0.05 -bottom 0
-points {{0 -0.04 0.05} {0 0.04 0.05} {0.1 0.04 0.05} 
{0.1 -0.04 0.05}}
#-> -6.41e+18 {0.00781 0.01 0.00625}

参数说明

参数说明
-min | -max最小值还是最大值。
-bottom底面高度。
-dataset数据集。
-field场。
-geom几何体。
-materials | -regions材料或区域。
-plot图表。
-points多边形顶点。
-top顶面高度。
-type拉伸轴。

find_values

返回标量场中具有指定值的所有点的位置。

TIP

此命令仅适用于 2D 和 3D 图。

语法

tcl
find_values <doubleValue> -field <stringValue>
[-geom <stringValue>] [-plot <stringValue>]
[-window {<x1> <y1> [<z1>] <x2> <y2> [<z2>]}]

返回值

点的位置列表。

示例

tcl
find_values 1.0 -field ElectrostaticPotential
#-> {3.53079 -0.0263978 0.392817} {6.41207 -1.7982327 3.289376}

参数说明

参数说明
<doubleValue>要查找的值。
-field标量场。
-geom几何体。
-plot图表。
-window窗口范围。

get_angle_prop

返回角度属性。

语法

tcl
get_angle_prop
(-center | -color | -orthogonal_on | -pos1 | -pos2 | -precision |
-show_label | -snap_on | -width)
[-plot <stringValue>]

返回值

属性值。

示例

tcl
get_angle_prop -color
#-> #000000

参数说明

参数说明
-center角度中心。
-color颜色。
-orthogonal_on正交移动状态。
-pos1第一个点。
-pos2第二个点。
-precision小数精度。
-show_label标签状态。
-snap_on吸附状态。
-width线条宽度。
-plot图表。

get_axis_prop

返回轴属性。

语法

tcl
get_axis_prop -axis x | y | z | y2
(-anchor | -auto_padding | -auto_precision | -auto_spacing | 
-inverted | -label_angle | -label_font_att | -label_font_color |
-label_font_factor | -label_font_family | -label_font_size |
-label_format | -label_padding | -label_precision |
-major_ticks_length | -major_ticks_width | -max | -max_fixed | 
-min | -min_fixed | -minor_ticks_length | -minor_ticks_position |
-minor_ticks_width | -nof_minor_ticks | -padding | -range | 
-show | -show_minor_ticks | -show_label | -show_ticks |
-show_title | -spacing | -ticks_position | -title | 
-title_font_att | -title_font_color | -title_font_factor |
-title_font_family | -title_font_size | -type)
[-plot <stringValue>]

返回值

属性值。

示例

tcl
get_axis_prop -axis x -type
#-> linear

参数说明

参数说明
-axis x | y | z | y2轴。
-anchor刻度起点。
-auto_padding自动填充。
-auto_precision自动精度。
-auto_spacing自动间距。
-inverted反转状态。
-label_angle标签角度。
-label_font_att标签字体属性。
-label_font_color标签颜色。
-label_font_factor标签大小因子。
-label_font_family标签字体。
-label_font_size标签大小。
-label_format标签格式。
-label_padding标签填充。
-label_precision标签精度。
-major_ticks_length主刻度长度。
-major_ticks_width主刻度宽度。
-max最大值。
-max_fixed最大值固定状态。
-min最小值。
-min_fixed最小值固定状态。
-minor_ticks_length副刻度长度。
-minor_ticks_position副刻度位置。
-minor_ticks_width副刻度宽度。
-nof_minor_ticks副刻度数量。
-padding填充。
-range范围。
-show显示状态。
-show_minor_ticks副刻度显示。
-show_label标签显示。
-show_ticks刻度显示。
-show_title标题显示。
-spacing间距。
-ticks_position刻度位置。
-title标题。
-title_font_att标题字体属性。
-title_font_color标题颜色。
-title_font_factor标题大小因子。
-title_font_family标题字体。
-title_font_size标题大小。
-type比例类型。
-plot图表。

get_camera_prop

返回相机属性。

TIP

仅适用于 3D 图。

语法

tcl
get_camera_prop 
(-dolly_zoom_on | -focal_point | -parallel | -position | -rot_color |
-rot_size | -rot_width | -rotation_point | -setup |
-show_rotation_point | -view_angle | -view_up)
[-plot <stringValue>]

返回值

属性值。

示例

tcl
get_camera_prop -position
#-> 3.53079 -0.0263978 0.392817

参数说明

参数说明
-dolly_zoom_ondolly 缩放状态。
-focal_point焦点位置。
-parallel平行投影状态。
-position相机位置。
-rot_color旋转点颜色。
-rot_size旋转点大小。
-rot_width旋转点宽度。
-rotation_point旋转点位置。
-setup当前设置。
-show_rotation_point旋转点显示。
-view_angle视角。
-view_upview-up 向量。
-plot图表。

get_contour_labels_prop

返回等值线标签属性。

语法

tcl
get_contour_labels_prop <stringValue>
(-anchor | -color_bg | -font_att | -font_color | -font_factor | 
-font_family | -format | -level_skip | -precision | -show_bg |
-show_index | -spacing)
[-geom <stringValue>] [-plot <stringValue>]

返回值

属性值。

示例

tcl
get_contour_labels_prop DopingConcentration -format
#-> engineering

参数说明

参数说明
<stringValue>场名称。
-anchor锚点。
-color_bg背景颜色。
-font_att字体属性。
-font_color字体颜色。
-font_factor字体乘数。
-font_family字体类型。
-format格式。
-level_skip级别跳过。
-precision精度。
-show_bg背景显示。
-show_index索引显示。
-spacing间距。
-geom几何体。
-plot图表。

get_curve_data

返回曲线轴的数据。

语法

tcl
get_curve_data <stringValue> -axisX | -axisY | -scalar
[-plot <stringValue>]

返回值

数据值。

示例

tcl
get_curve_data Curve_1 -axisX
#-> 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5

参数说明

参数说明
<stringValue>曲线名称。
-axisX | -axisY | -scalar轴或标量。
-plot图表。

get_curve_prop

返回曲线属性。

TIP

仅适用于 XY 图。

语法

tcl
get_curve_prop <stringValue>
(-axis | -color | -deriv | -function | -integ | -label | -line_style |
-line_width | -markers_size | -markers_type | -selected | -show | 
-show_legend | -show_line | -show_markers | -xScale | -xShift |
-yScale | -yShift)
[-plot <stringValue>]

返回值

属性值。

示例

tcl
get_curve_prop Curve_1 -deriv
#-> 2

参数说明

参数说明
<stringValue>曲线标识符。
-axis轴对齐。
-color颜色。
-deriv导数阶数。
-function函数。
-integ积分。
-label标签。
-line_style线型。
-line_width线宽。
-markers_size标记大小。
-markers_type标记类型。
-selected选中状态。
-show显示状态。
-show_legend图例显示。
-show_line线条显示。
-show_markers标记显示。
-xScalex 比例。
-xShiftx 偏移。
-yScaley 比例。
-yShifty 偏移。
-plot图表。

get_cutline_prop

返回切割线属性。

TIP

适用于 2D 和 3D 图。

语法

tcl
get_cutline_prop <stringValue> -plot <stringValue>
(-handles_color | -hide_handles | -label_op | -label_pos | 
-label_size | -line_color | -line_style | -line_width |
-pos1 | -pos2 | -show_handles | -show_label)

返回值

属性值。

示例

tcl
get_cutline_prop C1 -plot Plot_2D -pos1
#-> 0.1 2.7891 0

参数说明

参数说明
<stringValue>切割线名称。
-plot图表。
-handles_color手柄颜色。
-hide_handles手柄隐藏状态。
-label_op标签位置。
-label_pos标签位置。
-label_size标签大小。
-line_color线条颜色。
-line_style线条样式。
-line_width线条宽度。
-pos1第一个点。
-pos2第二个点。
-show_handles手柄显示。
-show_label标签显示。

get_cutplane_prop

返回切割面属性。

TIP

仅适用于 3D 图。

语法

tcl
get_cutplane_prop <stringValue> -plot <stringValue>
(-at | -hide_label | -label_position | -label_size | -normal |
-origin | -show_label)

返回值

属性值。

示例

tcl
get_cutplane_prop C1 -plot Plot_3D -at
#-> 0.483

参数说明

参数说明
<stringValue>切割面名称。
-plot图表。
-at位置值。
-hide_label标签隐藏状态。
-label_position标签位置。
-label_size标签大小。
-normal法线向量。
-origin原点向量。
-show_label标签显示。

get_ellipse_prop

返回椭圆属性。

TIP

仅适用于 XY 图。

语法

tcl
get_ellipse_prop <stringValue>
( -fill_color | -line_color | -line_style | -line_width | -p1 | -p2 )
[-plot <stringValue>]

返回值

属性值。

示例

tcl
get_ellipse_prop Ellipse_1 -plot Plot_1 -line_style
#-> dashdotdot

参数说明

参数说明
<stringValue>椭圆对象名称。
-fill_color填充颜色。
-line_color线条颜色。
-line_style线条样式。
-line_width线条宽度。
-p1起点。
-p2终点。
-plot图表。

get_field_prop

返回场属性。

TIP

仅适用于 2D 和 3D 图。

语法

tcl
get_field_prop [<stringValue>]
(-contour_labels_on | -custom_levels | -interpolated_values | -label |
-levels | -line_color | -line_width | -max | -max_fixed | -min | 
-min_fixed | -range | -scale | -show | -show_bands)
[-geom <stringValue>] [-plot <stringValue>]

返回值

属性值。

示例

tcl
get_field_prop -range
#-> {2.36618e-05 4.36902e+06}

参数说明

参数说明
<stringValue>场名称。
-contour_labels_on等值线标签。
-custom_levels自定义级别。
-interpolated_values插值状态。
-label标签。
-levels级别。
-line_color线条颜色。
-line_width线条宽度。
-max最大值。
-max_fixed最大值固定。
-min最小值。
-min_fixed最小值固定。
-range范围。
-scale比例。
-show显示状态。
-show_bands条带显示。
-geom几何体。
-plot图表。

基于 Sentaurus TCAD 官方文档构建

代码块