約束草圖
27 個節點
本頁內容 27
角度
函數兩條直線之間的角度,以度為單位。
簽名
角度
Constraint Sketch: Constraint Sketch
A: Sketch Curve
B: Sketch Curve
度數: 數字
名稱: 文字void Angle(
ConstraintSketch Constraint Sketch,
SketchCurve a,
SketchCurve b,
double degrees,
string name = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| A | Sketch Curve | — | |
| B | Sketch Curve | — | |
| 度數 | 數字 | — | 角度,以度為單位。 |
| 名稱 | 文字 | — | 尺寸的名稱,供“設定尺寸”查詢;可以為空。 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
圓弧
函數繞圓心從起點逆時針到終點的圓弧。
簽名
圓弧 -> Sketch Curve
Constraint Sketch: Constraint Sketch
圓心 X: 數字
圓心 Y: 數字
起點 X: 數字
起點 Y: 數字
終點 X: 數字
終點 Y: 數字SketchCurve Arc(
ConstraintSketch Constraint Sketch,
double cx,
double cy,
double startX,
double startY,
double endX,
double endY)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 圓心 X | 數字 | — | |
| 圓心 Y | 數字 | — | |
| 起點 X | 數字 | — | |
| 起點 Y | 數字 | — | |
| 終點 X | 數字 | — | |
| 終點 Y | 數字 | — |
返回
| 結果 | Sketch Curve |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
構建
函數求解草圖並構建它的實體。沒能求解的內容由模型的“組”報告,節點不會因此失敗。
簽名
構建(Constraint Sketch: Constraint Sketch) -> Constraint Model
ConstraintModel Build(ConstraintSketch Constraint Sketch)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — |
返回
| 結果 | Constraint Model |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
圓
函數一個圓。
簽名
圓 -> Sketch Curve
Constraint Sketch: Constraint Sketch
圓心 X: 數字
圓心 Y: 數字
半徑: 數字SketchCurve Circle(
ConstraintSketch Constraint Sketch,
double cx,
double cy,
double radius)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 圓心 X | 數字 | — | |
| 圓心 Y | 數字 | — | |
| 半徑 | 數字 | — |
返回
| 結果 | Sketch Curve |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
重合
函數兩個點位於同一位置。
簽名
重合
Constraint Sketch: Constraint Sketch
A: Sketch Point
B: Sketch Pointvoid Coincident(
ConstraintSketch Constraint Sketch,
SketchPoint a,
SketchPoint b)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| A | Sketch Point | — | |
| B | Sketch Point | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
直徑
函數圓或圓弧的直徑。
簽名
直徑
Constraint Sketch: Constraint Sketch
圓: Sketch Curve
值: 數字
名稱: 文字void Diameter(
ConstraintSketch Constraint Sketch,
SketchCurve circle,
double value,
string name = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 圓 | Sketch Curve | — | |
| 值 | 數字 | — | 直徑,以毫米為單位。 |
| 名稱 | 文字 | — | 尺寸的名稱,供“設定尺寸”查詢;可以為空。 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
距離
函數兩點之間的距離;帶名稱時,之後可以通過“設定尺寸”修改它。
簽名
距離
Constraint Sketch: Constraint Sketch
A: Sketch Point
B: Sketch Point
值: 數字
名稱: 文字void Distance(
ConstraintSketch Constraint Sketch,
SketchPoint a,
SketchPoint b,
double value,
string name = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| A | Sketch Point | — | |
| B | Sketch Point | — | |
| 值 | 數字 | — | 距離,以毫米為單位。 |
| 名稱 | 文字 | — | 尺寸的名稱,供“設定尺寸”查詢;可以為空。 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
等長
函數兩條長度相等的直線。
簽名
等長
Constraint Sketch: Constraint Sketch
A: Sketch Curve
B: Sketch Curvevoid EqualLength(
ConstraintSketch Constraint Sketch,
SketchCurve a,
SketchCurve b)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| A | Sketch Curve | — | |
| B | Sketch Curve | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
等半徑
函數兩個半徑相等的圓或圓弧。
簽名
等半徑
Constraint Sketch: Constraint Sketch
A: Sketch Curve
B: Sketch Curvevoid EqualRadius(
ConstraintSketch Constraint Sketch,
SketchCurve a,
SketchCurve b)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| A | Sketch Curve | — | |
| B | Sketch Curve | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
拉伸
函數沿工作平面的法向拉伸草圖的閉合區域;深度和其他尺寸一樣,也是一個尺寸。
簽名
拉伸
Constraint Sketch: Constraint Sketch
深度: 數字
名稱: 文字void Extrude(
ConstraintSketch Constraint Sketch,
double depth,
string name = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 深度 | 數字 | — | 拉伸的深度,以毫米為單位。 |
| 名稱 | 文字 | — | 深度這一尺寸的名稱,供“設定尺寸”查詢;可以為空。 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
原點
函數草圖的原點,它是固定的。
簽名
原點(Constraint Sketch: Constraint Sketch) -> Sketch Point
SketchPoint Origin(ConstraintSketch Constraint Sketch)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — |
返回
| 結果 | Sketch Point |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
水平
函數一條與工作平面的 X 軸平行的直線。
簽名
水平(Constraint Sketch: Constraint Sketch, 直線: Sketch Curve)
void Horizontal(
ConstraintSketch Constraint Sketch,
SketchCurve line)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 直線 | Sketch Curve | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
車削
函數讓草圖的閉合區域繞一條構造線旋轉一整圈。
簽名
車削(Constraint Sketch: Constraint Sketch, 軸: Sketch Curve)
void Lathe(ConstraintSketch Constraint Sketch, SketchCurve axis)
參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 軸 | Sketch Curve | — | 作為軸的構造線。 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
長度
函數線段的長度。
簽名
長度
Constraint Sketch: Constraint Sketch
直線: Sketch Curve
值: 數字
名稱: 文字void Length(
ConstraintSketch Constraint Sketch,
SketchCurve line,
double value,
string name = "")參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 直線 | Sketch Curve | — | |
| 值 | 數字 | — | 長度,以毫米為單位。 |
| 名稱 | 文字 | — | 尺寸的名稱,供“設定尺寸”查詢;可以為空。 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
直線
函數一條線段;構造線參與約束,也可以作為車削的軸,但不圍成區域。
簽名
直線 -> Sketch Curve
Constraint Sketch: Constraint Sketch
X1: 數字
Y1: 數字
X2: 數字
Y2: 數字
構造線: 真否SketchCurve Line(
ConstraintSketch Constraint Sketch,
double x1,
double y1,
double x2,
double y2,
bool construction = false)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| X1 | 數字 | — | |
| Y1 | 數字 | — | |
| X2 | 數字 | — | |
| Y2 | 數字 | — | |
| 構造線 | 真否 | False | 是否為構造線。 |
返回
| 結果 | Sketch Curve |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
中點
函數點位於直線的中點。
簽名
中點
Constraint Sketch: Constraint Sketch
點: Sketch Point
直線: Sketch Curvevoid Midpoint(
ConstraintSketch Constraint Sketch,
SketchPoint point,
SketchCurve line)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 點 | Sketch Point | — | |
| 直線 | Sketch Curve | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
點在圓上
函數點在圓或圓弧上。
簽名
點在圓上
Constraint Sketch: Constraint Sketch
點: Sketch Point
圓: Sketch Curvevoid OnCircle(
ConstraintSketch Constraint Sketch,
SketchPoint point,
SketchCurve circle)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 點 | Sketch Point | — | |
| 圓 | Sketch Curve | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
點在直線上
函數點在直線上(直線向兩端無限延長)。
簽名
點在直線上
Constraint Sketch: Constraint Sketch
點: Sketch Point
直線: Sketch Curvevoid OnLine(
ConstraintSketch Constraint Sketch,
SketchPoint point,
SketchCurve line)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 點 | Sketch Point | — | |
| 直線 | Sketch Curve | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
平行
函數兩條平行的直線。
簽名
平行
Constraint Sketch: Constraint Sketch
A: Sketch Curve
B: Sketch Curvevoid Parallel(
ConstraintSketch Constraint Sketch,
SketchCurve a,
SketchCurve b)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| A | Sketch Curve | — | |
| B | Sketch Curve | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
垂直
函數兩條垂直的直線。
簽名
垂直
Constraint Sketch: Constraint Sketch
A: Sketch Curve
B: Sketch Curvevoid Perpendicular(
ConstraintSketch Constraint Sketch,
SketchCurve a,
SketchCurve b)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| A | Sketch Curve | — | |
| B | Sketch Curve | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
點
函數一個基準點。
簽名
點 -> Sketch Point
Constraint Sketch: Constraint Sketch
X: 數字
Y: 數字SketchPoint Point(
ConstraintSketch Constraint Sketch,
double x,
double y)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| X | 數字 | — | |
| Y | 數字 | — |
返回
| 結果 | Sketch Point |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
多邊形
函數按順序經過各點、角點重合的閉合多邊形。
簽名
多邊形 -> Sketch Curve 陣列
Constraint Sketch: Constraint Sketch
X 座標: 數字陣列
Y 座標: 數字陣列SketchCurve[] Polygon(
ConstraintSketch Constraint Sketch,
double[] xs,
double[] ys)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| X 座標 | 數字陣列 | — | 各點的 X 座標。 |
| Y 座標 | 數字陣列 | — | 各點的 Y 座標,個數與 X 座標相同。 |
返回
| 結果 | Sketch Curve 陣列 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
矩形
函數由四條直線圍成的閉合矩形:角點重合,邊水平和豎直,從底邊起逆時針排列。
簽名
矩形 -> Sketch Curve 陣列
Constraint Sketch: Constraint Sketch
X1: 數字
Y1: 數字
X2: 數字
Y2: 數字SketchCurve[] Rectangle(
ConstraintSketch Constraint Sketch,
double x1,
double y1,
double x2,
double y2)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| X1 | 數字 | — | |
| Y1 | 數字 | — | |
| X2 | 數字 | — | |
| Y2 | 數字 | — |
返回
| 結果 | Sketch Curve 陣列 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
旋轉成形
函數讓草圖的閉合區域繞一條構造線旋轉一個角度,以度為單位。
簽名
旋轉成形
Constraint Sketch: Constraint Sketch
軸: Sketch Curve
度數: 數字void Revolve(
ConstraintSketch Constraint Sketch,
SketchCurve axis,
double degrees)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 軸 | Sketch Curve | — | 作為軸的構造線。 |
| 度數 | 數字 | — | 旋轉的角度,以度為單位。 |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
相切
函數圓弧在與直線共有的點處與直線相切;這個共有點須由“重合”建立。
簽名
相切
Constraint Sketch: Constraint Sketch
圓弧: Sketch Curve
直線: Sketch Curvevoid Tangent(
ConstraintSketch Constraint Sketch,
SketchCurve arc,
SketchCurve line)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 圓弧 | Sketch Curve | — | |
| 直線 | Sketch Curve | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
豎直
函數一條與工作平面的 Y 軸平行的直線。
簽名
豎直(Constraint Sketch: Constraint Sketch, 直線: Sketch Curve)
void Vertical(
ConstraintSketch Constraint Sketch,
SketchCurve line)參數
| 名稱 | 型別 | 預設值 | 說明 |
|---|---|---|---|
| Constraint Sketch | Constraint Sketch | — | |
| 直線 | Sketch Curve | — |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計
開始草圖
函數在 XY 工作平面中開始一個草圖。
簽名
開始草圖() -> Constraint Sketch
ConstraintSketch Begin()
返回
| 結果 | Constraint Sketch |
- 所屬發行版
- 元編程(教育版)元編程(專業版)
- 可用的圖種類
- 事件 例程 狀態機狀態
- 宣告於
- 約束草圖
- 所屬包
- 電腦輔助設計