Jump to content

Change text justify and text style


darwin.ocik

Recommended Posts

Hello,

I have a lisp that work for move text, change text height, change text color, change text rotation.

I want to add more function to change text justify and text style, is it possible?

Any help would be much appreciated. Thanks

(defun c:r1()

(command "osmode" 0)

  (setq a (getpoint "\ point reference :"))
  (princ "\ Text 1 :")
    
  	(setq x1 (car a))
	(setq y1 (cadr a))
  
  	(setq k1 (list x1 y1))
  	(setq k2 (list x1 (- y1 (* 2.0 ))))
  	(setq k3 (list x1 (- y1 (* 4.0 ))))
  	(setq k4 (list x1 (- y1 (* 6.0 ))))
         
        (command "change" pause "" "" k1 "" "1.5" "0" "")
    	(command "chprop" "p" "" "c" "white" "" "")
  
  (princ "\ Text 2 :")
        (command "change" pause "" "" k2 "" "1.5" "0" "")
    	(command "chprop" "p" "" "c" "white" "" "")
	
  (princ "\ Text 3 :")
        (command "change" pause "" "" k3 "" "1.5" "0" "")
    	(command "chprop" "p" "" "c" "white" "" "")

  (princ "\ Text 4 :")
        (command "change" pause "" "" k4 "" "1.5" "0" "")
    	(command "chprop" "p" "" "c" "white" "" "")

(command "osmode" 1)

  (princ)
)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...