Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Contributor
jfboyer
Posts: 22
Registered: ‎02-27-2007
Message 1 of 7 (808 Views)

MTEXT Column property

808 Views, 6 Replies
06-01-2010 02:35 AM
I can't find how to retrieve/change the Column property (?) of an MTEXT, i.e switching from dynamic to none
Thanks
Jf
*Expert Elite*
azrdgldr
Posts: 1,250
Registered: ‎01-09-2007
Message 2 of 7 (808 Views)

Re: MTEXT Column property

06-01-2010 07:21 AM 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.
Contributor
jfboyer
Posts: 22
Registered: ‎02-27-2007
Message 3 of 7 (808 Views)

Re: MTEXT Column property

06-01-2010 11:25 PM 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
*Expert Elite*
azrdgldr
Posts: 1,250
Registered: ‎01-09-2007
Message 4 of 7 (808 Views)

Re: MTEXT Column property

06-02-2010 08:22 AM in reply to: jfboyer
Not saying this would work but have you looked into the dxf codes settings of Mtext.
Contributor
jfboyer
Posts: 22
Registered: ‎02-27-2007
Message 5 of 7 (808 Views)

Re: MTEXT Column property

06-03-2010 04:33 AM 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
New Member
Azarko
Posts: 1
Registered: ‎02-16-2011
Message 6 of 7 (477 Views)

Re: MTEXT Column property

02-16-2011 08:52 AM 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)
  )

 

 

Distinguished Contributor
Jedimaster
Posts: 151
Registered: ‎03-11-2009
Message 7 of 7 (389 Views)

Re: MTEXT Column property

03-17-2011 05:46 AM 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? 

 

 

Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.