Colors Conversions

Hello to the Community.

I have a set of DGN files where I have to change the colors of the entities. These colors are coming from values of the standard MicroStation color table. I have to convert them to RGB mode that existing colors. I use Save As DGN but I can not indicate the RGB color correctly in the CSV files. Nothing is happening. Can you help me ? Thank you.

  • Hi Lesbre,

    can you please to specify what MicroStation version do you use and also if your colors are defined for levels (and elements are "by level") or the colors are defined for every element individually?

    With regards,

    Jan
  • Hello Slerg,

    You are right.
    I missed some informations :
    1) I tried with MS V8i 08.11.09.459 and also with MS CONNECT 10.01.00.13
    2) The entities are defined in individual color mode (not a "bylevel" mode).
    3) I can try and remark that if the entities are lying in bylevel mode on a level with a color table value (for example, the number "6"), the color is properly transformed to RGB decomposition of the color Nr 6 (that is RGB:255,127,0). So that the rendition is the same before and after.
    4) What I am wanting to do is to change a color table value to an RGB value witrh a different rendition. May be I don't find the correct syntax in the CSV file ..

    Thank again for the help of this Community.
  • see if this works , I havent  tried it yet...

    select all element and change  set to color by level but dont set the  level..

    make a dgn lib file with all the  levels named and by level and set the  colours you want   to bylevel, then import the dgn lib library level and update all in the level manager  if this worked  then batch process for the  others.. remember to set the  level colours you want as the standard rgb .... in the dgn lib...

    should work .. logically... seems right...

    Lorys

    Started msnt work 1990 - Retired  Nov 2022 ( oh boy am I old )

    But was long time user V8iss10 (8.11.09.919) dabbler CE  update 16 (10.16.00.80) 

    MicroStation user since 1990 Melbourne Australia.
    click link to PM me 

  • Hi Lesbre,

    thanks for providing more details! Unfortunately it creates a few more questions in my head ;-)

    Let's forget for a minut csv remap tool and I'd like to make sure I understand your intention fully:

    • Do you want to maintain color table index numbers, so an element will stay e.g. 4, but it will be not yellow as defined in standard MicroStation color table, but let say 45;58;200 in RGB? In such case to define own colot table and to attach it to the desing file should be enough.
    • Or you want to change color definition for every element, so instead of element uses color 4 from color table, it should use color 45;58;200? Visually the result is quite the same, but from data structure it's completely different approach. I have to say I am not sure why csv doesn't work and even if it should work, but in the worst case it can be achieved by VBA macro and some conversion table.

    With regards,

      Jan

  • Thank you for continuing to follow this topic.

    The good answer is the Nr 2 : "I want to change color definition for every element, so instead of element uses color 4 from color table, it should use color 45;58;200".

    I can observ that the syntax RGB:255,127,0 works properly as the BylevelColor Value in the Levels thumbnail of the Saveas DGN tool.

    The same syntax (and all the other I have tries) do not work in OutputV8Color column in the Colors thumbnail of the Saveas DGN tool....

    Strange isn't it ?