Author Topic: Dimension Text Style Fill Color  (Read 3221 times)

0 Members and 1 Guest are viewing this topic.

Matersammichman

  • Guest
Dimension Text Style Fill Color
« on: November 16, 2006, 10:07:25 AM »
Does anyone know of a way to set\change the Dimension Text Style Fill Color using VBA?

Fatty

  • Guest
Re: Dimension Text Style Fill Color
« Reply #1 on: November 16, 2006, 11:08:20 AM »
Try this:
Code: [Select]
objDimension.TextColor=RGB(255,0,0)
or:
objDimension.TextColor=1

~'J'~

Matersammichman

  • Guest
Re: Dimension Text Style Fill Color
« Reply #2 on: November 16, 2006, 11:17:43 AM »
Thanks, but that's not it. It's my fault. Maybe I wasn't clear enough.
I'm trying to set the Dimension Text (Background) Fill Color, not the actual Text color.
I'm in 2005 ADT and trying to mask my dimension text.
I know I can do it the "regular" way via picking through the DimStyle command, but I want to code it in vba.

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Dimension Text Style Fill Color
« Reply #3 on: November 16, 2006, 11:20:05 AM »
Thanks, but that's not it. It's my fault. Maybe I wasn't clear enough.
I'm trying to set the Dimension Text (Background) Fill Color, not the actual Text color.
I'm in 2005 ADT and trying to mask my dimension text.
I know I can do it the "regular" way via picking through the DimStyle command, but I want to code it in vba.

Are you looking to toggle it with a user pick or change all at the command line.
Just watching & learning
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

Matersammichman

  • Guest
Re: Dimension Text Style Fill Color
« Reply #4 on: November 16, 2006, 11:22:46 AM »
I'm actually looking to set it in a particular Dimension Style, but both of your options sound great too!

Krushert

  • Seagull
  • Posts: 13679
  • FREE BEER Tomorrow!!
Re: Dimension Text Style Fill Color
« Reply #5 on: November 16, 2006, 11:29:56 AM »
I'm actually looking to set it in a particular Dimension Style, but both of your options sound great too!

I was thinking the other day that I needed a something to toggle the background mask on and off for user selected text and dimension objects.  And I thought that I would do it in VLisp since this would be great second lesson/routine.  I know nothing of VBA also so I will sit back and watch.
I + XI = X is true ...  ... if you change your perspective.

I no longer CAD or Model, I just hang out here picking up the empties beer cans

Matersammichman

  • Guest
Re: Dimension Text Style Fill Color
« Reply #6 on: November 17, 2006, 07:13:22 AM »
Wow!
Did I stump the panel???