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)
Since: 5.0
public int Add(
	HatchPattern 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 occurred.
See Also