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 to Run AutoCAD Script (.SCR) on Generated dwg Isometrics
    • Sign in
    • -OpenPlant | AutoPLANT Wiki
      • -OpenPlant
        • +CONNECT Services - OpenPlant
        • +Example Configuration - CONNECT Edition
        • +Installations - OpenPlant CONNECT Edition Applications
        • +OpenPlant Download Links & Videos
        • OpenPlant Product Compatibility
        • +OpenPlant Modeler CONNECT
        • +OpenPlant PID CONNECT
        • +OpenPlant Isometrics Manager CONNECT
        • +OpenPlant Orthographics Manager CONNECT
        • +OpenPlant Support Engineering CONNECT
        • +OpenPlant Project Administrator CONNECT
        • +OpenPlant CONNECT Edition-PlantSight Integration
        • +OpenPlant Modeler v8i
        • -OpenPlant Isometrics Manager v8i
          • +OpenPlant Isometrics Manager for OpenPlant
          • -OpenPlant Isometrics Manager for AutoPLANT
            • Installation/Upgradation Steps of OpenPlant Isometrics Manager for AutoPLANT
            • +Errors, Logs, Messages, Crashes - OpenPlant Isometrics Manager for AutoPLANT
            • +Open/Save - OpenPlant Isometrics Manager for AutoPLANT
            • -Processing - OpenPlant Isometrics Manager for AutoPLANT
              • How to Create Special Stamps using Detail Sketches in OpenPlant Isometrics Manager
              • How to Create Special Stamps using Reports in OpenPlant Isometrics Manager
              • How to Compress Welds for Slip On Flange
              • How to Change Color, Line Style and Line Weight for OpenPlant Isometrics DWG Output
              • How to Set Required Line Weight in DWG Format Isometrics Model
              • How to Map OPIM (MicroStation) Line Style with dwg (AutoCAD) Line Style
              • How to Export Bill Of Material In CSV/Excel Format for AutoPLANT
              • How to Fix Mating Flange Orientation Direction in DWG for AutoPLANT - OpenPlant Isometrics
              • How to Map New AutoPLANT Component
              • How to Map New AutoPLANT Relationship in OpenPlant Isometrics Manager Schema
              • How to Map PDW To OpenPlant Isometrics Manager Classes
              • How to Map Tracing Property for Use in Open Plant Isometrics
              • How to Map Pipe Nozzle Properties for use in OpenPlant Isometrics Manager
              • How to Run AutoCAD Script (.SCR) on Generated dwg Isometrics
              • How to Use the Isometric Cleanup When the Output Format is DWG, PDF
            • +Settings/Attributes - OpenPlant Isometrics Manager for AutoPLANT
          • +Release Notes - OpenPlant Isometrics Manager
          • OpenPlant Isometrics Manager [FAQ]
        • +OpenPlant Project Administrator v8i
        • +OpenPlant PID v8i
        • +OpenPlant Orthographics Manager v8i
        • +OpenPlant Support Engineering v8i
        • +OpenPlant ModelServer v8i
        • +OpenPlant Reporting v8i
        • How to Connect with Bentley Technical Support Team using Microsoft Teams
        • How to Connect with Bentley Technical Support Team using Microsoft Teams via Browser
        • How to get list of installed applications/programs on Windows Machine using Command Prompt.
        • How to get list of Windows Updates installed on the machine using Command Prompt.
      • +Bentley AutoPLANT
      • +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 to Run AutoCAD Script (.SCR) on Generated dwg Isometrics

    Applies To
    Product(s): OpenPlant Isometrics Manager
    Version(s): 08.11.11.XXX (SS6)
    Environment: Windows 7/8.1/10 (64 bit)
    Area: Processing
    Subarea:
    Original Author: Abhijit Bute Bentley Product Advantage Group

    Background

    Some user may have requirement to run AutoCAD command by batch process on generated isometrics so that they can add extra information on generated isometrics by using AutoCAD Script (***.scr) file.

    Following steps will help to run AutoCAD script while processing isometric in DWG format.

    Steps to Accomplish

    Edit Isoextractor.bat file.

    1. Go to following location:
      C:\Program Files (x86) \Bentley\OpenPlantIsometricsManager V8i\OpenPlantIsometricsManager\IsoExtractor
    2. Copy Isoextarctor.bat file and rename previous Isoextarctor.bat file to Org.Isoextarctor.txt file.
    3. Open IsoExtractor.bat file for editing (right click on edit button)
    4. Add following entries:
      IF [%4] == [] goto openseed

      :genIso
      OpenPlantIsoExtractor.exe "-wc%config%" "-ws_USTN_PROJECTSROOT=%PROJROOT%" "-wu%~1" "-wp%~2" "-wsPW_DISABLE_INTEGRATION=1" "-ws_SP_DOCMGMT=1" "-wsPW_MG_CFG=%PW_MG_CFG%" -WAISOEXT "-wsSTYLE=%~3' '%~4'

      set a=%~4
      set aa=%a:.l00=*.dwg%
      set dwg=%aa:l00=dgn%
      for %%i in ("%dwg%") do START C:\"Program Files"\"Autodesk\AutoCAD 2016"\acad.exe "%%i" /b C:\TEST\INSERT-proper.scr
      goto End

      :openIso
      START "C:\Program Files\Autodesk\AutoCAD 2016\acad.exe" "%~4"
      goto End

      :openseed
      OpenPlantIsoExtractor.exe "-wc%config%" "-ws_USTN_PROJECTSROOT=%PROJROOT%" "-wu%~1" "-wp%~2" "-wsPW_DISABLE_INTEGRATION=1" "-      ws_SP_DOCMGMT=1" "-wsPW_MG_CFG=%PW_MG_CFG%" -WAISOEXT "-wsSTYLE=%~3' '%~4'  
      goto End 

      :getConfigData
      OpenPlantIsoExtractor.exe "-wc%config%" "-ws_USTN_PROJECTSROOT=%PROJROOT%" "-wu%~1" "-wp%~2" -WABentley.Isometrics.MSAddIn "%~3" "%~4"
      goto End
      :End 
      exit 0
    5. Save the isoextractor.bat file.
    6. Go to project location and open “Isoproj.cfg” file.
      Ex: %project%\Config\OpenPlant\Isometrics
    7. L00 AND DGN file path should be on same location

      Note: If isometric generation path change to customize path, then L00 files path should be on same path.
    8. Generate isometric by using following settings.



      Note:
      “Do not Split” option not work here. Use anyone above highlighted option as per requirement.
    9. For using Do Not Split option, need to edit Isoextractor.bat file as per below.
      set aa=%a:.l00=-*.dwg%
      change to
      set aa=%a:.l00=*.dwg%
    10. Save the file and generate isometric by using do not split option.

    See Also

    Comments or Corrections?

    Bentley's Product Advantage Group requests that you please confine any comments you have on this Wiki entry to this Comments or Corrections?" section. THANK YOU!

    • OPIM
    • Post Processing
    • OpenPlant Isometrics Manager
    • script
    • Share
    • History
    • More
    • Cancel
    • Abhijit Bute Created by Bentley Colleague Abhijit Bute
    • When: Wed, Jun 7 2017 4:46 PM
    • Kestutis Mitkus Last revision by Bentley Colleague Kestutis Mitkus
    • When: Wed, Dec 19 2018 6:00 AM
    • Revisions: 7
    • 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