Message 1 of 2
Hatch problem

Not applicable
01-15-2001
08:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I got the problem from using hatch method. It's indicated "Invalid input". Here is the source code
Dim objHatch As AcadHatch
Dim varOuter() As AcadEntity
ReDim varOuter(2)
Set varOuter(0) = objLine1
Set varOuter(1) = objCircleF
Set varOuter(2) = objSectionF ' Acadregion
' create the hatch object
Set objHatch = ThisDrawing.ModelSpace.AddHatch(acHatchPatternTypePreDefined, _
"ANSI37", True)
' append boundaries to the hatch
objHatch.AppendOuterLoop varOuter
' evaluate and display hatched boundaries
objHatch.Evaluate
objHatch.Update
Dim objHatch As AcadHatch
Dim varOuter() As AcadEntity
ReDim varOuter(2)
Set varOuter(0) = objLine1
Set varOuter(1) = objCircleF
Set varOuter(2) = objSectionF ' Acadregion
' create the hatch object
Set objHatch = ThisDrawing.ModelSpace.AddHatch(acHatchPatternTypePreDefined, _
"ANSI37", True)
' append boundaries to the hatch
objHatch.AppendOuterLoop varOuter
' evaluate and display hatched boundaries
objHatch.Evaluate
objHatch.Update