Mtext linespacing

Gordon Price

Usenet Archive
Joined
Jul 14, 2003
Messages
203
Reaction score
0
Two questions here.
1: is there a way to programatically change the linespacing on Mtext. We have a ton of text that needs to be Exactly, and MatchProps doesn't seem to do it. 2: Is there a way to make this the default. From the standpoint of consistency we would rather just set it and move on.

Thanks,
Gordon
 
Gordon Price said:
Two questions here.
1: is there a way to programatically change the linespacing on Mtext. We have a ton of text that needs to be Exactly, and MatchProps doesn't seem to do it.

Not the best approach, but it should give you some ideas...

;;; Assumes *active-document* is set to the acvive-document vla object ;;; (vlax-for item (vlax-get *active-document* "ModelSpace") (if (eq (vlax-get item "ObjectName") "AcDbMText") (progn (vlax-put item "LineSpacingFactor" "1.0") (vlax-put item "LineSpacingStyle" "2") ) )
)
 

Latest threads

Back
Top