指定填充图案的类型和名称
 
 

AutoCAD supplies a solid-fill and more than fifty industry-standard hatch patterns. Hatch patterns highlight a particular feature or area of a drawing. For example, patterns can help differentiate the components of a 3D object or represent the materials that make up an object.

AutoCAD 提供了实体填充的五十多种行业标准填充图案。填充图案可用于亮显图形的特定特征或区域。例如,图案可以帮助区分三维对象的组成部分,或者表示组成对象的材质。

You can use a pattern supplied with AutoCAD or one from an external pattern library. For a table of the hatch patterns supplied with AutoCAD, see the AutoCAD Command Reference Guide.

可以使用 AutoCAD 附带的图案或外部图案库中的图案。有关 AutoCAD 附带的填充图案表,请参见 《AutoCAD 命令参考》

To specify a unique pattern, you must specify both a pattern type and name for the Hatch object. The pattern type specifies where to look up the pattern name. When entering the pattern type, use one of the following constants:

要指定唯一的图案,用户必须在创建 Hatch 对象时输入图案的类型和名称。图案类型指定在何处查找图案名称。输入图案类型时,可以使用以下常量:

HatchPatternType.PreDefined

Selects the pattern name from those defined in the acad.pat or files.

从 acad.pat 文件中定义的图案名中进行选择。

HatchPatternType.UserDefined

Defines a pattern of lines using the current linetype.

用当前线型定义直线图案。

HatchPatternType.CustomDefined

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

从 PAT 而不是 acad.pat 文件中选择图案名。

When entering the pattern name, use a name that is valid for the file specified by the pattern type.

输入图案名称时,名称必须对由图案类型指定的文件有效。