Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
OpenBuildings | AECOsim | Speedikon
  • Product Communities
  • Building
  • OpenBuildings | AECOsim | Speedikon
  • More
  • Cancel
OpenBuildings | AECOsim | Speedikon
OpenBuildings | AECOsim | Speedikon Wiki VBA errors when using certain Structural or Mechanical tools
    • Sign in
    • Building Design - Wiki
    • +OpenBuildings Designer
    • +OpenBuildings Energy Simulator
    • +GenerativeComponents
    • OpenBuildings Station Designer
    • +OpenBuildings Speedikon + Bentley Speedikon V8i
    • +Bentley Facilities Space Planner CONNECT Edition
    • -AECOsim Building Designer
      • +Annotation - AECOsim Building Designer
      • +Architectural Design - AECOsim Building Designer
      • +ASM (Analytical Space Model)
      • +Configuration - AECOsim Building Designer
      • +DataGroup System - AECOsim Building Designer
      • +Dataset and Content - AECOsim Building Designer
      • +Drawing Extraction - AECOsim Building Designer
      • +Drawing Views - AECOsim Building Designer
      • +Electrical Annotation and Design - AECOsim Building Designer
      • +Floors - AECOsim Building Designer
      • +Form Modeling - AECOsim Building Designer
      • -General - AECOsim Building Designer
        • Accessing The Bentley Developer Network
        • AECOsim Building Designer - MicroStation Mode
        • AECOsim Building Designer - Version History
        • AECOsim Building Designer Product Compatibility
        • AECOsim MicroStation CONNECT Edition shortcut
        • AECOsim timeout in 2 minutes
        • Blurry dialogs in Windows 8-8.1
        • Change Rejected In Order To Preserve Design Integrity
        • Compatibility with Microsoft Office 64-bit - AECOsim Building Designer
        • CONNECT Edition - Cannot Open Drawing with Chinese Character
        • CONNECT Edition - City names written in Regional language are not properly shown in Light Manager
        • CONNECT Edition - DGN file format is unchanged
        • CONNECT Edition - Has the "Isolate" command been removed from AECOsim CONNECT?
        • CONNECT Edition - Installation Error - '.NET 4.5.2 '
        • CONNECT Edition - Installation Error - 'error code 0x80070643'
        • CONNECT Edition - Installation Error - 'Hash Mismatch'
        • CONNECT Edition - Is there any way to count all cells present in a drawing?
        • CONNECT Edition - What Features/Capabilities have been Deprecated/Superseded?
        • Creating a Geographic Coordinate System in BIM Projects
        • -Errors
          • "ClassFactory" VBA error when opening AECOsim Building Designer
          • "License information for this component not found"
          • "Runwait_mshta_en_productinstallerGUI.hta, Access is denied"
          • .NET 3.5 Framework error message for AECOsim Building Designer on Windows 8 or 10
          • AECOsim Building Designer - Application Error Code 0x80040151
          • AECOsim Building Designer - Application Error Code 0xE0434F4D
          • AECOsim Building Designer - Error Code Fm20.dll
          • AECOsim Building Designer - Exception with Code 0xc0000005
          • AECOsim opens with xml and/or settings error message boxes
          • Can not load VBA project file - mvba
          • Class not Registered Error on Windows 10
          • CONNECT Edition - AECOsim Building Designer Connect Edition Installation on Windows 7 Error
          • CONNECT Edition - AECOsim Crash With Network Dataset
          • CONNECT Edition - Can't Deactivate CONNECT Advisor on start.
          • CONNECT Edition - Getting random crashes when opening a drawing
          • CONNECT Edition - Random Crashes working in a drawing
          • Error 429 : License Information for this component is not found
          • Generate Type 7 Minidump files
          • Microsoft's April Security Updates Kill VBA Scripts
          • MSXML2 publicKeyToken error in tfdgschedules.dll
          • Unable to find style specified by HVAC_CUT_HIDDEN_LINESTYLE: (Hidden)
          • VBA error - Compile error in hidden module
          • VBA errors when opening files
          • VBA errors when using certain Structural or Mechanical tools
          • Where Are Exception Logs and Mini Dump Files Located?
        • Globally add data to every component in AECOsim
        • How can I get complete list of AccuDraw Shortcut Key-in?
        • How to modify Flyover Tool-tip
        • How to use "Swept Blend" function in AECOsim Building Designer
        • How to Use TFREBUILD
        • Ignore Clip Volumes not working
        • Inappropriate display issue in high resolution monitor
        • Issues after updating AECOsim Building Designer to Update 4
        • Lines going everywhere all over my drawing (zingers)
        • Lock Pages in Memory issue
        • Main Tasks Menu is Missing
        • Microsoft Office 365 August updates (version 1707) are causing crashes in AECOsim Building Designer on startup
        • Missing Help for Electrical
        • Open AECOsim Building Designer Files in MicroStation
        • Poor Performance when Operating System files are compressed
        • Recommended Solids Working Area Workflow
        • SelectBy Key-ins and Their Effect
        • Selecting Building Elements By Color
        • Unable to select some elements in the 3d model
        • Using LibreOffice Basic with AECOsim Building Designer
        • What's New in Select Series 6 Update 1
      • +Grid Systems - AECOsim Building Designer
      • +HVAC Design - AECOsim Building Designer
      • +i-model - AECOsim Building Designer
      • +Import/Export - AECOsim Building Designer
      • +Installation - AECOsim Building Designer
      • +Modify - AECOsim Building Designer
      • +Platform Tools - AECOsim Building Designer
      • +Plumbing Design - AECOsim Building Designer
      • +Print/Plot - AECOsim Building Designer
      • +ProjectWise Integration - AECOsim Building Designer
      • +Settings/Attributes - AECOsim Building Designer
      • +Space Planner - AECOsim Building Designer
      • +Structural Design - AECOsim Building Designer
      • +Utilities - AECOsim Building Designer
      • +Workspace - AECOsim Building Designer
    • +iModel Plugin for Revit
    • +Social Distance Assessments
    • Working from home with OpenBuildings products
    • Working from home with Speedikon
    • +Special Interest Group (SIG) FAQs
    • +Structural Modeler_PS
    • +Configuration Explorer
    • +Legacy Products

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

    VBA errors when using certain Structural or Mechanical tools

       
      Applies To 
       
      Product(s): AECOsim Building Designer V8i
      Version(s): 08.11.09.325
      Environment:  N/A
      Area:  General
      Subarea:  N/A
      Original Author: Bentley Technical Support Group
       

    Problem

     Microsoft Security Bulletin MS12-060, released August 14, 2012, (update to MS12-027) re-introduces the problem executing VBA scripts within Bentley Structural Modeler XM & V8i, Bentley Structural Modeler XM & V8i and AECOsim Building Designer V8i original cause by applying MS12-027 security update. The issue may also be present in other Bentley applications that use VBA scripts.

    Solution

     WARNING – Microsoft Security Bulletin MS12-060 (update to MS12-027) disables VBA Scripts (released 08-14-2012)

    Symptoms:

    The symptoms that you have been affected by Microsoft Security Bulletin MS12-060 update or the original MS12-027 is you may receive one of several variation of a VBA error, in the message center of Bentley Structural Modeler XM & V8i, Bentley Structural Modeler XM & V8i, AECOsim Building Designer V8i or other Bentley applications. Error messages include but are not limited to:

    VBA interface error: unable to run macro - invalid procedure name (error when placing Structural joist girder / bar joist / analysis Import/export)
    VBA interface error: unable to run macro - 0x80040552 (error when placing Structural steel truss)
    Cannot run VBA module
    Placement of Mechanical Content does not display any graphics (in dynamics) after the initial placement point.
    Object library invalid or contains references to object definitions that could not be found
    Element not found
    Cannot insert object
    To verify the issue is the result of Microsoft Security Bulletin MS12-060 or MS12-027, please review the Microsoft Updates applied to your computer and determine whether any of the corresponding Service Packs lists either Microsoft Security Bulletin MS12-060 Critical or Microsoft Security Bulletin MS12-027 - Critical were recently applied.

    The following are the most commonly applied Service Packs that can cause the reported issue with VBA scripts within Bentley Application

    Microsoft Office Suites and Software

    Microsoft Office 2003 Service Pack 3 - (Windows common controls)(KB2597112)
    Microsoft Office 2003 Web Components Service Pack 3 - (Windows common controls)( KB2687323)
    Microsoft Office 2007 Service Pack 2 - (Windows common controls)( KB2687441)
    Microsoft Office 2007 Service Pack 3 - (Windows common controls)( KB2687441)
    Microsoft Office 2010 Service Pack 1 (32-bit editions) - (Windows common controls)(KB2597986)
    For a complete list of Service Packs or Updates that are associated with the Microsoft Security Bulletin MS12-060, please reference http://technet.microsoft.com/en-us/security/bulletin/ms12-060

    Cause:

    Microsoft Security Bulletin MS12-060 - Critical
    Vulnerability in Windows Common Controls Could Allow Remote Code Execution (2720573)

    This security update resolves a privately reported vulnerability in Windows common controls. The vulnerability could allow remote code execution if a user visits a website containing specially crafted content designed to exploit the vulnerability. In all cases, however, an attacker would have no way to force users to visit such a website. Instead, an attacker would have to convince users to visit the website, typically by getting them to click a link in an email message or Instant Messenger message that takes them to the attacker's website. The malicious file could be sent as an email attachment as well, but the attacker would have to convince the user to open the attachment in order to exploit the vulnerability.

    Resolution:

    Please reference the following Microsoft Support Article (Article ID: 2703186) for the resolution to this issue:

    MS12-060: Description of the security update for Office 2010: August 14, 2012
    MS12-060: Description of the security update for 2007 Office system: August 14, 2012
    MS12-060: Description of the security update for Office 2003 and Office 2003 Web Components: August 14, 2012
    To resolve the issue, you must run the “Fix It” option in Microsoft article.

     

    Solution 2

    1) Type "cmd.exe" in the Windows Start Menu > "Search" field, then right-click on the command and choose "Run as Administrator" to open an Administrator level  Command Prompt.
    2) Type "del c:\*.exd /s", without the quotes
    3) Download the Microsoft Visual Basic 6.0 Service Pack 6 Cumulative Update, available here: http://www.microsoft.com/en-us/download/details.aspx?id=7030.
    4) Open the downloaded VB60SP6-KB2641426-x86-ENU.msi file in your compression software of choice, such as 7Zip, and extract the "product.cab" file.
    5) Open the product.cab file with your compression software and extract the files "mscomctl.ocx" and "mscomct2.ocx".
    6) Copy mscomctl.ocx and mscomct2.ocx to C:\Windows\System32, overwriting any other existing versions.  NOTE: If you are running a 64bit OS and do not have these two files in the C:\Windows\System32 folder, check under the C:\Windows\SysWOW64 folder instead.
    7) Return to your Command Prompt window and register both *.ocx files using the regsvr32 command.
    8) Restart AECOsim Building Designer or Bentley Building Mechanical Systems.

    Solution 3 

     Note: Uninstalling any of the applied Microsoft Security Updates will not correct the problem nor does Bentley recommend not uninstalling any Microsoft security updates. The MSCOMCTL.OCX will need to re-registered.
     To re-register the MSCOMCTL.OCX on Window 7– 64bit:

    1. Open the Start Menu.
    2. In the white line (Start Search) area, type cmd to initiate the command prompt
    3. Right click on cmd (at top), and click on Run as administrator.
    4. Click on Continue in the UAC prompt.
    5. Change your source directory to “c:\windows\SysWow64” by typing cd c:\windows\SysWow64
    6. Type regsvr32 MSCOMCTL.OCX
    To re-register the MSCOMCTL.OCX on Window XP/7– 32bit:
    1. Open the Start Menu.
    2. In the white line (Start Search) area, type cmd to initiate the command prompt
    3. Right click on cmd (at top), and click on Run as administrator.
    4. Click on Continue in the UAC prompt.
    5. Change your source directory to “c:\windows\System32” by typing cd c:\windows\System32
    6. Type regsvr32 MSCOMCTL.OCX

    Or download the attached file and rename the extension from .txt to .bat and right-click and click on Run as administrator

    See Also

    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 confine any comments you have on this Wiki entry to this " Comments or Corrections?" section. THANK YOU!

     

    • AECOsim Building Designer
    • SELECTsupport
    • Share
    • History
    • More
    • Cancel
    • Elisabeth Pry Created by Bentley Colleague Elisabeth Pry
    • When: Wed, Nov 20 2013 5:44 PM
    • Steve Cocchi Last revision by Bentley Colleague Communities MVP Steve Cocchi
    • When: Wed, Oct 28 2015 7:07 PM
    • Revisions: 5
    • Comments: 3
    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