Article | 41024252 |
Type | HowTo |
Product | Engine |
Version | 5.1.1.1041 |
Date Added | 6/23/2006 |
Submitted by | Aditya Shaw |
Keywords |
Dim phNew As vdPolyhatch
Set phNew = VDPro1.ActiveDocument.GetFromHandle(PolyHatchHandle) 'get the polyhatch from handle
Dim poly As vdPolyline
Dim i As Integer
i = 1
For Each poly In phNew
VDPro1.ActiveDocument.Entities.AddItem poly
poly.PenColor.ColorIndex = i
i = i + 1
poly.Invalidate
Next poly