Copy text value to replace for existing texts

Copy text value to replace for existing texts

minh.dxuan
Enthusiast Enthusiast
904 Views
7 Replies
Message 1 of 8

Copy text value to replace for existing texts

minh.dxuan
Enthusiast
Enthusiast

Dear @https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365,

 

Please help me. I need to copy text value (from text or from field text) to replace for other existing texts. There are 2 problems now I meet:
1. I need to copy 2 files into 1 folder (ACA-Trap.LSP and mat.LSP) and load 2 lisps (ACA-Trap.LSP and mat.LSP) to use the command "mat". I think use 1 file and load it only is more convenient than use 2 files and load 2 files.
2. If the value of existing field text is the same as source text, when I applied "mat" from source text to existing field text, the field still exist. In this case, I need all destination field text will become text without field.

Please refer the files and video.

 

Thank you so much in advance.

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

minh.dxuan
Enthusiast
Enthusiast

And this is the video describes the 2 above problems.

0 Likes
Message 3 of 8

hak_vz
Advisor
Advisor

You can simply join contents of two lisp files into single one in your editor.

Or you can add both files to startup suite (tools->load applications and startup suite button). This way functions will be available in any new file you open

Miljenko Hatlak

EESignature

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.
Message 4 of 8

ВeekeeCZ
Consultant
Consultant
Accepted solution

You can use this one for string copy. If you want to copy a field, use Lee's CopyField.

 

Message 5 of 8

devitg
Advisor
Advisor

@minh.dxuan find attached both  file in one. 

 

Message 6 of 8

minh.dxuan
Enthusiast
Enthusiast
Many thanks @https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5530556 for your suggestion. I am newbea and blank brain with lisp code. I hope I can write the code soon.
0 Likes
Message 7 of 8

minh.dxuan
Enthusiast
Enthusiast
Hi @https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365, your lisps always are always extreme. I loaded and it runs very smooth.
Thank you so much.
0 Likes
Message 8 of 8

minh.dxuan
Enthusiast
Enthusiast
Hi Devitg, many thanks for your help and hopefully I will receive your support in future.
0 Likes