这是代码,红色这句老提示不支持该方法,请各位大侠帮看看.小弟不胜感激!!!!!! Dim insertionpnt1(2) As Double Dim points5(9) As Double insertionpnt1(0) = 5000: insertionpnt1(1) = 5000: insertionpnt1(2) = 0 Set blockobj = acadapp.ActiveDocument.Blocks.Add(insertionpnt1, "jiaocha") Dim hatchobj As AcadHatch Dim patternname As String Dim patterntype As Long Dim bassociativity As Boolean patterntype = 0 patternname = "SOLID" bassociativity = True Set hatchobj = acadapp.ActiveDocument.ModelSpace.AddHatch(patterntype, patternname, bassociativity) Dim plineobj11 As AcadEntity points(0) = 5000: points(1) = 5011 points(2) = 5007: points(3) = 5011 points(4) = 5005: points(5) = 5012 points(6) = 5000: points(7) = 5012 Set plineobj11 = blockobj.AddLightWeightPolyline(points) plineobj11.Closed = True plineobj11.Update hatchobj.AppendOuterLoop (plineobj11) hatchobj.Evaluate acadapp.ActiveDocument.Regen True |