Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
OpenPlant | AutoPLANT
  • Product Communities
OpenPlant | AutoPLANT
OpenPlant | AutoPLANT Wiki How To Pre-Define What Layer Colors Will Be Assigned Whenusing Color By Layer [TN]
    • Sign In
    • -OpenPlant | AutoPLANT Wiki
      • +OpenPlant
      • -Bentley AutoPLANT
        • AutoPLANT Product Group Compatibility
        • +AutoPLANT Modeler CONNECT Edition
        • +AutoPLANT Modeler V8i
        • -AutoPLANT Piping
          • Advanced Routing in AutoPLANT Modeler
          • +AutoCAD - AutoPLANT Piping
          • +Component - AutoPLANT Piping
          • +Database - AutoPLANT Piping
          • +General - AutoPLANT Piping
          • How to Place Sloping Piping in AutoPLANT Modeler
          • +Open/Save - AutoPLANT Piping
          • +Processing - AutoPLANT Piping
          • +Reports - AutoPlant Piping
          • -Settings/Attributes - AutoPlant Piping
            • Add a prompt for topworks when placing a control valve [TN]
            • Adding A New Descriptive Field To Updateable Component Data
            • Adding Drafter Instructions To Component Data [TN]
            • Adding “Existing” attribute to component preferences menu
            • Components Are Not Updating When Using Update From Spec [TN]
            • How To Pre-Define What Layer Colors Will Be Assigned Whenusing Color By Layer [TN]
            • How to show calculated wafer bolt length in inch in Mmetric project.
            • How to turn "ON" the setting Use Symbols in Drawing Preference per default
            • Repairing Missing Component Data In AutoPLANT 3D 2004 Edition [CS]
            • Set Up Default Unit Type Style And Precision For AutoPLANT Documents [TN]
            • The AutoPLANT Selections Dialog [TN]
          • +Tools - AutoPlant Piping
        • +AutoPLANT Equipment
        • +AutoPLANT I&W
        • +AutoPLANT P&ID
        • +AutoPLANT Isometrics
        • +AutoPLANT AutoISOGEN
        • +Bentley Data Manager
        • +Vision/Document Manager
        • +Drawing Flattener
        • +DataSheets
        • +Specification Generator
        • +ProjectWise Integration
      • +Bentley Navigator
      • +Bentley PlantSpace
      • +Plant Project Tools
      • +Bentley Raceway and Cable Management
      • i-model Composition Service for S3D
      • Working from home with OpenPlant
      • Working from home with Bentley Raceway and Cable Management
      • Working from home with AutoPLANT Modeler
      • Your Feedback is important to us!
    • Learning Content for OpenPlant

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

    How To Pre-Define What Layer Colors Will Be Assigned Whenusing Color By Layer [TN]

      Applies To 
      Product(s): AutoPLANT Piping
      Version(s): V8i; 08.11.05.36
      Environment:  N/A
      Area:  N/A
      Subarea:  N/A
      Original Author: Bentley Technical Support Group

     Overview

    There have been requests to be able to assign color layers by reading the color.ini. For example, if a user selected a new line number and service, when they inserted components it would read the color.ini table for "colorbyservice" and not only create the new layer but set the color accordingly. The customization below makes this possible.

    Solution

    1. Copy the following file:

      ..\program files\bentley\plant (v8i or xm)\modules\base\common\compprop.ebs

    2. Copy it to the following folder:

      ..\project name\config\modules\base\common\

      Note: The folders "base" and "common" won't exist. You'll have to create them before copying the file.

    3. Open the compprop.ebs file in notepad.
    4. Search for the following lines:

      If(status = at_SUCCESS) Then 
      tempLayer = compLineNumber 
      status = at_PipingSystem_getColorByValue(layerColor, "ByLineNo", compLineNumber) 
      End If

    5. Change it to:

      If(status = at_SUCCESS) Then 
      tempLayer = compLineNumber 
      status = at_Component_getString(compService, compID, "SERVICE") 
      status = at_PipingSystem_getColorByValue(layerColor,"ByService", compService) 
      End If
    6. Save and close.

     Procedure for use in AutoPLANT:

    1. Restart AutoPLANT.
    2. Start a new drawing.
    3. Set the layer and service.

      Note: Service colors must be defined in the color.ini file before creating the new drawing. Otherwise, the following command should be used when modifying existing drawings: (at_pipingsystemcolortable_reset)

    4. Insert a component.
    5. Set the layer and service to something different.
    6. Insert another component (not connecting).
    7. Color should change to the correct service color.

    Component Color must be set to "Bylayer" 
    Component Layer must be set to "By Line Number" 
    Data Mode should be set to "From Settings" when joining to a pipe with a different line number

     

    See Also

    Product TechNotes and FAQs

    Plant TechNotes And FAQs

    External Links

    Bentley Technical Support KnowledgeBase

    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!

     

     

    • AutoPLANT Piping
    • TechNotes
    • Share
    • History
    • More
    • Cancel
    • Jordan Stierly Created by Jordan Stierly
    • When: Mon, Aug 16 2010 9:11 AM
    • Joey Last revision by Bentley Colleague Joey
    • When: Fri, Jun 24 2016 2:17 PM
    • 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

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