Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
MicroStation
  • Product Communities
  • More
MicroStation
MicroStation Wiki How to set the active color as RGB Colors by keyin
    • Sign in
    • -MicroStation Wiki
      • +Learning Tips
      • -MicroStation
        • +3D Printing - MicroStation
        • +Animation - MicroStation
        • +Archive / Backup - MicroStation
        • -Base Geometry - MicroStation
          • Construct center line element between two curves/lines
          • Drop B-Spline
          • How can you place closed bspline curve with a fill?
          • How to apply gradient color to a closed shape or circle using two colors darker at the edges and lighter to center?
          • How to change fill when closing a Smartline
          • How to copy elements from one DGN file to another
          • How to offset a curve in 3D?
          • How to set boundary and fill with different transparency
          • How to set the active color as RGB Colors by keyin
          • Limit of vertices of shape/linestring (max number of vertices).
          • Matching Element Attributes
          • Quick way of matching element attribute
          • Tool icon not highlighting
          • Two handles at same point in a Complex Chain
          • V7 Complex Shape error
          • What does the elevation field represent?
          • What happened to drop bspline curve tool?
          • Where are the Points tools located?
        • +Batch Processing - MicroStation
        • +CONNECT Advisor - MicroStation
        • CONNECT Integration - MicroStation
        • +CONNECTION Client
        • +Cells - MicroStation
        • +Change Tracking - MicroStation
        • +Configuration - MicroStation
        • +Coordinate Systems - MicroStation
        • +Curves - MicroStation
        • +Custom Linestyles - MicroStation
        • +DGN - MicroStation
        • +DWG - MicroStation
        • +Database - MicroStation
        • +Detailing Symbols - MicroStation
        • +Dimensions - MicroStation
        • +Documentation & Help - MicroStation
        • +Drawing Aids - MicroStation
        • +Exception - MicroStation
        • +FAQ - MicroStation
        • +Feature Based Solids Modeling - MicroStation
        • +File Access - MicroStation
        • +GUI - MicroStation
        • +General - MicroStation
        • +Graphics Display - MicroStation
        • +Groups - MicroStation
        • +Hardware / Input Devices - MicroStation
        • +Import/Export - MicroStation
        • +Installation - MicroStation
        • +Interchange - MicroStation
        • +Interference - MicroStation
        • +Internationalization - MicroStation
        • +Levels - MicroStation
        • +Licensing - MicroStation
        • +Manipulation - MicroStation
        • +Markup / Redline - MicroStation
        • +Measure - MicroStation
        • +Mesh - MicroStation
        • +Models - MicroStation
        • +Multi-Lines - MicroStation
        • +OLE - MicroStation
        • +Other - MicroStation
        • +Parametrics - MicroStation
        • +Patterning - MicroStation
        • +Point Cloud - MicroStation
        • +Printing - MicroStation
        • +Programming - MicroStation
        • +Project Navigation - MicroStation
        • +Properties - MicroStation
        • +RSS Feeds - MicroStation
        • +Reference - MicroStation
        • +Security - MicroStation
        • +Selection - MicroStation
        • +Settings - MicroStation
        • +Sheet Composition - MicroStation
        • +Solids - MicroStation
        • +Standards - MicroStation
        • +Surfaces - MicroStation
        • +Tables - MicroStation
        • +Text - MicroStation
        • +UI Customization - MicroStation
        • +Units - MicroStation
        • +View - MicroStation
        • +Visualization - MicroStation
        • Welcome Page - MicroStation
        • +Accreditation - MicroStation
        • +i.Models - MicroStation
        • +ProjectWise Integration
        • +Raster - MicroStation
    • +Administration Wiki
    • +Annotations Wiki
    • +Bentley View Wiki
    • +MicroStation PowerDraft
    • +Programming Wiki
    • +Visualization Wiki

    You are currently reviewing an older revision of this page.

    • History View current version

    How to set the active color as RGB Colors by keyin

       
      Applies To 
       
      Product(s): MicroStation
      Version(s): V8, XM, V8i
      Environment:  N\A
      Area:  Base Geometry
      Subarea:  N\A
      Original Author: Gerd Eisenacher
       

    Problem

    How can the Active Color be defined as RGB colors using a keyin.

    Solution

    To set the active color through a keyin you just use this string: ACTIVE COLOR RGB:>red,green,blue<

    Like: ACTIVE COLOR RGB:150,200,250 … also the old-school keyin works: co=RGB:150,200,250

     

    microStation VBA you can get strange results Recording color settings in the VBA macro-recorder (Utilities>Macro>Projectmanager…) produces results that may not work as desired.. Replacing the recorded string by

    CadInputQueue.SendCommand "co=RGB:150,200,250"

    you get a correct RGB setting.

    BTW. You also can use the colors from a color book. e.g. ACTIVE COLOR RAL CLASSIC 840-HR:1006

    (it may be the easiest way find out the key-in to apply a value to an element and then obtain it from the element info)

    See Also

    Product TechNotes and FAQs

    External Links

    Bentley LEARN Server

    Comments or Corrections?

    Bentley's Technical Support Group requests that you please confine any comments you have on this Wiki entry to this "Comments or Corrections?" section. THANK YOU!

    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