mbrandt5 Posted August 12, 2015 Posted August 12, 2015 (defun C:R-FIELDS ( / del-field ss1 index item) (defun del-field (ent / edic) (if (setq edic (cdr (assoc 360 (entget ent)))) (dictremove edic "ACAD_FIELD") ) ) (if (= (getvar "TILEMODE") 0) (progn (setvar "TILEMODE" 1) (command "REGEN") ) ) (if (setq ss1 (ssget "X" (list (cons 0 "TEXT,MTEXT,MULTILEADER") (cons 67 0) ) ) ) (progn (setq index 0) (repeat (sslength ss1) (setq item (ssname ss1 index)) (if (del-field item) (entupd item)) (setq index (+ 1 index)) ) ) ) (if (setq ss1 (ssget "X" (list (cons 0 "INSERT") (cons 67 0) (cons 66 1) ) ) ) (progn (setq index 0) (repeat (sslength ss1) (setq item (ssname ss1 index)) (while (= (cdr (assoc 0 (entget (setq item (entnext item))))) "ATTRIB") (if (del-field item) (entupd item)) ) (setq index (+ 1 index)) ) ) ) (princ) ) This code will replace all fields within all text, mtext, and dimensions For some reason the fields within text/(old attributes) of a bursted dynamic block will not change for some reason? Can anyone figure out why? Quote
tombu Posted August 13, 2015 Posted August 13, 2015 Try R-FIELDS.lsp from: http://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/convert-field-to-text/m-p/1722025#M217920 Quote
mbrandt5 Posted August 13, 2015 Author Posted August 13, 2015 That is actually the same code...Though I did notice that there was an update... Still doesn't work though... Anyone interested in helping it would be greatly appreciated Quote
mbrandt5 Posted August 19, 2015 Author Posted August 19, 2015 I've learned the reasoning to why this occurs is because the Mtext is Dynamic in the column property after its bursted... So if that can be altered with code I believe that would solve the issue Quote
Lee Mac Posted October 1, 2015 Posted October 1, 2015 Could you possibly attach a sample drawing containing an example of the problematic MText? Instead of using the standard BURST command, have you tried using my Upgraded Burst program or Nested Burst program? (These use very different methods to the standard BURST command). Lee Quote
mbrandt5 Posted October 15, 2015 Author Posted October 15, 2015 I tried Iburst, as well as NBurst with no luck unfortunately...attached is the R-Field Lsp/problematic block with the attribute that converts but won't retain the fields last given value at the time of R-Field execution. Sorry for such a late response I've had a lot going on R-FIELDS.lsp BurstRFieldError.dwg Quote
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.