Create Boundary

Create Boundary

Anonymous
Not applicable
296 Views
1 Reply
Message 1 of 2

Create Boundary

Anonymous
Not applicable
Is there a way to automate the boundary command using VBA?
0 Likes
297 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
counting the modelspace objects before and after a call to this sub will
tell you if there are any new polylines created- messy but it works
Private Sub Bound()
Dim Pt As Variant, gotpt As Boolean
gotpt = False

Do
On Error Resume Next
Pt = ThisDrawing.Utility.GetPoint(, "Select an Internal Point")
If Err Then
If GetAsyncKeyState(VK_ESCAPE) And &H8000& Then
Exit Function
End If
Err.Clear
gotpt = False
Else
gotpt = True
End If
Loop While Not gotpt
On Error GoTo 0
ThisDrawing.SendCommand Chr(3) & Chr(3) & "-boundary" & vbCr & Pt(0) & "," &
Pt(1) & vbCr & vbCr
End Sub
"Bob Fahlin" wrote in message
news:f0e51a2.-1@WebX.maYIadrTaRb...
> Is there a way to automate the boundary command using VBA?
>
>
0 Likes