UnfoldSelectCut

Introduced

v7.5

Description

Selects the cutting line definition associated to the specified Unfold Property.

Scripting Syntax

oBoolean = UnfoldSelectCut( UnfoldProperty, [Object(s)] );

Return Value

Returns a Boolean reporting whether or not the command was successful.

Parameters

Parameter Type Description
UnfoldProperty Unfold Property (or a pointer to it). Unfold Property applied to the object(s)
Object(s) List of X3DObject object(s) Object(s) holding the cutting line(s)

Default Value: If not specified, the current selection is used.

Examples

Python Example

#

# 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]

See Also

UnfoldAddToCut UnfoldAdjustUpdate UnfoldApply UnfoldApplySel UnfoldClearCut UnfoldPackUpdate UnfoldRemoveFromCut UnfoldSetCut UnfoldUpdate Unfold Property Editor reference