元编程参考文档

CAD 文字

3 个节点

本页内容 3

轮廓线

函数

Builds independently owned closed glyph contours, including counters. Use Regions when the outer/hole relationship is needed.

签名
轮廓线 -> Curve 数组
    文本: 文本
    字体: Cad Font
    大小: 数字
    坐标系: 可选 Plane
    容差: 数字
Curve[] Outlines(
    string text,
    CadFont font,
    double size,
    Plane? frame,
    double tolerance = 1E-06)

参数

名称类型默认值说明
文本文本—
字体Cad Font—
大小数字—
坐标系可选 Plane—
容差数字1E-06

返回

结果Curve 数组
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
CAD 文字
所属包
计算机辅助设计

区域

函数

Builds filled regions with counters preserved. Supports multiline text, kerning and the font package's OpenType shaping; unsupported glyphs fail rather than silently becoming boxes.

签名
区域 -> Curve Region 数组
    文本: 文本
    字体: Cad Font
    大小: 数字
    坐标系: 可选 Plane
    容差: 数字
CurveRegion[] Regions(
    string text,
    CadFont font,
    double size,
    Plane? frame,
    double tolerance = 1E-06)

参数

名称类型默认值说明
文本文本—
字体Cad Font—
大小数字—
坐标系可选 Plane—
容差数字1E-06

返回

结果Curve Region 数组
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
CAD 文字
所属包
计算机辅助设计

实体文字

函数

Extrudes filled glyph regions along the frame normal. Negative depth engraves towards the back of the plane; union or subtract the result from a workpiece. Its groups are an extrusion's: the whole, "start", "end" and "sides".

签名
实体文字 -> Cad Model
    文本: 文本
    字体: Cad Font
    大小: 数字
    深度: 数字
    坐标系: 可选 Plane
    容差: 数字
    名称: 文本
CadModel Solid(
    string text,
    CadFont font,
    double size,
    double depth,
    Plane? frame,
    double tolerance = 1E-06,
    string name = "")

参数

名称类型默认值说明
文本文本—The text.
字体Cad Font—The font.
大小数字—The text's size, in the model's units.
深度数字—How deep; negative engraves backwards.
坐标系可选 Plane—The plane the text stands on; the world's XY plane when none.
容差数字1E-06The model's tolerance, in its units.
名称文本—它的组叫什么;留空则用操作的种类,例如 "Box"。组名为这个名称加上部分,例如 "Boss top"。

返回

结果Cad Model
所属发行版
元编程(教育版)元编程(专业版)
可用的图种类
数据流 函数 事件 例程 蓝图 状态机状态
声明于
CAD 文字
所属包
计算机辅助设计