Page 3 of 3 FirstFirst 123
Results 21 to 22 of 22

Thread: Dim Text Above the Dim Line

  1. #21
    AUGI Addict
    Join Date
    2006-04
    Location
    (0,0,+|Z|)
    Posts
    1,119

    Default Re: Dim Text Above the Dim Line

    Quote Originally Posted by irneb View Post
    If you want to generate a pair from a variable you need to use cons instead of quote ('). Something like this:
    Code:
    (setq DimTadValue 4)
    (cons 1070 DimTadValue) ;Returns (1070 . 4)
    Using the quote will not evaluate the items in the list into their values. So using the following:
    Code:
    (setq DimTadValue 3)
    '(1070 . DimTadValue) ;Returns (1070 . DIMTADVALUE) not (1070 . 3)
    Thanks again, irneb.
    I just looked into the HELP and learnded the quote function.

  2. #22
    Member
    Join Date
    2010-10
    Posts
    12

    Default Re: Dim Text Above the Dim Line

    And you may to look into Activex, sth like this :
    Code:
    (defun C:upd(/ key lst tmp)
    (cond 	(	(ssget (list (cons 0 "DIMENSION")))
    			(setq lst '((0 . "Centered")(1 . "Above")(2 . "Outside")(3 . "JIS")))
    			(princ "Please select number 1 to 4 to take effect")
    			(while (/= 32 (setq key (cadr (grread nil 4 1))))
    					(vlax-for dObj (vla-get-activeselectionset (vla-get-activedocument (vlax-get-acad-object)))
    						(vla-put-VerticalTextPosition dObj
    							(setq tmp (- key 49))
    						)
    					)
    					(princ (strcat "\nChange DimText Position to " (cdr (assoc tmp lst))))
    			)
    		)
    		(T (princ "Nothing to do"))
    )
    (princ)
    )

Page 3 of 3 FirstFirst 123

Similar Threads

  1. Line based text - remove text masking?
    By blumarble in forum Revit Architecture - General
    Replies: 3
    Last Post: 2012-01-04, 05:20 PM
  2. Line spacing In Multi Line Text
    By STHRevit in forum Revit Architecture - General
    Replies: 1
    Last Post: 2008-09-22, 09:59 AM
  3. Replies: 8
    Last Post: 2007-06-27, 09:09 PM
  4. Convert single line text to multi line text?
    By civilguy in forum AutoCAD General
    Replies: 3
    Last Post: 2006-10-11, 11:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •