- UID
- 74221
- 积分
- 0
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2003-8-22
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
以下是acad2002帮助文件中的代码,运行无效,何故?
Dim viewportObj As AcadViewport
Set viewportObj = ThisDrawing.Viewports.Add("NewViewport")
Find the current snap base point
Dim currSnapPnt As Variant
currSnapPnt = viewportObj.SnapBasePoint
MsgBox "The current model space snap base point is " & viewportObj.SnapBasePoint(0) & ", " & viewportObj.SnapBasePoint(1), , "SnapBasePoint Example"
Dim newSnapPnt(0 To 1) As Double
newSnapPnt(0) = 3#: newSnapPnt(1) = 3#
viewportObj.SnapBasePoint = newSnapPnt
MsgBox "The new model space snap base point is " & viewportObj.SnapBasePoint(0) & ", " & viewportObj.SnapBasePoint(1), , "SnapBasePoint Example"
MsgBox ThisDrawing.ActiveViewport.SnapBasePoint(1) |
|