TheSwamp

Code Red => VB(A) => Topic started by: Matersammichman on November 16, 2006, 10:07:25 AM

Title: Dimension Text Style Fill Color
Post by: Matersammichman 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?
Title: Re: Dimension Text Style Fill Color
Post by: Fatty on November 16, 2006, 11:08:20 AM
Try this:
Code: [Select]
objDimension.TextColor=RGB(255,0,0)
or:
objDimension.TextColor=1

~'J'~
Title: Re: Dimension Text Style Fill Color
Post by: Matersammichman 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.
Title: Re: Dimension Text Style Fill Color
Post by: Krushert 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
Title: Re: Dimension Text Style Fill Color
Post by: Matersammichman 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!
Title: Re: Dimension Text Style Fill Color
Post by: Krushert 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.
Title: Re: Dimension Text Style Fill Color
Post by: Matersammichman on November 17, 2006, 07:13:22 AM
Wow!
Did I stump the panel???