SetPattern Method

Sets the pattern name and pattern type for the hatch.

See Also | Example

Signature

object.SetPattern PatternType, PatternName

Object

Hatch
The object or objects this method applies to.

PatternType

AcPatternType enum; input-only

acHatchPatternTypePreDefined

Selects the pattern name from those defined in the acad.pat file.

acHatchPatternTypeUserDefined

Defines a pattern of lines using the current linetype.

acHatchPatternTypeCustomDefined

Selects the pattern name from a PAT file other than the acad.pat file.

PatternName

String; input-only
The name of the pattern. Sets a default hatch pattern name of up to 34 characters, no spaces allowed. Returns "" if there is no default. Enter a period (.) to set no default.

Remarks

The hatch pattern can be defined by one of the following options:

PreDefined: Selects the pattern name from those defined in the acad.pat file.

UserDefined: Defines a pattern of lines using the current linetype.

CustomDefined: Selects the pattern name from a PAT file other than the acad.pat file.

NOTE The SetPattern method should only be used for the active document.

 

   Comments?