cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

text element without backfill color

ptc-4464050
1-Newbie

text element without backfill color

Hi, first of all: This forum is a great source for me to use and understand IsoDraws macro language.

Great. Never the less i have a question to the „element.text.backfill_color“

My goal is to tell a text element to use no (no) backfill color.

(note that backfill color is not the color of the written text itself but the color behind the text)

Now i looked in the newest macro reference and found the way to set the color of the background of a text element as ColorSpec („element.text.backfill_color“ )

But how can i tell the text element to use no backfill at all?

I tried several ways but my macro knowledge is not that big (yet).

I also tried to set „$ISO_NOFILL“ as a color

(since it is written in the reference - but it didn’t work out)

Might be super easy but I can’t find it.

Any idea is very much appreciated.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

Hi.

If you like to know how to set a certain value to an element property, try the other way round.

E.g., to find out how the backfill color of an element with _no_ backfill is defined, select such

a text element and try:

MESSAGE activeDoc.firstSelectedElement.text.backfill_color

in this case it is going to return

{Ref "$ISO_NOFILL" 100}

(Which is indeed is a color spec. and not a plain color.)

Thus the following will remove the backfill color from a selected element:

activeDoc.firstSelectedElement.text.backfill_color = '{Ref "$ISO_NOFILL" 100}'

(Please note that this uses single quotes.)

View solution in original post

2 REPLIES 2

Hi.

If you like to know how to set a certain value to an element property, try the other way round.

E.g., to find out how the backfill color of an element with _no_ backfill is defined, select such

a text element and try:

MESSAGE activeDoc.firstSelectedElement.text.backfill_color

in this case it is going to return

{Ref "$ISO_NOFILL" 100}

(Which is indeed is a color spec. and not a plain color.)

Thus the following will remove the backfill color from a selected element:

activeDoc.firstSelectedElement.text.backfill_color = '{Ref "$ISO_NOFILL" 100}'

(Please note that this uses single quotes.)

Hi,

thats great.

Thank you so much - this way it works out for me.

Nicely explained as well.

I appreciate the hint with the MESSAGE and will try to use this in the future.

Thanks again

(still wonder why it didn't work out for me in the first place -

might have been the missing single quotes you mentioned)

Top Tags