MTEXT opaque background color

MTEXT opaque background color

Anonymous
Not applicable
2,197 Views
5 Replies
Message 1 of 6

MTEXT opaque background color

Anonymous
Not applicable

How can I set the background color to opaque using lisp?

I tried using the following to set the offset value, but I don't know what the color code should be to come out opaque:

     (entmod (append ed1 '((90 . 0) (63 . 0) (45 . 1.25) (441 . 0))))

 

Thanks,

Larry

0 Likes
Accepted solutions (1)
2,198 Views
5 Replies
Replies (5)
Message 2 of 6

hmsilva
Mentor
Mentor

@Anonymous wrote:

How can I set the background color to opaque using lisp?

I tried using the following to set the offset value, but I don't know what the color code should be to come out opaque:

     (entmod (append ed1 '((90 . 0) (63 . 0) (45 . 1.25) (441 . 0))))

 

Thanks,

Larry


Opaque??

 

To color 255

 

(entmod (append ed1 '((90 . 1) (63 . 255) (45 . 1.25) (441 . 0))))

 

to background color

 

(entmod (append ed1 '((90 . 3) (63 . 256) (45 . 1.25) (441 . 0))))

 

Hope this helps,
Henrique

EESignature

0 Likes
Message 3 of 6

Anonymous
Not applicable

Thanks Henrique

 

I guess I should been more clear about what I meant by opaque.

I want to "use drawing background color".

I said opaque because that's what it says when you hover over the chackbox in the background mask dialog box (see attachment)

Both codes you specified gave me a white box around the text, I don't want any color around the text.

 

Sorry for the confusion

 

Larry

 

0 Likes
Message 4 of 6

hmsilva
Mentor
Mentor
Accepted solution

@Anonymous wrote:

Thanks Henrique

 

I guess I should been more clear about what I meant by opaque.

I want to "use drawing background color".

I said opaque because that's what it says when you hover over the chackbox in the background mask dialog box (see attachment)

Both codes you specified gave me a white box around the text, I don't want any color around the text.

 

Sorry for the confusion

 

Larry

 


Hi Larry,

 

my second code, should use background color, did you also change dxf 90 to 3 ?

 

(entmod (append ed1 '((90 . 3) (63 . 256) (45 . 1.25) (441 . 0))))

 

Henrique

EESignature

0 Likes
Message 5 of 6

Anonymous
Not applicable

My bad, I didn't notice you had changed the value of 90.

So yes, 90 . 3 and 63 . 256 worked perfectly

Thank you

 

Larry

0 Likes
Message 6 of 6

hmsilva
Mentor
Mentor

You're welcome, Larry
Glad I could help

Henrique

EESignature