<CommandMethod("SetSB")> _
Public Shared Sub SetSnapBase()
Dim dwg As Document = Application.DocumentManager.MdiActiveDocument
Dim ed As Editor = dwg.Editor
Dim sBase As Point2d = CType(Application.GetSystemVariable("SNAPBASE"), Point2d)
ed.WriteMessage("SNAPBASE: X={0} Y={1}", sBase.X, sBase.Y)
Dim newBase As New Point2d(2.0, 2.0)
Application.SetSystemVariable("SNAPBASE", newBase)
ed.WriteMessage("SNAPBASE: X={0} Y={1} ", sBase.X, sBase.Y)
End Sub
Public Shared Sub SetSnapBase()
Dim dwg As Document = Application.DocumentManager.MdiActiveDocument
Dim ed As Editor = dwg.Editor
Dim sBase As Point2d = CType(Application.GetSystemVariable("SNAPBASE"), Point2d)
ed.WriteMessage("SNAPBASE: X={0} Y={1}", sBase.X, sBase.Y)
Dim newBase As New Point2d(2.0, 2.0)
Application.SetSystemVariable("SNAPBASE", newBase)
ed.WriteMessage("SNAPBASE: X={0} Y={1} ", sBase.X, sBase.Y)
End Sub
[本日志由 tiancao1001 于 2018-01-15 11:43 PM 编辑]
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |