Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
OpenPlant | AutoPLANT
  • Product Communities
  • More
OpenPlant | AutoPLANT
OpenPlant | AutoPLANT Wiki How do I change the slant of text for Piping Annotation in AutoPLANT P&ID?
    • Sign in
    • -OpenPlant | AutoPLANT 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: Error 2727 - The directory entry 'ACADDIR1' does not exist in the Directory table.
          • AutoPLANT Equipment - Equipment: Setting colors
          • Certain AutoPLANT tables are not created when creating new project from current.
          • How do I change the slant of text for Piping Annotation in AutoPLANT P&ID?
          • How do I customize insulation insertion and attributes
          • 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 To Add New Actuators For Control Valves [TN]
          • 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 Define Custom Layers For Custom Components [TN]
          • How to download the AutoCAD 2012 VBA Enabler for AutoPLANT P&ID Find Tag and other VBA Dialog use?
          • How to script an install for the Process and Instrumentation Workgroup?
          • Install Order For AutoPLANT PID XM Edition [TN]
          • Project database upgrade options in Project Administrator
          • ProjectDB
          • 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
      • Your Feedback is important to us!

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

    How do I change the slant of text for Piping Annotation in AutoPLANT P&ID?

       
      Applies To 
       
      Product(s): AutoPLANT P&ID
      Version(s): V8i
      Environment:  N\A
      Area:  N\A
      Subarea:  N\A
      Original Author: Brandon Moberg, Bentley Product Advantage Group
       

    1. Open the Pid-Sup.lsp File.
    2. Search for the Text Styles section and modify the textstyle name to your custom default name.
    3. To modify the angle (oblique) default to an angle other than 0 for custom annotation add the following section in the Pid-Sup.lsp file:

    Search for Drawing Initialization. Add the following just above this section.

    (defun make_text (align pt ang tstr lyr style ht width )
    (setq style (if style style (if txtstyle txtstyle "standard")))
    (setq obang (if obang obang 0.26)) ;;;;NOTE THIS IS THE ANGLE VALUE CALCULATED. THIS EQUALS 15 DEGREE ANGLE.
    (entmake (list '(0 . "text")
    (cons 1 tstr)
    (cons 7 style)
    (cons 8 (if lyr lyr (getvar "clayer")))
    '(10 0 0 0)
    (cons 11 (if pt pt (@)))
    (cons 40 (if ht ht (getvar "textsize")))
    (cons 50 (if ang ang 0.0))
    (cons 51 obang)
    (if width (cons 41 width) (assoc 41 (tblsearch "style" style)) )
    (cons 72 align) ; 1-center,4-middle
    )
    )
    (entlast)
    )

    • piping
    • text
    • slant
    • v8i
    • Autoplant PID
    • Customization
    • Share
    • History
    • More
    • Cancel
    • bmoberg Created by Bentley Colleague bmoberg
    • When: Wed, Apr 5 2017 12:35 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

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