Hi,
Is there a way to change the mline style of an existing line? It is greyed out, but is there a system variable that could be changed to make this work?
Thanks
Russell
Yes, this is as designed.
If you want to send a wishlist to enhance program features, please click the page below.
http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=1109794
Hello from France
Welcome to the Autodesk/AutoCAD Forums !
Not sure to well understand your question/topic !?
But if you want to change the style of ONE existing MLine, I have the correct VLisp routine ?
;; VLisp Routine : Change_MLine
;; Change THE selected MLine to the CURRENT MLine style
;; and you can switch to Closed/Opened MLine ...
I hope it will help you ...
;; ;; http://cadxp.com/index.php?/topic/34672-remplacer-multiligne-par-une-autre-multiligne/page__pid__188... ;; Change_MLine par Bonuscad - Version 1.00 ;; Remplacer une MLine par une autre qui utilise le style de MLine courant ;; ;; ;; VLisp Routine : Change_MLine ;; Change THE selected MLine to the CURRENT MLine style ;; and you can switch to Closed/Opened MLine ... ;; ;; Minimum Translation for US/English Forums by Patrice BRAUD ;; (vl-load-com) (defun l-coor2l-pt (lst flag / ) (if lst (cons (list (car lst) (cadr lst) (if flag (+ (if (vlax-property-available-p ename 'Elevation) (vlax-get ename 'Elevation) 0.0) (caddr lst)) (if (vlax-property-available-p ename 'Elevation) (vlax-get ename 'Elevation) 0.0) ) ) (l-coor2l-pt (if flag (cdddr lst) (cddr lst)) flag) ) ) ) (defun c:Change_MLine ( / js ent ename l_pt cur_lay closed) ; (princ "\nSélectionner une multiligne.") (princ "\nPlease Select a MLine ") (while (null (setq js (ssget "_+.:E:S" '((0 . "MLINE"))))) ; (princ "\nCe n'est pas une multiligne!") (princ "\nThis is not a MLine ! ") ) (setq ent (ssname js 0) ename (vlax-ename->vla-object ent) l_pt (l-coor2l-pt (vlax-get ename 'Coordinates) T) cur_lay (getvar "CLAYER") ) ;; (initget "Fermée Ouverte _Closed Open") ;; (if (eq (getkword "\nMultiligne [Fermée/Ouverte] <Ouverte>: ") "Closed") (initget "Closed Open") (if (eq (getkword "\nMLine [Closed/Open] <Open>: ") "Closed") (setq closed T) ) (setvar "clayer" (vlax-get ename 'Layer)) (command "_.mline") (foreach n l_pt (command "_none" (trans n 0 1))) (if closed (command "_close") (command "")) (entdel ent) (setvar "CLAYER" cur_lay) (prin1) )
Patrice BRAUD
and for all mlines in the draw?, something like modify dim style or text style?, something update all mlines once time?
You can't even modify the style if there is an existing MLINE using that style in the drawing. You have to delete all lines using that style or create a new style. Would seriously be helpful to be able to just edit the style from the dropdown in the properties palette then have to delete or redraw all lines.