I have a SWx DT question. I need to control color of the part config. In the DT I am having a column $color and giving values of For cfg1 - a value of 0 for (Black) For cfg2 - a value of 255 for (red)
I dont see color changing. why?
go to the help files on dt
the color has to be put in as nubers not text
Which version and SP of SW?
Which version of Excel?
Are you creating the DT manually or using the Auto-create option?
Can you post a sample part with DT for testing on other machines?
I created this reference design table many years ago that I use to refer to when I need to do the same. Basically there is a column for the red value, a column for the green value, and one for the blue. And then a column with an equation to compute the actual interger value that gets used to compute the color per config. Can't take full credit for this though. I read this solution on CCSW many years ago and can't remember who posted it.
Hope this helps.
To all ...
The color parameter conversion information has been in the SW Help for a number of years.
But I don't believe the OP's problem is with assigning the correct colour code. The problem is that the colours aren't being propagated into the model. It could be a syntax problem, Excel misbehaving, SW glitch ... or he could be colour-blind.
Good deal... I don't think this used to be in the help file a long, long time ago (like in 2002 when it was posted on CCSW http://tinyurl.com/ygeee3m). But I could be wrong.
As for the OP's problem, you are probably correct. I have seen this problem as well as numerous other config/color issues. Config colors have been screwy all around for quite a while now.
Notably, in the config properties (RMB config>properties) there is an option for Use configuration specific color that has not worked in several releases. Nor does this have to be checked in order to even get config specific colors.
Also, I've noticed many times that if you change part colors and select "this config only", it will sometimes change all configs. Especially if is a new config.
But, the way the OP's question was stated, he specifically stated what he was putting for these values, which weren't correct integer values.
Either way, hopefully he's got his answer.
I modified the color calculator from Deepak Gupta by adding some VBA to highlight a cell with the desired color. Change the values in columns B - D to your heart's desire (0 - 255) and view the resulting color in column F. I have also added a second sheet which will display the color for a given $COLOR code and generate the component RGB values. Note this is a macro-enabled workbook.
Retrieving data ...