Visual LISP, AutoLISP and General Customization

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

MTEXT Column property

792 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 (792 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 (792 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 (792 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 (792 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 (461 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: 146
Registered: ‎03-11-2009
Message 7 of 7 (373 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? 

 

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community