Resolverlib
Resolverlib allows you to write stand-alone IronPython code which accesses the contents of Resolver One spreadsheets, without having to have Resolver One running, or even installed.
Usage
In Resolver One's installation bin directory, there is a script called create_resolverlib.bat:
create_resolverlib <dest_directory>
When run, it will create a resolverlib directory inside <dest_directory>, for example in your own project directory. The resolverlib directory is filled with some binary .NET assembly files, along with a Python module that your project's code can import, as follows:
from resolverlib import RunWorkbook
workbook = RunWorkbook('myspreadsheet.rsl')
print workbook['Sheet1'].A3
This will print the value of cell A3 on Sheet1 of the Resolver One spreadsheet document in myspreadsheet.rsl.
Run your project's script using ipy.exe (from your IronPython install and on your PATH), in the usual way:
ipy.exe <yourscript>.py
If you have not installed IronPython, you can use a copy from the resolverlib directory instead:
resolverlib\ipy.exe <yourscript>.py
The workbook that is returned from RunWorkbook() is the same class of workbook object that you manipulate in Resolver One usercode, giving you access to Resolver One's full document object model.
The uses of RunWorkbook are described here, and documented in the API documentation.
Comments
If you have comments, questions or suggestions about any of the Resolver One documentation, please post them to the Documentation Suggestions Forum.
