Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sancarn/a959e69d0c71fc0a5edc1c967ff4b8f2 to your computer and use it in GitHub Desktop.
Save sancarn/a959e69d0c71fc0a5edc1c967ff4b8f2 to your computer and use it in GitHub Desktop.

Issue:

#"Starting REPL..."
3743
#>3743
sim = _.db.model_object_from_type_and_id("Sim",3743)
#>#<WSSimObject:0x00000031f63c28>
sim.list_max_results_attributes
#> Error: The method cannot be run from the user interface

Also:

WSSimObject.instance.list_max_results_attributes                                :    ICMExchange OnlyWSSimObject.instance.list_results_attributes                                    :    ICMExchange OnlyWSSimObject.instance.list_results_GIS_export_tables                             :    ICMExchange OnlyWSSimObject.instance.list_timesteps                                             :    ICMExchange OnlyWSSimObject.instance.max_results_binary_export                                  :    ICMExchange OnlyWSSimObject.instance.max_results_csv_export                                     :    ICMExchange OnlyWSSimObject.instance.results_binary_export                                      :    ICMExchange OnlyWSSimObject.instance.results_csv_export                                         :    ICMExchange OnlyWSSimObject.instance.results_csv_export_ex                                      :    ICMExchange OnlyWSSimObject.instance.results_GIS_export                                         :    ICMExchange OnlyWSSimObject.instance.results_path                                               :    ICMExchange Only

Solution:

USE SQL! > File

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment