Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
OpenBuildings | AECOsim | speedikon | LEGION
  • Product Communities
  • Building
  • OpenBuildings | AECOsim | speedikon | LEGION
  • More
  • Cancel
OpenBuildings | AECOsim | speedikon | LEGION
OpenBuildings | AECOsim | speedikon | LEGION Wiki Batch Update of Cached Visible Edges (CVE) in AECOsim Building Designer
    • Sign in
    • Building Design - Wiki
    • +OpenBuildings Designer
    • +AECOsim Building Designer
    • +OpenBuildings Energy Simulator
    • +GenerativeComponents
    • +Bentley Facilities
    • +Bentley speedikon
    • +Bentley LEGION
    • +iModel Plugin for Revit Overview
    • +Special Interest Group (SIG) FAQs
    • CIS/2 Analysis Data
    • Managed Data Item
    • -Legacy Products
      • +Bentley Architecture
      • Bentley Building Electrical Systems
      • Bentley Building Mechanical Systems
      • +Bentley CloudWorx
      • Bentley Structural Modeler
      • +General BIM Information
      • +Have You Tried This?
      • +Legacy Product Tips And Tricks
      • +TechNotes And FAQs
      • -Tips and Tricks
        • +2-D Drafting Tips and Tricks
        • Batch Update of Cached Visible Edges (CVE) in AECOsim Building Designer
        • Closing a Sweep in Parametric Cell Studio
        • +Compound Cell Tips and Tricks
        • +Curtain Wall Tips and Tricks
        • +Datagroup System Tips and Tricks
        • +Plumbing Fixtures Tips and Tricks
        • +Spaces Tips and Tricks
        • Using the Building Primary Toolbar
        • +Wall Tips and Tricks
      • Unifying Walls
    • +Configuration Explorer

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

    Batch Update of Cached Visible Edges (CVE) in AECOsim Building Designer

    To anyone used to MicroStation's reference files constantly updating, the notion of caching a reference file's contents thus requiring manual intervention to update those contents may seem alien.

    However, whilst the use of Cached Visible Edges (CVE) is primarily recommended at this time to improve performance, it can offer a discipline to the information production process. 

    The Cached views in Drawing models do not necessarily need to be constantly updated every time a change in made to the source model(s). Making a conscious decision to update all of the CVE references at particular times offers the opportunity for structured project review rather than piecemeal revision.

    Updating CVEs via the reference dialog is too time consuming for regular use, the key-in 'reference visibleedges allmodels synchronizecache' is a quicker way. This can be added to a custom tool for ease of access.

    Once more than a couple of models are involved, this is still too time consuming.

    Any key-in sequence can be automated using the Batch Process utility, Utilities menu > Batch Process… :

    The Batch Process dialog opens. The basic sequence is:

    • Create and edit a new command file
    • Decide how to apply the process
    • Select the files to be processed

     So first, create a command file, this is nowhere near as difficult as it might sound…

      

    The command file is a text file that should be placed somewhere in your project folders.

    (Note that it is a good idea to have a folder called something like 'Resources' in every project to store project specific files like this.)

    The command file is simply a list of the commands that you would like to be executed in every file.

    I have called this example UpdateCVE.txt.

    (Note the use of CamelCase and no spaces in the filename, a bit geeky but avoids problems later, it is so easy for someone to inadvertently type two spaces in a filename and leave you spending ages wondering why things are not working)

    Now edit the file:

    You are faced with a blank and not especially informative canvas:

    #----------------------------------------------------------------------
    #
    #  Command file for batchprocess utility
    #
    #  This command file was originally copied from $(MS_DATA)cmdfiletemplate.txt.
    #  Command file information:
    #       - Lines that start with the '#' character are treated as comments and ignored.
    #
    #---------------------------------------------------------------------- 

    This is the standard header, every line of which is commented out so it has no effect.

    (Note that if you are new to scripting, be aware that adding comments to scripts at whatever level of complexity is good practice.)

    In this case, within the AECOsim Building Designer workflow, all we want to do it to update the CVEs in every Drawing Model that is referenced into the sheet files. The only line we need to add to the command file is 'reference visibleedges allmodels synchronizecache'.

    The resulting file looks like this:

    #----------------------------------------------------------------------
    #
    #  Command file for batchprocess utility
    #
    #  This command file was originally copied from $(MS_DATA)cmdfiletemplate.txt.
    #  Command file information:
    #       - Lines that start with the '#' character are treated as comments and ignored.
    #
    #---------------------------------------------------------------------- 

    #  Command to update cached visible edges in all models referenced to the listed files
    reference visibleedges allmodels synchronizecache

    When you run any kind of automated process it's always good to know how it went, so set the logging options:

    The default is:

    Click the magnifying glass to open the location. The batchprocess.log file will appear there.

    Set the Initial Model pop-down to All Models and the save the batch process job for future use. Saving at this stage gives you a job file that contains all of the settings you need that can be used on any project. This can be saved to a central location for reuse.

    Then add the files to be processed.

    If all the files you need are in one folder, just select them in the list and click Done. If they are spread over multiple folders expand the 'Select Files and Directories to process' dialog with the down arrow at the lower left.

      

    Having selected the project files to be processed save another copy of the job file named with the project/job code, e.g. 9999_UpdateCVE.bprc.

    Next time you need to update the project CVEs all you need to do is open the saved job to get the settings and the list of files. The list of files can be amended and resaved as the project progresses.

    Finally process the job:

    A list of models to be processed will be shown, click Process to continue. The list will show progress, AECOsim will  open each model listed, the process may take some time. The time taken for each model is shown giving an idea of how long the whole list will take.

    Obviously it is best to run this kind of process at a quiet time for the project to ensure no one is using any of the files being processed.

    The batch process log will look like this:

    Processing Batch Process Job: C:\_PROJECTS\9999\Resources\9999_UpdateCVE.bprc
    Start Time 30/05/2013 17:55:57

    BatchProcess: 45 files processed
                  Total processing time 4:57.4 seconds
    End Time 30/05/2013 18:01:00

    Bentley's CVE Scripts!

    If you look in:

    C:\ProgramData\Bentley\AECOsimBuildingDesigner V8i\WorkSpace\System\data

    or

    C:\ProgramData\Bentley\AECOsimBuildingDesigner V8i SS4\WorkSpace\System\data

    You will find three scripts ready to go:

    These enable you to switch batches of file between cached or dynamic references and update those that are cached.

    The first two change the Reference Visible Edges settings, the third synchronises cached models.

    RefVisibleEdge_Cache.txt, setting references to Cached, runs the command:

    REFERENCE VISIBLEEDGES ALLMODELS CACHED

    RefVisibleEdge_Dynamic.txt, setting references to Dynamic, runs the command:

    REFERENCE VISIBLEEDGES ALLMODELS DYNAMIC

    Running RefVisibleEdge_Sync.txt will update the cached visible edges in all processed files

    REFERENCE VISIBLEEDGES ALLMODELS SYNCHRONIZECACHE

    Note: In SS3 and SS4 RefVisibleEdge_Cache.txt, contains a couple of typos. This has been corrected in SS5 and above. The correct command that it should contain is the one listed above. 

    • Architecture
    • CVE
    • Cached Visible Edges
    • ABD
    • AECOsim Building Designer
    • Bentley Architecture
    • Bentley AECOsim Building Designer
    • Share
    • History
    • More
    • Cancel
    • Marc Thomas Created by Bentley Colleague Marc Thomas
    • When: Fri, May 31 2013 5:42 AM
    • Marc Thomas Last revision by Bentley Colleague Marc Thomas
    • When: Fri, Mar 6 2015 7:03 AM
    • Revisions: 7
    • Comments: 6
    Anonymous
    • Thomas Voghera
      Offline Thomas Voghera over 4 years ago

      Nice!! That I'll try!

      • Cancel
      • Up 0 Down
      • Reply
      • More
      • Cancel
    • Marc Thomas
      Offline Marc Thomas over 4 years ago

      Further to Thomas's request, we now have a 'Visible Edge Tools' toolbox in ABD SS6.

      • Cancel
      • Up 0 Down
      • Reply
      • More
      • Cancel
    • EiPM_Xavi
      Offline EiPM_Xavi over 4 years ago

      Great!

      • Cancel
      • Up 0 Down
      • Reply
      • More
      • Cancel
    • Eric Milberger
      Offline Eric Milberger over 5 years ago

      I would also say this should be fit into a particular place within a work flow.

      I don't like CACHED files when I am in a working mode.  As every file is changed all day long and that means I want to see what has changed.

      For me the Cached process fits best once I am on the downhill side of drawing or when I am dealing with revisions or milestones in drawings.

      • Cancel
      • Up 0 Down
      • Reply
      • More
      • Cancel
    • Thomas Voghera
      Offline Thomas Voghera over 6 years ago

      I think this should go into the interface as a tool bar.

      • Cancel
      • Up 0 Down
      • Reply
      • More
      • Cancel
    • dominic SEAH
      dominic SEAH over 6 years ago

      Nice one..!

      • Cancel
      • Up 0 Down
      • Reply
      • More
      • Cancel
    Recommended
    Related
    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • User Management
    • Licensing Manager
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

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