El Jefe '36 Posted September 12, 2007 Share Posted September 12, 2007 Got a quick question. Is there a way to convert several fields to text without going into each individual text strip? I have a large sheet index on our cover that I want to "Unfield", but don't want to go into each individual text strip. I've tried going around this and the only thing that works is the "TXTOUT" command, but that involves a bit of work. Thanks in advanced! Quote Link to comment Share on other sites More sharing options...
G-Prime Posted September 12, 2007 Share Posted September 12, 2007 If you do single line text, you can simply select all the text you want to change, right click go to properties, and under the field that says contents, and you can change it. Quote Link to comment Share on other sites More sharing options...
El Jefe '36 Posted September 12, 2007 Author Share Posted September 12, 2007 Doing so will change the text to whatever I enter in the "Contents" area....but most of the sheet titles are going to remain the same. I'm just trying to escape from retyping all the sheet titles again, just looking to unfield them. Thank you very much for the input. Quote Link to comment Share on other sites More sharing options...
El Jefe '36 Posted September 12, 2007 Author Share Posted September 12, 2007 I think I found a faster way than using the "TXTOUT" command, I converted the single line text into Mtext and that cleared out the field. Then I have to xplode the text so it can become single line text once again. The only thing is that you have to do each text strip individually. It is a little faster than going into each text strip and having to select "Convert field to text". Works for now I guess....... Quote Link to comment Share on other sites More sharing options...
zars Posted September 12, 2007 Share Posted September 12, 2007 Converting the DWG to DXF doesn't work? thouhg if you're using layout tabs this isn't a good option. Quote Link to comment Share on other sites More sharing options...
ASMI Posted September 13, 2007 Share Posted September 13, 2007 If your fields is MText (not DText or Attributes), you can simply explode it. Quote Link to comment Share on other sites More sharing options...
ASMI Posted September 13, 2007 Share Posted September 13, 2007 I write short lisp for fields conversion to text without exploading. Fields-attributes and fields-tables cells can be added. All layers with fields must be unlocked. (defun c:Fields_to_Text(/ mtSet fdLst exDic fDic oldStr) (vl-load-com) (princ "\n<<< Select fields to transform to ordinary text >>>") (if (setq mtSet(ssget '((0 . "TEXT,MTEXT")))) (progn (setq fdLst(mapcar 'vlax-ename->vla-object (vl-remove-if 'listp (mapcar 'cadr(ssnamex mtSet))))) (foreach tx fdLst (setq exDic(vla-GetExtensionDictionary tx)) (if (not (vl-catch-all-error-p (setq fDic(vl-catch-all-apply 'vla-Item(list exDic "ACAD_FIELD"))))) (progn (setq oldStr(vla-get-TextString tx)) (vla-Delete(vla-Item fDic 0)) (vla-put-TextString tx oldStr) (vla-put-BackgroundFill tx :vlax-false) (vla-Update tx) ); end progn ); end if ); end foreach ); end progn ); end if (princ) ); end of c:Fields_to_Text Quote Link to comment Share on other sites More sharing options...
El Jefe '36 Posted September 17, 2007 Author Share Posted September 17, 2007 THANKS!!! That worked perfectly. I appreciate the assistance. Quote Link to comment Share on other sites More sharing options...
onossa Posted October 6, 2009 Share Posted October 6, 2009 Thanks for this code... But, even if I have added ACAD_TABLE in order to be able to process fields in "true" Autocad tables cells, it seems not to work... How you add this function in your code ?? Aim for me is to remove all fields in all layouts... Thanks a lot for your help ! Olivier Quote Link to comment Share on other sites More sharing options...
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.