Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
MAXSURF | MOSES | SACS
  • Product Communities
MAXSURF | MOSES | SACS
MAXSURF | MOSES | SACS - Wiki MAXSURF Automation COM Troubleshooting
    • Sign In
    • -Offshore Support Solutions
      • -MAXSURF
        • +Installation - MAXSURF
        • +Licensing - MAXSURF
        • +MAXSURF Release Notes
        • MAXSURF Manuals
        • MAXSURF Learning Content
        • +MAXSURF Modeler
        • +MAXSURF Motions
        • -MAXSURF Stability
          • Analysis halted. Trim value exceeds 75 degrees
          • Sections not forming properly with skin thickness activated.
          • MAXSURF Stability Advanced - Connection with the licensing server has been lost
          • Convergence Error for Limiting KG Analysis
          • Crash Occurs During Analysis
          • Creating tank outside or above hull
          • Damage stability - added mass and lost buoyancy methods
          • Floodable Length Error
          • Getting Consistent Reports - Controlling Display of Rows and Columns in MAXSURF Stability Tables
          • MAXSURF Automation COM Troubleshooting
          • Snap Margin Line to Hull
          • Stability Criteria Reference from Different Model
          • Structures in Modeler are not Shown in Stability
        • MAXSURF VPP
        • +MAXSURF Tips & Tricks
        • Maxsurf and Multiframe License Consolidations
        • +MAXSURF Resistance
      • +MOSES
      • +Multiframe
      • +SACS
    • +Offshore Learning Resources
    • Working Remotely with MAXSURF, MOSES or SACS

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

    MAXSURF Automation COM Troubleshooting

    Getting MAXSURF to talk to other packages can be a really powerful thing. We can use it to generate reports, iterate and optimise designs or streamline exports.

    However, sometimes getting MAXSURF COM to work needs a couple of little tricks. These come down to letting your external package (Excel, Word, VB Script etc) to know where to find MAXSURF.

    There are two steps to ensuring the correct reference.

     - The VBA script normally uses Early Binding (links Excel to MAXSURF before we start the script), for this, we need to create a Reference and a Name that we'll use to refer to MAXSURF. When the version of MAXSURF changes, the new version will have a new file path and that old reference will be out of date.

    To fix this up, all we need to do is remove the old reference and recreate it to the new and correct executable. In Excel / Word VBA you'll find it under Tools | References

      

    So that fixes the problem if Excel is looking for MAXSURF in the wrong spot. However, there is also the chance that the Index, known as the Registry is not up to date.

    The steps to fix this are also pretty simple.

     - Open the Command Prompt as ADMNISTRATOR (the admin part is important!)

     - Run these two commands. First to remove the old entry out of the Registry, then to add the new entry back in.

    "C:\Program Files\Bentley\Offshore\MAXSURF CONNECT Edition V23\MaxsurfModeler64.exe" /unregserver

    "C:\Program Files\Bentley\Offshore\MAXSURF CONNECT Edition V23\MaxsurfModeler64.exe" /regserver

    Once you've done this step, go back and do the first step again.

    If that is all a bit confusing, here is a video stepping through it slowly.

    Troubleshooting MAXSURF COM Interface - YouTube

     

    • Share
    • History
    • More
    • Cancel
    • James Clarkson Created by James Clarkson
    • When: Wed, Apr 27 2022 12:36 AM
    • 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

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