acad-hatches
Installation
SKILL.md
AutoCAD Hatches and Gradient Fills
Use this skill when creating or modifying hatch patterns, solid fills, or gradient fills in drawings.
Creating a Hatch Pattern
using (Transaction tr = db.TransactionManager.StartTransaction())
{
BlockTableRecord btr = (BlockTableRecord)tr.GetObject(
db.CurrentSpaceId, OpenMode.ForWrite);
Hatch hatch = new Hatch();
hatch.SetDatabaseDefaults();
hatch.Normal = Vector3d.ZAxis;
hatch.Elevation = 0.0;