[Search tip detail and code files using keywords, tip number, author name, etc ]
 
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Create a Field-Referenced Copy
Tip# 3486 By Leland Leahy On 10-Sep-2010
4
Rated By 3 users Downloaded : 344
Categories : Multiline Text, Single-Line Text, 2D Editing
Software type : AutoCAD 2011
Rename File To : refcopy.lsp
Copy text or mtext entities with fields that point to the originals.

This routine works like the built-in Copy command, except that copied text or mtext entities are referenced to the originals using fields. Load the LISP file, then type in the command RefCopy. Select your objects and copy them as you normally would. Once you do so, any new text or mtext entities will gain fields that point to the original text or mtext entities. This means if you edit the original, the copy updates also. Note that the timing of the update depends on the system variable FieldEval. Leland Leahy's code offers a good example of how to create fields with LISP code.   

 

Average Rating:
4


User comments
Comment by Anderson,Jim
Posted on 2010-09-28 04:00:10
Great idea, but it's not working with ACAD 2011;- Command: REFCOPY Select items to be ref-copied: Select objects: 1 found Select objects: ; error: no function definition: VLAX-ENAME->VLA-OBJECT
Comment by Peterson,Pete
Posted on 2010-09-29 10:11:40
Edit " Leland Leahy's code offers a good example of how to create fields with LISP code." to... Leland Leahy's code offers a good example of how to create fields with VLISP code. ???


Log In