Create temp drawing file

Create temp drawing file

Anonymous
Not applicable
626 Views
7 Replies
Message 1 of 8

Create temp drawing file

Anonymous
Not applicable

I want to be able to: 

1. create a temp file

2. insert blocks into the temp file with attributes that have already been determined (I know how to insert blocks but I am not sure if it is different with a temp file)

3. insert the temp drawing file into my normal drawing

 

I am trying to mimic the way that the copy command works. In the end what I really want is to be able to paste a set of blocks (with attributes) and lines where the entities are inserted at the cursor and "hover" similar to the past command. I am not sure if I could just add the entities to the clipboard directly. Or if there is some other solution that I am not thinking of. 

0 Likes
Accepted solutions (1)
627 Views
7 Replies
Replies (7)
Message 2 of 8

ronjonp
Mentor
Mentor

cntrl+shift+v ? Paste as block?

0 Likes
Message 3 of 8

pendean
Community Legend
Community Legend
Accepted solution
While you wait...
>>>... In the end what I really want is to be able to paste a set of blocks...<<<
CTRL+X (which is CUTCLIP command explained in HELP) the CTRL+SHIFT+V (which is PASTEBLOCK command aka Paste what you just cut as a new block that you can later rename with RENAME command, also explained in HELP) can all be done in the same exact DWG file too, no temp DWG file to create or keep track of is ever needed.

HTH
0 Likes
Message 4 of 8

Anonymous
Not applicable

I am trying to create a lisp which will create a single line based on block information that already exists in the drawing. I have been able to extract the block information into a list. Now I want to insert all the relevant blocks in the same lisp with attributes filled out and set distances etc. I need to programmatically create this single line and then be able to insert it. 

0 Likes
Message 5 of 8

ronjonp
Mentor
Mentor

Might help to post a sample drawing.

0 Likes
Message 6 of 8

Anonymous
Not applicable
Well I want to paste multiple blocks all at once to a location determined by the cursor with the preview of all the blocks. I know I can paste blocks into a drawing. But I currently have a lisp that can extract information from a set of blocks to a list. I want to go through that list and based on that create a set of blocks to insert based on cursor position and I'd really like to have a preview of the blocks to be inserted. Thank you for your help.
0 Likes
Message 7 of 8

Anonymous
Not applicable

So on the left I have the blocks that I am getting the information from. On the right is what I want the lisp to output. I included what I have right now. As you can see, I can extract all the information from the blocks and put that information into a list. I want to insert all the relevant blocks based on that list. I would like to paste it based on the cursor and get a preview if possible. 

0 Likes
Message 8 of 8

pbejse
Mentor
Mentor

@Anonymous wrote:

. I would like to paste it based on the cursor and get a preview if possible. 


The rest appears to be straightforward, but can you explain what you mean by that?

 

0 Likes