Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
MicroStation
  • Product Communities
  • More
MicroStation
[Archived] AskInga Wiki Extract and print colour table information
    • Sign in

    • -AskInga
      • +3D MicroStation
      • +AccuDraw Secrets
      • +Animation - Rendering
      • +Behind The Scenes
      • +Cells
      • -Colours
        • A collection of colour tables
        • All about background colours
        • Change background of DWG files
        • Change colour of engineering links - webtags
        • Change the default colour of a sheet model
        • Change the view window background colour with this macro
        • Compare design files graphically
        • Compare design files without level symbology
        • Extract and print colour table information
        • For the colour blind - change PopSet icons
        • Keyin to toggle background colour on a per view basis
        • Make a custom color book
        • Match any colour anywhere with the eye dropper tool
        • Selection set highlight colour
        • Set design history colours
        • Set element highlight colour when snapping
        • Taking the RED out of colour tables
        • Viewing a simple DWG file in monochrome
      • +Conversion - Translation
      • +Coordinate Input
      • +Design Settings
      • +Dimensions
      • +DWG
      • +EDG
      • +Element Manipulation
      • +Element Properties
      • +Element Selection
      • +Freeware - Shareware
      • +Interface Look And Feel
      • +Internet - E-Links - Links
      • +Keyins
      • +Levels
      • +Line Styles
      • +Models
      • +MSM Archive
      • +Other
      • +Presentations
      • +Printing - Plotting
      • +Programming - Automation
      • +Rasters - Images
      • +References
      • +Tags - Data Fields - Fields
      • +Text - Fonts - Annotation
      • +Views
      • +Windows - Interacting With
      • +Workspaces - Configuration
    • graffiti

     
     Questions about this article, topic, or product? Click here. 

    Extract and print colour table information

    AskInga logo

    Original Article Date: February 2004 

    Updated:  October 2005,  August 2010

    With many thanks to Henry van Berkel, Peter Emmen, Kees van Prooijen and Krister Surell for these macros that allow you to easily extract information from your attached color table.

    Color Table to Text File (colortbl2txt.bas - 2004)
    Authored by Henry van Berkel and Peter Emmen from the Gemeente Tilburg, this BASIC macro allows you to select a colour table and does two things. First it will build a matrix complete with RGB values, and second, it will dump the RGB values into an external text file called RGB.TXT located in the root of your C: drive. The output file can then be edited manually by opening it in Excel or any text editor. Once your RGB edits are complete, use the next macro to upload/rebuild your colour table with the modified colors. Note: This macro will not run on MicroStation V8i.

    Text File to Colour Table (txt2colortbl.mvba - 2004)
    Originally authored by Artur Goldweer from Bentley's TSG group in Germany, this VBA macro for MicroStation V8 sets the colors of a colour table via an ASCII file. In other words, it does the exact opposite of the macro above. First create the ASCII file c:\rgb.txt with the first macro in this article. Then edit the RGB values as desired and re-create the colour table with this VBA macro. The easiest way to run this is via the following keyin: vba run [txt2ColorTbl]modMain.txt2tbl. Of course you'll want to place the mvba in the folder pointed to by MS_VBASEARCHDIRECTORIES.   Note:  This macro has not been tested on MicroStation V8i.

    Place Colour Table (PlaceColorTable.mvba - 2005)
    This last VBA macro was submitted by Krister Surell. As you can see from the graphic below, it creates/prints a colour table matrix and labels each colour with it's values from four different systems: RGB, CMY, CMYK and HSV.   This VBA has been tested on MicroStation V8i and appears to run fine.

    This program is supplied as is. AskInga, Bentley Systems Inc., and the author of the program assumes no liability for damages direct, indirect, or consequential, which may result from the use of this program. Use this program at your own risk.

    AskInga Article #177

    • Askinga
    • Colours
    • FreewareShareware
    • Article
    • Share
    • History
    • More
    • Cancel
    • Hannah Blye Created by Hannah Blye
    • When: Wed, May 28 2008 2:58 PM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Tue, Aug 17 2010 5:10 PM
    • Revisions: 6
    • Comments: 2
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2021 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies