Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
MicroStation
  • Product Communities
  • More
MicroStation
[Archived] AskInga Wiki Toggle fill display and active fill type with this VBA
    • Sign in

    • -AskInga
      • +3D MicroStation
      • +AccuDraw Secrets
      • +Animation - Rendering
      • +Behind The Scenes
      • +Cells
      • +Colours
      • +Conversion - Translation
      • +Coordinate Input
      • +Design Settings
      • +Dimensions
      • +DWG
      • +EDG
      • +Element Manipulation
      • -Element Properties
        • Alternate method to change element attributes
        • Change non-snappable elements to snappable in V7
        • Change non-snappable elements to snappable in V8 2004 Edition
        • Change non-snappable elements to snappable in V8 XM Edition
        • Customize quick info dialog
        • Display element ranges
        • Drag and drop into attributes tool box to match attributes
        • Drill into your file with Element Manager
        • Element direction
        • Element height
        • Element information by ID number
        • Element quick info
        • Element remapping macro
        • Extended element info settings
        • Keyin to lock the active element template
        • Match element attributes using the ALT key
        • Match stuff under your cursor in V8.5
        • Matching hatch symbology
        • Open the attribute tool box items under your cursor
        • Place an element to mask the graphics underneath
        • Set symbology of new elements
        • Smartline Join Elements keyin
        • The old element information dialog
        • Toggle fill display and active fill type with this VBA
        • Transparent shapes in MicroStation V8
        • Watch those associative patterns
      • +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. 

    Toggle fill display and active fill type with this VBA

    AskInga logo

    Original Article Date: June 6, 2005 

    With thanks to Peter Terrat for sharing these excellent macros. One is used for turning the fill display on/off, while the other is used to set the active fill type back to none. How can you live without them?

    Download 251.zip and extract prj_FillToggles.mvba from the zip file.
    Place the mvba in the folder pointed to by MS_VBASEARCHDIRECTORIES.
    Keyin vba load prj_FillToggles to load the project, or...
    Configure MS_VBAAUTOLOADPROJECTS to automatically load the mvba project upon startup.
    Keyin vba run ToggleFillSetting to run the fill toggle macro and vba run ToggleActiveFill to set the active fill. Alternativly,
    Place these two keyins on a couople of function keys or custom button for quick and easy access.

    The ToggleFillSetting macro will toggle the display of the fill on and off as seen in the animation below. It will also report the fill display status in the Message Center:

    The ToggleActiveFill macro will change your active fill to None when it's been to Opaque or Outlined in any element placement or modification tool. Again, it will display the status of the Active Fill in the Message Center.

    This program is supplied as is. This program does not come with support. 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 #251

    • Askinga
    • Element Properties
    • FreewareShareware
    • Article
    • Share
    • History
    • More
    • Cancel
    • Hannah Blye Created by Hannah Blye
    • When: Wed, May 28 2008 4:11 PM
    • Inga Morozoff Last revision by Bentley Colleague Inga Morozoff
    • When: Mon, Jun 14 2010 8:47 AM
    • Revisions: 5
    • Comments: 0
    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