Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MTEXT Column property

6 REPLIES 6
Reply
Message 1 of 7
jfboyer
1988 Views, 6 Replies

MTEXT Column property

I can't find how to retrieve/change the Column property (?) of an MTEXT, i.e switching from dynamic to none
Thanks
Jf
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: jfboyer

Its just below the Style name of the Text Formatting title box for mtext. If you don't have to title box, right click in the edit box and look for the editor settings.
Message 3 of 7
jfboyer
in reply to: jfboyer

Thanks azrdgldr, actually I need to do this in vlisp. But I don't think it's possible, the ColumnsType property is exposed only in .NET, unless I'm mistaken
Message 4 of 7
Anonymous
in reply to: jfboyer

Not saying this would work but have you looked into the dxf codes settings of Mtext.
Message 5 of 7
jfboyer
in reply to: jfboyer

the Mtext has a Xdata, see below, but for some reason (entget Ename '("*")) failed to retrieve this Xdata
1001
ACAD
1000
ACAD_MTEXT_COLUMN_INFO_BEGIN
1070
75
... etc ...
1000
ACAD_MTEXT_COLUMN_INFO_END

beats me
Jf
Message 6 of 7
Azarko
in reply to: jfboyer

need to add dxf group of 75 '(75 . 0)

(defun C:TEST ()
  (and
    (setq mtext (car(entsel "\nSelect Mtext to change columns type: ")))
    (setq lst (entget mtext))
    (= (cdr(assoc 0 lst)) "MTEXT")
    (setq lst (if (assoc 75 lst)                         
		      (subst (cons 75 0) (assoc 75 0) lst)
		      (append lst (list(cons 75 0)))
		      )
	  )
    (entmod lst)
    )
  (princ)
  )

 

 

Message 7 of 7
Jedimaster
in reply to: jfboyer

Adding the DXF code changes the column type. I cannot select the mtext globally. Is  DXF code 75 some sort of XDATA? 

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost