Message 1 of 6
HATCH vba
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hy
how can i hatch a rectangle? and creat a dimension ? and calculate the area of that hatch?
i try this code to hatch. ThisDrawing.ModelSpace.AddHatch predefined, solid, False, rect ....but not working
'creat a rectangle in origin
coords(0) = 0
coords(1) = 0
coords(2) = Val(TextBox1.Text)
coords(3) = 0
coords(4) = Val(TextBox1.Text)
coords(5) = Val(TextBox2.Text)
coords(6) = 0
coords(7) = Val(TextBox2.Text)
Dim rect As AcadLWPolyline
Set rect = ThisDrawing.ModelSpace.AddLightWeightPolyline(coords)
rect.Closed = True
rect.Update