HatchScale

Returns or modifies the scale applied to the hatch pattern when it is mapped to the hatch's plane.

Syntax

Rhino.HatchScale (strObject [, dblScale])

Parameters

strObject

Required.  String.  The identifier of a hatch object.

dblScale

Optional.  Number.  The scale factor.

Returns

Number

If a scale factor is not specified, the current scale factor if successful.

Number

If a scale factor is specified, the previous scale factor if successful.

Null

On error.

Example

Dim arrObjects, strObject

arrObjects = Rhino.NormalObjects

If IsArray(arrObjects) Then

  For Each strObject in arrObjects

    If Rhino.IsHatch(strObject) And Rhino.HatchScale(strObject) > 1.0 Then

      Rhino.HatchScale strObject, 1.0

    End If

  Next

End If

Also See

AddHatch

AddHatches

HatchPattern

HatchRotation

IsHatch