Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
AutoPLANT | OpenPlant | PlantWise
  • Product Communities
  • More
AutoPLANT | OpenPlant | PlantWise
AutoPLANT | OpenPlant | PlantWise Wiki How to define Revision History in Custom Borders [TN]
    • Sign in
    • -AutoPLANT | Bentley Raceway and Cable Management | OpenPlant | PlantWise Wiki
      • +OpenPlant
      • -Bentley AutoPLANT
        • AutoPLANT Product Group Compatibility
        • +AutoPLANT Modeler CONNECT Edition
        • +AutoPLANT Modeler V8i
        • +AutoPLANT Piping
        • +AutoPLANT Equipment
        • +AutoPLANT I&W
        • -AutoPLANT P&ID
          • APPID SS2: Unhandled Exception Errors in CATT Dialogs
          • APPID: Error 2727 - The directory entry 'ACADDIR1' does not exist in the Directory table.
          • APPID: How do I increase the distance between the Hand Valve and End Codes?
          • APPID: How do I modify the P&ID Lists?
          • APPID: How to set default value for the Pipe Settings Dialog
          • Auto Plant Alert : This drawing is an export copy...
          • AutoPLANT Equipment - Equipment: Setting colors
          • AutoPLANT PID [FAQ]
          • Certain AutoPLANT tables are not created when creating new project from current.
          • Does AutoPLANT P&ID SelectSeries 3 support Windows XP 64 bit?
          • Error Creating Control APAcadUtils2.Symbolmanager [TN]
          • How do I change the slant of text for Piping Annotation in AutoPLANT P&ID?
          • How Do I Create A New Custom Default Style And Font To Be Used In AutoPLANT PID [TN]
          • How do I customize insulation insertion and attributes
          • How Do I Find And Erase Bad Data Points On Drawings Causing LyntitypP Nil And StringP Nil Errors [TN]
          • How Do I Load PID Menus After A New Install [TN]
          • How do I modify Light Instrument Colors?
          • How do I move a P&ID drawing to another Project?
          • How do I turn on IAREA to Automatically Populate when a Control Valve is placed?
          • How Do I Upgrade Previous Versions Of The CATT Dialogs To Work In V8i Format [TN]
          • How To Add New Actuators For Control Valves [TN]
          • How to Annotate Nozzle as only Nozzle number
          • How to configure AutoPLANT P&ID V8i SS2 for use with customized CATT dialogs [TN]
          • How To Convert PID Menu Files To AutoCADs CUI Menu System [TN]
          • How To Create And Add A New Control Valve In PID [TN]
          • How To Create And Use Custom Borders In PID [TN]
          • How To Define Custom Layers For Custom Components [TN]
          • How to define Revision History in Custom Borders [TN]
          • How to download the AutoCAD 2012 VBA Enabler for AutoPLANT P&ID Find Tag and other VBA Dialog use?
          • How to I add a Hyperlink to an external file on a component's annotation text?
          • How To Modify Or Add Custom Fields In PIDs Pipe Settings Dialog Box [TN]
          • How To Modify Process Line Annotation String In AutoPLANT PID [TN]
          • How To Open An Existing PID With ProjectWise Explorer [TN]
          • How to script an install for the Process and Instrumentation Workgroup?
          • How to update SPEC using CATT command.
          • Install Order For AutoPLANT PID XM Edition [TN]
          • Project database upgrade options in Project Administrator
          • ProjectDB
          • Tool for converting AutoPLANT DBF files to Db3 format
          • Where are AutoPLANT P&ID Assemblies stored?
        • +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
    • How to Associate the Specification Based on Service in OpenPlant Modeler Connect

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

    How to define Revision History in Custom Borders [TN]

       
      Applies To 
       
      Product(s): AutoPLANT P&ID
      Version(s):
      Environment:  N/A
      Area:  N/A
      Subarea:  N/A
      Original Author: bmoberg, Bentley Technical Support Group
       

     

     

     

     

     

     

     

     

    Overview

    This Technical Bulletin will describe how to define Revision History in a custom border to be used in AutoPLANT P&ID drawings. AutoPLANT P&ID was not designed to support Revision History in its borders as attributed tokens.  The steps below include a customization to the software code to support this new functionality.

     

    Step One – Project Administration Modifications/Additions.  - Project Administrator

    1. In Project Administrator browse to the Project>Database>Databases>Projdata and set AutoPLANT P&ID and Project Administrator as a Registered Application for the Doc_Rev table as shown below:



       

    2. Add Revision fields to the AT_DWG_NAME System Query. This is the query that controls what data is passed between the project database and the AutoPLANT P&ID border.  Any fields to be assigned to a border token must first be added in this view.
      1. In Project Administrator browse to the Project>Database>Databases>AT_Views
      2. Select AT_DWG_NAME view and select the Edit button.
      3. Select the Joins tab and add the Doc_Rev table using the Doc_id to Doc_id join as shown below:


      4. Save and Exit to write the changes to the database schema.
      5. Edit the AT_DWG_NAME view again and this time select the Fields tab.  Select the fields you want to be tokens for the Revision section of the border as shown below:


      6. Save and Exit Project Administrator.




    Step Two: Modification of the Border AutoCAD Block.

    Add new customized Revision Attributes to border. Notice the new format.
    REV:1 = Token to pull the REV value for the 1st revision.

    REV:1,ORD:1,REV_BY:1 – First Revision
    REV:2,ORD:2,REV_BY:2 – Second Revision
    REV:3,ORD:3,REV_BY:3 – Third Revision



     


    Step Three:  Add lisp code to pid-sup.lsp.

    1. Browse to and open the Pid-sup.lsp file located in the following path:

      C:\Documents and Settings\All Users\Application Data\Bentley\Plant V8i\P&ID\

    2. Search for the “Drawing Initialization” section and place the code directly above this section as shown below:


      Custom Code goes here…
      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
      ;;;
      ;;; Drawing initialization
      ;;;
      ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



    Click the link below to view the custom AutoCAD Lisp functionality to be added to the Pid-sup.lsp file.  Right click the link to download and save the file.

    Lisp code for Revision History in Custom Borders

     

     

    See Also

    Plant TechNotes And FAQs

    Product TechNotes and FAQs

     

    External Links

    Bentley Technical Support KnowledgeBase

    Bentley LEARN Server

    Comments or Corrections?

    Bentley's Technical Support Group requests that you please submit any comments you have on this Wiki article in the "Comments" area below. THANK YOU!

     

     

    • TechNote
    • AutoPLANT P&ID
    • Share
    • History
    • More
    • Cancel
    • Matt_P Created by Communities MVP Matt_P
    • When: Fri, Sep 17 2010 6:07 PM
    • Elisabeth Pry Last revision by Bentley Colleague Elisabeth Pry
    • When: Mon, Jun 17 2013 2:43 PM
    • Revisions: 3
    • 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