Runtime Error… File name or class name not found during OLE Automation operation Line: 231


Applies To 
Product(s):AutoPLANT Modeler 
Version(s):08.11.12.114
Environment: Windows 7 64 bit
Area: Errors, Logs, Messages, Crashes
Subarea: 
Original Author:Abhijit Bute, Bentley Technical Support Group

Overview

While setting New Annotation Style user may face following errors.

Problem Description

While trying to build an annotation string, the following series of errors occur

AutoPLANT Message
Runtime Error… File name or class name not found during OLE Automation operation Line: 231

Script execution error:
X PSYS0502: Error executing the Dialog
Error in script file C:\\Program Files (x86)\\Bentley\\Plant V8i\\Modules\\Base\\dialogs\\annot_NewStyle.ebs


Below are the illustrative steps to resolve this issue.

Steps to Resolve

  1. Close all AutoPLANT applications
  2. In Windows explorer, open the following file in Script Editor.

    C:\Program Files (x86)\Bentley\Plant V8i\Modules\Base\dialogs\annot_NewStyle.ebs

  3. Go to line number 231 and notice the following line:

    Set Builder=createObject("APAnnotationBuilderXM18.AnnBuilder")

  4. Above variable should point to APAnnotationBuilderAN20 depending on the user`s AutoCAD version. As an example, change the line as follows,

    Set Builder=createObject "APAnnotationBuilderAN20.AnnBuilder")

    Refer following screen shot:



  5. Save the file and restart AutoPLANT

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!