Command Line Queue

Command Line Queue

Anonymous
Not applicable
259 Views
2 Replies
Message 1 of 3

Command Line Queue

Anonymous
Not applicable
I have a statement
ThisDrawing.SendCommand "-boundary" & vbCr & pt(0) & "," & pt(1) & vbCr
where pt is obtained synchronously from Utility.GetPoint This forces the
boundary command to work synchronously also
It is possible that the point returned by the user causes the boundary
comnmand to return
Valid Hatch Boundary Not Found and hence the boundary command is then issued
asynchronously
Is it possible to trap the return from send command or check the command
line for queued commands
0 Likes
260 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
If the boundary command worked, a new entity will be added to the drawing,
thus changing the count -- for example, if you are adding the boundary in
model space, check the number of entities currently in model space:

Dim FirstCount As Integer
FirstCount = ThisDrawing.Modelspace.Count

... run the boundary command, and check it again and compare it to the
first. If it is the same, now boundary was created:

If FirstCount = ThisDrawing.Modelspace.Count Then

... hope this helps. - Lanny
0 Likes
Message 3 of 3

Anonymous
Not applicable
> ... run the boundary command, and check it again and compare it to the
> first. If it is the same, now boundary was created:

that should read: . If it is the same, NO boundary was created:
0 Likes