TheSwamp

CAD Forums => CAD General => Topic started by: jonesy on March 12, 2015, 06:24:41 AM

Title: Copy text into attributes
Post by: jonesy on March 12, 2015, 06:24:41 AM
I have just done a drawing where I had over 1000 text objects (all different number/letter combinations) and they all needed to be pasted or typed into a multi-line attribute.

For this I copied the text, then pasted into the attribute editor... obviously a time consuming job... is there an easier method to get this job done?  (I may have more of these to do going forward!)
Title: Re: Copy text into attributes
Post by: Rob... on March 12, 2015, 07:40:21 AM
Ugh.

Were you pasting all 1000 objects into a single or multiple attributes?
Title: Re: Copy text into attributes
Post by: jonesy on March 12, 2015, 07:48:07 AM
I had more than 1000 blocks (3 or 4 block definitions) with different text to go into every single one (different numbering notations).
The text was already on the drawing, but it needed to go into the block attributes. The block attributes were all multiline attributes.
One block of mtext into one block, move onto the next block, rinse and repeat.
If it makes sense...
Title: Re: Copy text into attributes
Post by: Krushert on March 12, 2015, 07:57:29 AM
I hope you were using LeeMac CopyText Routine.  <i think its his?>

Nope it is Alanjt

CopyText.lsp: Copy/Swap Text/MText/Multileader/Attribute Values   (http://www.theswamp.org/index.php?topic=30368.0)
Title: Re: Copy text into attributes
Post by: Rob... on March 12, 2015, 07:58:46 AM
Yeah, I would not want to have to do all that even once.

You are probably looking at using code but it would still require you to select the text and then the attribute it goes into.
Title: Re: Copy text into attributes
Post by: Krushert on March 12, 2015, 08:01:13 AM
yeah you still have to select by at least it saves a step or two
Title: Re: Copy text into attributes
Post by: jonesy on March 12, 2015, 08:06:42 AM
No I wasn't using that... it was "good old" copy/paste sigh.

I will download that and have a play, thanks :)
Title: Re: Copy text into attributes
Post by: jonesy on March 12, 2015, 08:21:44 AM
Oh that works wonderfully.  I wish I had asked before I started... however I hadn't realised how big the task was!

Thanks for everyones help!
Title: Re: Copy text into attributes
Post by: CAB on March 12, 2015, 09:14:19 AM
An old one, work by coping the source object.
http://www.theswamp.org/index.php?topic=6874.msg498989#msg498989
Title: Re: Copy text into attributes
Post by: jonesy on March 12, 2015, 09:33:15 AM
Thanks CAB. I'll download that and try it too :)
Title: Re: Copy text into attributes
Post by: danallen on March 12, 2015, 12:34:27 PM
do you have express tools? ATTOUT to a text file, do search & replace, then ATTIN

http://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-Core/files/GUID-899B195A-EFF0-4AEC-B0F8-7444EC75D649-htm.html (http://knowledge.autodesk.com/support/autocad/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-Core/files/GUID-899B195A-EFF0-4AEC-B0F8-7444EC75D649-htm.html)