Тема: GetPoint
Подскажите пожалуйста как этот код реализовать через GetPoint ???
Private Sub CommandButton2_Click()
Unload Me
If CheckBox1.Value = True Then
Dim swidth As String
Dim old_ortho, old_snap, old_osnap As Integer
swidth = "0.6"
With ThisDrawing
old_ortho = .GetVariable("ORTHOMODE")
old_snap = .GetVariable("SNAPMODE")
old_osnap = .GetVariable("OSMODE")
.SetVariable "ORTHOMODE", 0
.SetVariable "SNAPMODE", 0
.SetVariable "OSMODE", 0
.SendCommand ("_.-LAYER" & vbCr & "_M" & vbCr & _
"Format" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "0,55" & vbCr & _
"_W" & vbCr & swidth & vbCr & swidth & vbCr & "-185,55" & _
vbCr & "-185,0" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-185,30" & vbCr & _
"-0,30" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-185,35" & vbCr & _
"-120,35" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-175,30" & vbCr & _
"-175,55" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-165,0" & vbCr & _
"-165,55" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-155,30" & vbCr & _
"-155,55" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-145,0" & vbCr & _
"-145,55" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-130,0" & vbCr & _
"-130,55" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-120,0" & vbCr & _
"-120,55" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-50,0" & vbCr & _
"-50,30" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-35,15" & vbCr & _
"-35,30" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-20,15" & vbCr & _
"-20,30" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-120,15" & vbCr & _
"0,15" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "0,45" & vbCr & _
"-120,45" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "0,25" & vbCr & _
"-50,25" & vbCr & vbCr)
.SendCommand ("_.LINE" & vbCr & "-185,5" & vbCr & _
"-120,5" & vbCr & vbCr)
.SendCommand ("_.LINE" & vbCr & "-185,10" & vbCr & _
"-120,10" & vbCr & vbCr)
.SendCommand ("_.LINE" & vbCr & "-185,15" & vbCr & _
"-120,15" & vbCr & vbCr)
.SendCommand ("_.LINE" & vbCr & "-185,20" & vbCr & _
"-120,20" & vbCr & vbCr)
.SendCommand ("_.LINE" & vbCr & "-185,25" & vbCr & _
"-120,25" & vbCr & vbCr)
.SendCommand ("_.LINE" & vbCr & "-185,40" & vbCr & _
"-120,40" & vbCr & vbCr)
.SendCommand ("_.LINE" & vbCr & "-185,50" & vbCr & _
"-120,50" & vbCr & vbCr)
.SendCommand ("_.LINE" & vbCr & "-185,45" & vbCr & _
"-120,45" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "0,0" & vbCr & _
"-816,0" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-816,0" & vbCr & _
"-816,584" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "0,0" & vbCr & _
"0,584" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "0,584" & vbCr & _
"-816,584" & vbCr & vbCr)
.SendCommand ("_.LINE" & vbCr & "5,-5" & vbCr & _
"-836,-5" & vbCr & vbCr)
.SendCommand ("_.LINE" & vbCr & "-836,-5" & vbCr & _
"-836,589" & vbCr & vbCr)
.SendCommand ("_.LINE" & vbCr & "5,-5" & vbCr & _
"5,589" & vbCr & vbCr)
.SendCommand ("_.LINE" & vbCr & "5,589" & vbCr & _
"-836,589" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-816,0" & vbCr & _
"-828,0" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-816,26" & vbCr & _
"-828,26" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-816,61" & vbCr & _
"-828,61" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-816,90" & vbCr & _
"-828,90" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-823.1753,0" & vbCr & _
"-823.1753,90" & vbCr & vbCr)
.SendCommand ("_.PLINE" & vbCr & "-828,0" & vbCr & _
"-828,90" & vbCr & vbCr)
.SetVariable "ORTHOMODE", old_ortho
.SetVariable "SNAPMODE", old_snap
.SetVariable "OSMODE", old_osnap
End With
UserForm1.Show
End If
End Sub