2027 Method
Changes 5
M

FillPattern.ExportToPAT

Description:
Export a list of FillPatterns to an AutoCAD PAT file.
Remarks:

The built-in Solid Fill pattern cannot be expressed in this format.

The PAT file format is ASCII based. FillPatterns with names that contain non-ASCII characters will be exported as 'Pattern_###'. The original name is exported in the description field of the PAT format, encoded as UTF-8.

public static bool ExportToPAT(
	IList<FillPattern> fillPatterns,
	string filename
)
  • fillPatterns
    A list of FillPatterns to export.
  • String
    filename
    The full path of the file to export to.
Return Value Boolean True if all patterns were exported successfully, False if export of any pattern failed.