MOVE Block by Handle Entity

MOVE Block by Handle Entity

david.faunce
Enthusiast Enthusiast
1,249 Views
4 Replies
Message 1 of 5

MOVE Block by Handle Entity

david.faunce
Enthusiast
Enthusiast

I'm trying to move an object by its handle entity and I can't seem to wrap my head around this.

 

Here's what I have so far, which is totally wrong:

 

(setq blk (handent "1010A158"))
(command "_MOVE" blk "D" "-5,0,0")

I get the error "Expects a point or Window/Last/Crossing....../Object"

 

Can anyone help?

 

The handle entity in question is 1010A158   and I want to move it a displacement of -5,0,0

 

Thank you

0 Likes
Accepted solutions (1)
1,250 Views
4 Replies
Replies (4)
Message 2 of 5

Ranjit_Singh
Advisor
Advisor

End your selection

(setq blk (handent "1010A158"))
(command "_MOVE" "" blk "D" "-5,0,0")
0 Likes
Message 3 of 5

david.faunce
Enthusiast
Enthusiast

I didn't get the error, but the block didn't move. The Entity Name is  <Entity name: 7032F980>  but the handle is 1010A158.

0 Likes
Message 4 of 5

Ranjit_Singh
Advisor
Advisor
Accepted solution

I screwed up in my previous code.  Note quotes after blk.

(command "_MOVE" blk "" "D" "-5,0,0")
Message 5 of 5

david.faunce
Enthusiast
Enthusiast

As always - you are super helpful!

0 Likes