Click or drag to resize

IGoExcel Interface

Provides functions properties to read and write data from Excel.

In a rule, this interface is implemented by the predefined object named GoExcel.

Namespace:  Autodesk.iLogic.Interfaces
Assembly:  Autodesk.iLogic.Interfaces (in Autodesk.iLogic.Interfaces.dll) Version: 23.0
Syntax
Public Interface IGoExcel

The IGoExcel type exposes the following members.

Properties
  NameDescription
Public propertyApplication
Gets the Excel Application object (of the type Microsoft.Office.Interop.Excel.Application).
Public propertyCellValueString
Gets or sets the value of the cell at the specified address in the current workbook and worksheet.
Public propertyCellValueString, String, String
Gets or sets the value of the cell at the specified address.
Public propertyCellValuesString, String
Gets or sets the values of a range of cells from a single column or row.
Public propertyCellValuesString, String, String, String
Gets or sets the values of a range of cells from a single column or row.
Public propertyDisplayAlerts
Gets or sets a property of the Excel application. If this is True, alert dialogs will be displayed.
Public propertyFindRowStart
Gets or sets the index (1-based) of the first row to search wit hthe FindRow function. This must be creater than the TitleRow. The default value is 2.
Public propertyNamedRangeValue
Gets or sets the value of a named range. Named ranges are defined in the Excel file.
Public propertyTitleRow
Gets or sets the index (1-based) of the title row. The title row is the row that contains the column names. The default value is 1.
Public propertyTolerance
Gets or sets a value that is used for numeric equality tests in the FindRow function. If the difference between two numbers is less than or equal to the tolerance, they will be considered to be equal. The default tolerance is 0.0000001.
Top
Methods
  NameDescription
Public methodChangeSourceOfLinked
Replace the Excel file that is currently a source of linked parameters with another file. This is similar to the Change Source command on the context menu in the UI.
Public methodClearCache
Clear the internal cache used by FindRow and CurrentRowValue. This cache is not used by CellValue and related functions. It is a global cache, and it persists when rules are not being run.
Public methodClose
Closes the Excel file that is currently open (if any).
Public methodCurrentRowValue
Gets the value of the cell at the specified column in the current row. (Use FindRow to set the current row.)
Public methodFindColumn
Find a column by name. The name is the value of the cell in the TitleRow.
Public methodFindRow
Finds and selects a row that matches the given values.
Public methodOpen
Opens the specified Excel workbook, and optionally sets the named worksheet as the current sheet.
Public methodSave
Saves the Excel file that is currently open (if any).
Public methodSetCurrentSheet
Sets the current sheet of the specified Excel workbook.
Top
See Also