I started to work on my first harness assembly. I laid a few wires then realized i needed a brown wire set. So i opened he SEConductors.txt file and added brown. Saved the file and restarted SE. Alot of my wires are now black. how do i get those wires allready laid down to change to the desired color? If i opwn the wire , there are called out with the correct color set "10-gage Solid Copper Brown" but show up as black. This is true for the red wire set as well. how doi crrect this?
Nathan, The color in SEConductors.txt comes from the last value in the txt file. Each attribute/value is separated by semicolons. If you go back and open the txt file look at the top comments and it will document what each value represents. Last number is Color. What you may have added was simply a description but not what the color RGB value is. For brown, set the last value on the row to 78694. When you create a wire based on this value it will show as brown. I can explain more on how you get the value of 78694 but for now this will work.
Solid Edge Planning Team
Take the standard RGB colour code where R = Red, G= Green, and B = Blue,
And to calculate the long integer for it you use the formula:
LongColour = R + (G * 256) + (B * 65536)
Red [RGB 255, 0, 0] -> 255 + (0 * 256) + (0 * 65536) = 255
Green [RGB 0, 255, 0] -> 0 + (255 * 256) + (0 * 65536) = 65280
Blue [RGB 0, 0, 255] -> 0 + (0 * 256) + (255 * 65536) = 16711680
Black [RGB 0, 0, 0] -> 0 + (0 * 256) + (0 * 65536) = 0
White [RGB 255, 255, 255] -> 255 + (255 * 256) + (255 * 65536) = 16777215
And so on...
If you are not familiar with standard RGB colours, there are plenty of online resources available such as http://www.rapidtables.com/web/color/RGB_Color.htm
Thanks for the info about color conversion from 'under the hood' @uk_dave
Based on this I attempted to make a small utility to convert any RGB color to a Solid Edge number and also found that the ColorTranslator.ToWin32 did the same.