Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenGround | gINT | Keynetix
  • Product Communities
OpenGround | gINT | Keynetix
gINT | Keynetix Wiki How To use Text Styling to Make part of the Geology Description Bold
    • Sign In
    • -gINT | Keynetix Wiki
      • +gINT
      • +gINT Collector
      • +gINT Civil Tools
      • -Keynetix
        • +Installing or Upgrading to CONNECT Edition
        • +Archive Webinars
        • +HoleBASE
        • +HoleBASE Civil Extension
        • +HoleBASE Data Entry
        • +HoleBASE Excel Extension
        • -HoleBASE Template Studio
          • +HoleBASE Template Studio:Getting Started
          • -Template Studio: FAQs
            • +Designing Depth Related Areas
            • -Expressions
              • Excel Functions
              • How To Display a Full Location Type Rather than an Abbreviation
              • How To edit the Stratum Detail Descriptions to include the depth information
              • How to show top and base levels in the 'level' column.
              • How To use Text Styling to Make part of the Geology Description Bold
              • Is there a common list of requested Expressions available?
              • Log Only Functions
              • Mathematical Functions
              • My Expression in Template Studio shows the wrong date
              • Run Time Functions
              • Text Styling
              • Why do the numbered remarks in my data not appear on new lines on my templates?
            • +Loading and Saving Templates
          • +HoleBASE Template Studio:How Tos
          • +HoleBASE Template Studio:Issues
          • HoleBASE Template Studio Release Notes
        • +KeyAGS
        • +KeyLAB
        • +Keynetix Component Downloads
        • +Working from Home with Keynetix Products
        • Hardware Specifications and Recommendations
        • Supported Platforms

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

    How To use Text Styling to Make part of the Geology Description Bold

      Product(s): Keynetix
      Version(s): 1.0
      Area: Assist

    How To use Text Styling to Make part of the Geology Description Bold

    Explanation

    The default expression that is used in Template Studio to bring out the geology description also brings out the geology code. We are often asked how to make this code be bold so that it stands out. We can do this using the text style function.

    Process

    The default expression that comes out of the geology description item in Template Studio is as follows;

    [StratumDetails.Description]+if(len([StratumDetails.Description]) > 0 and len([StratumDetails.GeologyCode]) > 0,'',' ')+'('+[StratumDetails.GeologyCode]+')'

    The part that is in red above is the part that will bring out the geology code.

    To change this to bold we will place this inside of the textstyle function as below;

    textStyle('('+[StratumDetails.GeologyCode]+')','900','Normal','000000')

    This will effect only the text above, the rest of the description will appear as normal. The full expression will be as below;

    [StratumDetails.Description]+if(len([StratumDetails.Description]) > 0 and len([StratumDetails.GeologyCode]) > 0,'',' ')+textStyle('('+[StratumDetails.GeologyCode]+')','900','Normal','000000')

    This would appear as this on the template;

    Further Information

    For more information on all of the stylings that can be applied by the textstyle function including colouring, please see the article on text styling in the user guide https://communities.bentley.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-05/8484.MissingImage.png.

    • Migrated
    • Share
    • History
    • More
    • Cancel
    • wiki.author Created by Bentley Colleague wiki.author
    • When: Tue, Jun 9 2020 9:29 PM
    • Revisions: 1
    • 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

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