Help change color to background

Help change color to background

Jonathan3891
Advisor Advisor
417 Views
3 Replies
Message 1 of 4

Help change color to background

Jonathan3891
Advisor
Advisor

I have a lisp that will add a background mask to mtext and sets the color to 250.

 

I need to the lisp to set the color to the background color, like if I were to manually do it and select "use drawing backround color".

 

Thanks for the help!

 

DSM_Dude

 

(defun c:mblank ( / js n dxf_ent)
	(setq js (ssget '((0 . "MTEXT"))))
	(cond
		(js
			(repeat (setq n (sslength js))
				(setq dxf_ent (entget (ssname js (setq n (1- n)))))
				(entmod (append dxf_ent '((90 . 1) (63 . 250) (45 . 1.1) (441 . 0))))
			)
		)
	)
)

 


Jonathan Norton
Blog | Linkedin
0 Likes
Accepted solutions (1)
418 Views
3 Replies
Replies (3)
Message 2 of 4

hmsilva
Mentor
Mentor
Accepted solution

Try
(90 . 3) (63 . 256)

Henrique

EESignature

0 Likes
Message 3 of 4

Jonathan3891
Advisor
Advisor

Thank You!!

 

I tried changing the color to 256 but it would always make the background color match the color of the text.

 


Jonathan Norton
Blog | Linkedin
0 Likes
Message 4 of 4

hmsilva
Mentor
Mentor
You're welcome

Henrique

EESignature

0 Likes