Copy whole attributes from block to another macro/lisp?

Copy whole attributes from block to another macro/lisp?

Anonymous
Not applicable
1,422 Views
6 Replies
Message 1 of 7

Copy whole attributes from block to another macro/lisp?

Anonymous
Not applicable

Is there any better way of copying the whole attributes from block to another?

 

Instead of doing this: Open the old block in block editor

copy the attributes

paste the attributes in to the new block.

 

I do not need the attribute values, I need the whole attributes. Didn't found any solution for this. Using LT.

0 Likes
Accepted solutions (1)
1,423 Views
6 Replies
Replies (6)
Message 2 of 7

h_s_walker
Mentor
Mentor

In LT there is no easy way, HOWEVER

Why don't you delete all the geometry in the block which has got your attributes in (keep the attributes obviously) and then paste all the geometry from your other block into this block.

eg

Block A has 5 lines and 6 attributes

Block B has 7 lines.

Delete the 5 lines from Block A and then copy the 7 lines from Block B into Block A

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 3 of 7

Anonymous
Not applicable

Would there be a solution in the full version?

 

I allready have a drawing from a customer that has the blocks without attributes positioned. 

0 Likes
Message 4 of 7

h_s_walker
Mentor
Mentor

I wouldn't know. I don't have full AutoCAD. Someone else who does have full might know

Howard Walker
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Left Handed and Proud

0 Likes
Message 5 of 7

vinodkl
Mentor
Mentor
Accepted solution

Hi,

 

Try this lisp(see attachment). It copies attribute tags(not values) from one block to another. Using this you can copy the attribute tag from the source block to the destination block, but the destination block should not contain any attributes similar to the source block if it contains then it would duplicate the attributes.

 

Credits to creator of the lisp Leemac🙂

 

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
Message 6 of 7

lena.talkhina
Alumni
Alumni

Hello @Anonymous !

 

Did the lisp posted by @vinodkl helped you to find the answer?

Don't hesitate to accept it as a solution, or, update the info about your question. It will be helpful for everyone in this discussion. 😀

Находите сообщения полезными? Поставьте "НРАВИТСЯ" этим сообщениям! | Do you find the posts helpful? "LIKE" these posts!
На ваш вопрос успешно ответили? Нажмите кнопку "УТВЕРДИТЬ РЕШЕНИЕ" | Have your question been answered successfully? Click "ACCEPT SOLUTION" button.



Лена Талхина/Lena Talkhina
Менеджер Сообщества - Русский/Community Manager - Russian

0 Likes
Message 7 of 7

Anonymous
Not applicable

Wow, does there even exist lisps made by any other than Leemac. 

This worked for the most part. I was hoping that it would also copy the attribute values to the block. 

0 Likes