+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Junior Member El Jefe '36's Avatar
    Using
    Land Desktop 2007
    Join Date
    Sep 2007
    Location
    Austin, Texas
    Posts
    15

    Default Global Coversion of Fields to Text?

    Registered forum members do not see this ad.

    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!
    Going for "Imperial Material".....

  2. #2
    Senior Member G-Prime's Avatar
    Computer Details
    G-Prime's Computer Details
    Operating System:
    Vista SP1...
    Computer:
    Intel Core 2 Quad Q9400
    CPU:
    2.66Ghz
    RAM:
    8G
    Discipline
    Electrical
    G-Prime's Discipline Details
    Occupation
    CAD Monkey
    Discipline
    Electrical
    Using
    MEP 2011
    Join Date
    Jul 2007
    Location
    Canaduh
    Posts
    194

    Default

    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.
    CAD version : MEP 2011
    REVIT version : MEP 2011
    Total Newb : YES

  3. #3
    Junior Member El Jefe '36's Avatar
    Using
    Land Desktop 2007
    Join Date
    Sep 2007
    Location
    Austin, Texas
    Posts
    15

    Default

    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.
    Going for "Imperial Material".....

  4. #4
    Junior Member El Jefe '36's Avatar
    Using
    Land Desktop 2007
    Join Date
    Sep 2007
    Location
    Austin, Texas
    Posts
    15

    Default

    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.......
    Going for "Imperial Material".....

  5. #5
    Senior Member zars's Avatar
    Computer Details
    zars's Computer Details
    Operating System:
    Windows Xp Profesional Service Pack 3
    Computer:
    Dell Optiplex 755
    Motherboard:
    Intel D946GZIS
    CPU:
    Intel Core2Duo 2.13 GHz
    RAM:
    1 GB Kingston DDR2 333 Mhz
    Primary Storage:
    Sata 300 Gb Western Digital
    Monitor:
    Dell 17''
    Using
    AutoCAD 2007
    Join Date
    May 2006
    Location
    LZC, Michoacan, Mexico.
    Posts
    464

    Default

    Converting the DWG to DXF doesn't work? thouhg if you're using layout tabs this isn't a good option.
    There are only 2 things which are infinite... the universe and the human stupidity.
    "Life is not the amount of breath you take, it's the moments that take your breath away"

  6. #6
    Super Member ASMI's Avatar
    Using
    AutoCAD 2008
    Join Date
    Nov 2005
    Location
    Oceanus Procellarum, Moon
    Posts
    1,427

    Default

    If your fields is MText (not DText or Attributes), you can simply explode it.
    Last edited by ASMI; 13th Sep 2007 at 07:07 am.

  7. #7
    Super Member ASMI's Avatar
    Using
    AutoCAD 2008
    Join Date
    Nov 2005
    Location
    Oceanus Procellarum, Moon
    Posts
    1,427

    Default

    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.

    Code:
    (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

  8. #8
    Junior Member El Jefe '36's Avatar
    Using
    Land Desktop 2007
    Join Date
    Sep 2007
    Location
    Austin, Texas
    Posts
    15

    Default

    THANKS!!! That worked perfectly. I appreciate the assistance.
    Going for "Imperial Material".....

  9. #9
    Forum Newbie
    Using
    AutoCAD 2009
    Join Date
    Sep 2009
    Posts
    1

    Default remove Fields in table cells

    Registered forum members do not see this ad.

    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

Similar Threads

  1. Need LISP to change global text font
    By Vigilante in forum AutoCAD General
    Replies: 10
    Last Post: 30th Jan 2012, 04:03 pm
  2. Global Dim Change
    By Scale in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 7th Jun 2007, 02:18 pm
  3. linking text fields on different pages
    By Chrisjpritchard in forum AutoCAD Drawing Management & Output
    Replies: 5
    Last Post: 28th Feb 2007, 09:49 pm
  4. need lisp routine for global text string change
    By TFerg in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 28th Jul 2006, 03:46 pm
  5. Global Variables?
    By Griff in forum AutoCAD General
    Replies: 3
    Last Post: 17th May 2006, 06:04 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts