v7.5
指定した Unfold Property に関連付けられているカッティングラインの定義を選択します。
oBoolean = UnfoldSelectCut( UnfoldProperty, [Object(s)] ); |
コマンドが成功したかどうかをレポートするBooleanを戻します。
| パラメータ | タイプ | 説明 |
|---|---|---|
| UnfoldProperty | Unfold Property(またはそのポインタ) | オブジェクトに適用されている Unfold Property |
| Object(s) | X3DObject オブジェクトのリスト |
カッティング ラインを保持するオブジェクト デフォルト値:指定されていない場合は、現在の選択が使用されます。 |
#
# This example demonstrates how to select the
# current cutting definition of an Unfold property
#
a = Application
a.NewScene("", 0)
def LogCuts( in_prop ) :
x = Application
x.UnfoldSelectCut(in_prop)
if (x.Selection.Count) :
x.LogMessage(in_prop.Parent3DObject.Name + " cutting line: " + x.Selection(0).Value)
else :
x.LogMessage(in_prop.Parent3DObject.Name + " cutting line: [empty]")
g = a.CreatePrim("Grid", "MeshSurface")
# Set up an Unfold property on the grid with a cutting line
a.UnfoldApply("grid")
up = g.Properties("Unfold")
a.UnfoldSetCut(up, "grid.edge[14,34,51,68,71,73,75]")
LogCuts(up)
# -------------------------
# Expected results
# INFO : grid cutting line: grid.edge[14,34,51,68,71,73,75] |