Center of the screen.

Center of the screen.

adaptacad
Advocate Advocate
4,378 Views
21 Replies
Message 1 of 22

Center of the screen.

adaptacad
Advocate
Advocate

Is there a way to insert a block at the same rotation as another block closer to the center of my screen?

-> I zoomed, I called the command, and the new block will be inserted in the block closest to my zoom.

I got a .dwg with the example.

0 Likes
Accepted solutions (4)
4,379 Views
21 Replies
Replies (21)
Message 21 of 22

Kent1Cooper
Consultant
Consultant
Accepted solution

@Kent1Cooper wrote:

....

....
      (command "_.insert" "Blk_Insert" "_none"
        (polar (cdr (assoc 10 (entget theOne))) (- rot (/ pi 2)) 2.5)
        1 1 rot
      ); command
....

Sorry, that should be:

....
      (command "_.insert" "Blk_Insert" "_none"
        (polar (cdr (assoc 10 (entget theOne))) (- rot (/ pi 2)) 2.5)
        1 1 (angtos rot (getvar 'aunits) 8); rotation as text string in current units
      ); command
....
Kent Cooper, AIA
Message 22 of 22

adaptacad
Advocate
Advocate

Perfect @hak_vz  @Kent1Cooper  thank you!!!