sendcommand

sendcommand

Anonymous
Not applicable
193 Views
2 Replies
Message 1 of 3

sendcommand

Anonymous
Not applicable
Hi All,

I have been looking for a work around for a problem that I have with a
VB batch printing program. This program was written for R14 (when
plotting was a little easier to achieve with VB) and needed to be
updated for A2K. I tried to control the plot process from VB with no
success. I found that lisp was the only way that I could achieve the
results I needed. Unfortunately the SENDCOMMAND method causes ACAD to be

displayed. I have tried visible=false and found that Acad would go away,

only to come back again with the next SENDCOMMAND comes along. A similar

result was found with the windowstate=acMin property.

In short is there any way I can run Acad without seeing it and use the
SENDCOMMAND method?

Thanks in advance

Dave
0 Likes
194 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
I am using the sendcommand and "rectang" to create a rectangular polyline
that has a .01 fillet. The sendcommand is being held until the macro has
ended. Is there a way to have the rectangle drawn immediately and not held
until exit?

I am also using sendcommand for purging and exploding with the same results.
Please excuse any syntax errors.

for intcount = 1 to 10
thisdrawing.sendcommand "explode" & vbcr .....
thisdrawing.sendcommand "purge" & vbcr...
next

Thanks

Jerry Bartling
0 Likes
Message 3 of 3

Anonymous
Not applicable
Jerry,
You should use ActiveX methods to draw and purge. Sendcommand will
return processing to VB
at any point that user input is requested.

Excerpt from SendCommand help:

"This method is generally synchronous. However, if the command sent with
this method requires any user interaction (such as picking a point on the
screen) then this method will return as soon as the user input begins. The
command will then continue to be processed asynchronously.

When this method is called from an event handler it is processed
asynchronously.

You should never use this method to issue a command for which there is an
ActiveX method available. For example, do not use SendCommand "VBALOAD ".
Instead, use the LoadDVB method. "


Brian D.

"Jerry Bartling" wrote in message
news:F2D012DEB4E55619959E4D91AD41885C@in.WebX.maYIadrTaRb...
> I am using the sendcommand and "rectang" to create a rectangular polyline
> that has a .01 fillet. The sendcommand is being held until the macro has
> ended. Is there a way to have the rectangle drawn immediately and not
held
> until exit?
>
> I am also using sendcommand for purging and exploding with the same
results.
> Please excuse any syntax errors.
>
> for intcount = 1 to 10
> thisdrawing.sendcommand "explode" & vbcr .....
> thisdrawing.sendcommand "purge" & vbcr...
> next
>
> Thanks
>
> Jerry Bartling
>
>
>
0 Likes