Kenneth Dixon
Usenet Archive
- Joined
- Jan 8, 2002
- Messages
- 3
- Reaction score
- 0
I need some help with a macro im working on, so that window1 will follow window2 realtime.
sofar:
' Autocopyview
Sub main
do
Dim startPoint As MbePoint
Dim point As MbePoint, point2 As MbePoint
' Start a command
MbeSendCommand "COPY VIEW "
' Coordinates are in master units
startPoint.x = 1.595500#
startPoint.y = 11.546000#
startPoint.z = 0.000000#
' Send a data point to the current command
point.x = startPoint.x
point.y = startPoint.y
point.z = startPoint.z
MbeSendDataPoint point, 1%
point.x = startPoint.x - 4.795700#
point.y = startPoint.y - 0.805800#
point.z = startPoint.z
MbeSendDataPoint point, 2%
sleep(5000)
loop
End Sub
This works without the loop, but with the loop gets stuck in infinite. Is there anyway to refresh macro say every 5 sec, while releasing resorces back to ustation for the rest?(sleep dosnt work)
Thanks for any help.
sofar:
' Autocopyview
Sub main
do
Dim startPoint As MbePoint
Dim point As MbePoint, point2 As MbePoint
' Start a command
MbeSendCommand "COPY VIEW "
' Coordinates are in master units
startPoint.x = 1.595500#
startPoint.y = 11.546000#
startPoint.z = 0.000000#
' Send a data point to the current command
point.x = startPoint.x
point.y = startPoint.y
point.z = startPoint.z
MbeSendDataPoint point, 1%
point.x = startPoint.x - 4.795700#
point.y = startPoint.y - 0.805800#
point.z = startPoint.z
MbeSendDataPoint point, 2%
sleep(5000)
loop
End Sub
This works without the loop, but with the loop gets stuck in infinite. Is there anyway to refresh macro say every 5 sec, while releasing resorces back to ustation for the rest?(sleep dosnt work)
Thanks for any help.