- 积分
- 242
- 明经币
- 个
- 注册时间
- 2003-4-17
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
Public sub ChangHatchPatternSpace()
Dim hatchObj AS Acadhatch
Dim PatternName AS String
Dim PatternType AS Long
Dim bAssociativity AS Boolean
PatternName="ANSI31"
PatternType=0
bAssociativity=true
Set hatchObj=ThisDrawing.ModelSpace.Addhatch _ (patternName,PatternType,bAssociativity)
Dim outerloop AS AcadEntity
Dim center(0 To 2) AS Double
Dim radius AS Double
center(0)=5
center(1)=3
center(2)=0
radius=5
Set outerloop=ThisDrawing.ModelSpace.AddCircle(center,radius)
hatchObj.appendouterloop(outerloop)
hatchObj.evaluate
End Sub
但在运行时“Set hatchObj=ThisDrawing.ModelSpace.Addhatch _ (patternName,PatternType,bAssociativity)“出了错误“对象变量或with块变量未设置“
请问这是怎么回事,问题出在那里阿???// |
|