Moving using Sendcommand

Moving using Sendcommand

Anonymous
Not applicable
448 Views
5 Replies
Message 1 of 6

Moving using Sendcommand

Anonymous
Not applicable
I can't get the move command to work with send command. It gets to the point
where you select the object then keeps on going though the program.

any idea?

Heath
0 Likes
449 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
It would be easier to help you if you post a little bit of your code. But
why should you use move in the send command instead of using the Move
method?

wkr, jwk

--
You ask a silly question, you get a technical answer...

Heath had the next bright idea:

>I can't get the move command to work with send command. It gets to the
>point where you select the object then keeps on going though the
>program.
>
>any idea?
>
>Heath
>
>
0 Likes
Message 3 of 6

Anonymous
Not applicable
> But why should you use move in the send command instead of using the
> Move method?

If I'm not mistaken (having done exactly this) Heath wants to see the
ghost of the block as he inserts it (from the earlier post request) and
then moves it (this post).

You simply don't get this with the VB/VBA commands.

Unfortunately I can't get to our server/run Autocad at the moment (to
prove this is ok) as we are using the christmas downtime for IT
maintenance.
However from an old bit of scrap paper (!) you will need to adapt the
following (which is for rotation);

ThisDrawing.SendCommand "_rotate" & blkref & "" & blkhandle & pause

Hope this helps.

John
0 Likes
Message 4 of 6

Anonymous
Not applicable
Heath,
If SendCommand has to wait for user input, your VBA code goes on without it. If you use SendCommand and supply all of the answers, so that you do not have to wait for user input, your VBA program will wait for it to finish before going on to the next line of code. The only practical way of using SendCommand and waiting for user input is to make it the last line of your module. I know, it STINKS.
0 Likes
Message 5 of 6

Anonymous
Not applicable
Or, I think you can do a SendCommand for your move, and then do a SendCommand to run the next part of your code.
public sub MoveBlock()
'whatever you need to do before moving
SendCommand "Move" 'etc
SendCommand "-vbarun MoveBlockPart2"
end sub
public sub MoveBlockPart2()
'continue with whatever you need to do
end sub
Good luck!
0 Likes
Message 6 of 6

Anonymous
Not applicable
You can use AcadX (www.caddzone.com) to drag objects
on the screen while the user moves the cursor. I have a
sample, but don't have it here at home. When I get into
work next week I'll be happy to post it.

"Heath" wrote in message
news:5DBC09403BF564D183308747CEE1081C@in.WebX.SaUCah8kaAW...
> I can't get the move command to work with send command. It gets to the
point
> where you select the object then keeps on going though the program.
>
> any idea?
>
> Heath
>
0 Likes