HatchPatternTable.Add Method
Click or drag to resize

HatchPatternTableAdd Method

Adds a new hatch pattern with specified definition to the table.

Namespace:  Rhino.DocObjects.Tables
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public int Add(
	HatchPattern pattern
)

Parameters

pattern
Type: Rhino.DocObjectsHatchPattern
definition of new hatch pattern. The information in pattern is copied. If patern.Name is empty the a unique name of the form "HatchPattern 01" will be automatically created.

Return Value

Type: Int32
>=0 index of new hatch pattern -1 not added because a hatch pattern with that name already exists or some other problem occured.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.7
See Also