Truong_Tem Posted August 25, 2023 Posted August 25, 2023 Hello fellow forum members. Can you help me write a lisp where I can insert and arrange more objects while copying a previous object. Instead of copying 1 and putting it on the beam, then copying 2 and putting it on 1, I use lisp copy 1, 2 to put it up. I have attached pictures. Thank you very much. 001.pdf 002.pdf Quote
BIGAL Posted August 25, 2023 Posted August 25, 2023 (edited) Copy 1 attribute to another ? Can be done without any code do CTRL+dbl click a attribute, Ctrl+c then same on another attribute ctrl+V to paste. Edited August 25, 2023 by BIGAL Quote
Truong_Tem Posted August 25, 2023 Author Posted August 25, 2023 Thank you for your feedback and for sharing how to do this. however is there a more optimal way as i am having 60000 such drawings. And the future will continue to be like that. I'm bored because I wasted so much time. Quote
Steven P Posted August 25, 2023 Posted August 25, 2023 I think I understand, so you want to copy for example YN47G-01 and YN47G_X9Y1 and then paste them Are the new parts an attribute in a block or new text objects. If they are to be new texts, will their relative positions be the same and a fixed size? If it is an attribute to an attribute that should e fairly easy too We might need a sample drawing to work out all the details, but you can select the text and save it in a LISP variable as a list, then highlight the insertion point and paste all the selected texts at one time? Might need a sample drawing showing before and after so we can work out what you are selecting and copying - or just a part of a drawing Last part would be to speed it up so you only need 1 or 2 operations and it will do all 60,000 drawings 1 Quote
Truong_Tem Posted August 25, 2023 Author Posted August 25, 2023 I think just being visible is fine, but if it's better there might be a standard for it. I have sent the drawing, please help me, thank you very much. A5.dwg Quote
BIGAL Posted August 26, 2023 Posted August 26, 2023 Rather than the real total dwg post a before and after showing just the text and blocks involved could not really see what to do. maybe even use different color text, red at start green is answer. Quote
Truong_Tem Posted August 26, 2023 Author Posted August 26, 2023 Sorry for my unclear question, The content is roughly the same as the attached image. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.