Insert a block and then xclip it

Insert a block and then xclip it

newEagle
Participant Participant
535 Views
7 Replies
Message 1 of 8

Insert a block and then xclip it

newEagle
Participant
Participant

I am using command to insert a block, after which I'd like to xclip the bock just inserted.

 

Something like:

 

(setq name "blockName")
(command "-insert" name (list x y) 1 1 ROT)
;;Here's where I want to xclip the block inserted above
0 Likes
Accepted solutions (1)
536 Views
7 Replies
Replies (7)
Message 2 of 8

ronjonp
Mentor
Mentor
Accepted solution

Perhaps:

(command "_.-insert" (setq name "blockName") (list x y) 1 1 ROT)
(command "_.xclip" (entlast) "")
0 Likes
Message 3 of 8

newEagle
Participant
Participant

Thanks. With some additions I got that to work. Not sure why I couldn't get it before.

 

0 Likes
Message 4 of 8

ronjonp
Mentor
Mentor

@newEagle Glad to help. 🙂

What does your xclip look like on the inserted block?

0 Likes
Message 5 of 8

newEagle
Participant
Participant

Capture.JPG

 

The pill shaped label is annotative. At certain scales, it grows beyond the bounds of the box it's in. XCLIP was just what I needed.

0 Likes
Message 6 of 8

ronjonp
Mentor
Mentor

@newEagle So you are placing all those 'pills' one by one into a table?

0 Likes
Message 7 of 8

newEagle
Participant
Participant

The block is a rectangle with the pill shaped labels. They are placed automatically in a grid shape according to specifications. To account for different scales I've made the labels annotative. Before I had to go thru each block and change the labels to proper size.

0 Likes
Message 8 of 8

ronjonp
Mentor
Mentor

Good to hear you have some automation. 👍

The process looked tedious that's why I asked. 

0 Likes