Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
OpenBuildings | AECOsim | Speedikon
  • Product Communities
  • Building
  • OpenBuildings | AECOsim | Speedikon
  • More
  • Cancel
OpenBuildings | AECOsim | Speedikon
OpenBuildings | AECOsim | Speedikon Wiki Using a Display Rule to apply a fill color to 3D elements
    • Building Design - Wiki
    • -OpenBuildings Designer
      • +What's New
      • FAQ - OpenBuildings Designer CONNECT Edition
      • Released Versions - OpenBuildings Designer
      • IFC4 Self-certification
      • +Installation - OpenBuildings Designer
      • +Migration - Upgrading from earlier versions
      • +Configuration - OpenBuildings Designer
      • +General - OpenBuildings Designer
      • +User Interface - OpenBuildings Designer
      • +Architectural Design - OpenBuildings Designer
      • +Structural Design - OpenBuildings Designer
      • +ProStructures Interoperability - OpenBuildings Designer
      • +Electrical Annotation and Design - OpenBuildings Designer
      • +Datasets and Content - OpenBuildings Designer
      • +DataGroup System - OpenBuildings Designer
      • +Floor Management - OpenBuildings Designer
      • +Grid Systems - OpenBuildings Designer
      • -Drawing Views - OpenBuildings Designer
        • Disable the Drawing boundary callouts from the model
        • Make color table of the object in the reference file same as the model in the Master file
        • Element went missing in the cached visible Edge
        • Customize The Detailing Symbol Style In The Place Callout Tools Dialog
        • Differences between Dynamic and Cached representations
        • Dynamic View Creation Affected by Compress Options
        • Elements In The Drawing View's Background Are Highlighted
        • Hide/Unhide Cached Elements
        • How to change the default drawing boundary in sheet view ?
        • How to display a hatch or pattern in a 3D Model or 2D drawing using a Part’s assigned rendering material
        • How to use level overrides with cached drawings referenced into sheets
        • How to apply Cut Plane hatch/patterning in a drawing
        • Incorrect display of complex solids in cached drawing output
        • Incorrect Structural member widget length in drawing
        • Large File Sizes in OpenBuildings Designer Projects
        • Missing edges after saving cached view to separate DGN file using the To Tolerance accuracy setting
        • Missing resymbolized graphics in promoted Drawing View
        • Missing section symbology at clipped Clip Volume boundaries
        • Modification of Annotation Scale in DWG mode
        • Reference Visible Edges setting displays as "Child References Cached"
        • Referenced graphics from 3D model are missing in Drawing Model
        • Selecting a specific Marker in a congested area
        • Using a Display Rule to apply a fill color to 3D elements
        • Creating and Applying Display Style Rules to Elements
        • Customize the default Visible Edges Output
        • For Dynamic Visible Edge some element gone missing
        • Geometry not hiding elements below when drawing is cached
        • How can I display slope & invert level in drawing views as annotation?
        • Cannot Place Text Along Element in Cached View Visible Edges
        • Change material palette of the elements from the Family/Part editor
        • Change the 'DrawingIdentifier' and 'Sheet number' of a Callout after placing it
        • How to change stair break line Representation?
        • How to change the color of any element in 2D while printing it?
        • How to create Custom Labels using Rules?
        • Moveable Structural Widget
        • Using both transparency and level display in a referenced drawing view
        • Vertical bracing labels are offset from the bracing itself in Plan view
      • +Annotation - OpenBuildings Designer
      • +Import/Export- OpenBuildings Designer
      • +ProjectWise Integration - OpenBuildings Designer
      • +Customization - OpenBuildings
      • +Platform Tools - OpenBuildings Designer
      • +Plumbing Design
      • Electrical Designer
      • +Learning Tips
      • +HVAC Design - OpenBuildings Designer
      • +Bentley i-model Composition Server
      • +OpenBuildings Designer Accreditation Program
    • +OpenBuildings Energy Simulator
    • +GenerativeComponents
    • OpenBuildings Station Designer
    • +OpenBuildings Speedikon + Bentley Speedikon V8i
    • +Bentley Facilities Space Planner CONNECT Edition
    • +AECOsim Building Designer
    • +iModel Plugin for Revit
    • +Social Distance Assessments
    • Working from home with OpenBuildings products
    • Working from home with Speedikon
    • +Special Interest Group (SIG) FAQs
    • +Structural Modeler_PS
    • +Configuration Explorer
    • +Legacy Products

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

    Using a Display Rule to apply a fill color to 3D elements

      Product(s): OpenBuildings Designer
      Version(s): CONNECT Edition
      Area: Drawing Views
      Subarea: Display Rules

    Problem

    How can I apply a fill color to specific elements using a Display Rule, regardless of the element type? I've created a custom Display Rule that applies a specific fill color based on a DataGroup property value, but most of the 3D elements in my file do not respond unlike 2D shapes. The 3D elements in my files typically consist of Forms, Solids, Smart Solids, etc., and while I can change the entire element color using a Display Rule I prefer to leave the edges black and fill in the shaded faces.

    Solution

    While 2D shapes can honor a fill override as long as the Fill value is set to Opaque, most 3D elements cannot or do not honor a fill override. These elements can be divided into two categories:

    1. 3D solids may not respond to a fill override because they are often composed of linear elements, where the concept of a fill does not exist. For example, using Building Element Info we can see that the default structure for Primitive solids such as Slabs or Extrusions is shapes with connecting lines between them:

    Or arcs and lines for Spheres and Cylinders for cones:

    The underlying structure of a Smart Solid is entirely composed of linear elements such as lines.

    While Feature Solids are Type 106 elements:


    When modifying a Primitive solid by adding a cut or chamfer, or using the Convert To Solid command, the Primitive solid is converted into a Smart Solid and so the underlying structure is changed to linear elements.


    2. Forms, such as Walls, Slabs, Free Forms, etc., are composed of shapes, but those shapes do not have fill enabled.

    When adding a cut or opening the underlying structure remains the same but fill is still not enabled.

    So in order for a Form to respect a fill setting you would have to change each individual shape's fill value from None to Opaque which can be accomplished using Building Element Info.



    If a Form is modified by adding a feature such as a Chamfer or Fillet, or otherwise converted into a Smart Solid, then as noted above the underlying structure will be composed of linear elements which cannot have a fill applied.


    However, a better 
    solution for this particular workflow is to change your Display Rule's Action from Fill to using a shaded Display Style that has different settings than the active Display Style where your Display Rule is applied. This way only elements that meet the required criteria (based on DataGroup property values) are affected. For example:

    - These are the native element colors for a Wall, Slab and Beam, in this case yellow, magenta and green, shown using the Display Style "Illustration With Shadows".

    - This is a custom Display Style that sets Element color to Cyan and Edges color to dark grey with lineweight 2 (different than element color).

    - This is another custom display style that uses the same Edge setting as SMOOTH2 but no color override, but it also includes a Display Rule where "Is Wall" is defined as the Condition and Display Style SMOOTH2 is defined as the Action.

    The end result is that only the Wall element displays as Cyan but with the same Edge settings as all other elements.

    • Share
    • History
    • More
    • Cancel
    • Steve Cocchi Created by Bentley Colleague Communities MVP Steve Cocchi
    • When: Wed, Mar 25 2020 2:02 PM
    • Shivam Soni Last revision by Bentley Colleague Shivam Soni
    • When: Thu, Mar 31 2022 8:39 AM
    • Revisions: 6
    • 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

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