Last active
February 27, 2018 11:43
-
-
Save sancarn/4eb6ef139cceff82b38418b047ff47a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This method of obtaining objects is WIP | |
$instances = {} | |
$instances[:WSOpenNetwork] = WSApplication.current_network | |
$instances[:WSDatabase] = WSApplication.current_database | |
$instances[:WSModelObjectCollection] = $instances[:WSDatabase].model_object.collection("Model Group") | |
$instances[:WSModelObject] = $instances[:WSModelObjectCollection][0] | |
$instances[:WSNumbatNetworkObject] = $instances[:WSDatabase].model_object.collection("Model Network")[0] | |
$instances[:WSSimObject] = $instances[:WSDatabase].model_object.collection("Sim")[0] | |
$instances[:WSOpenNetwork].transaction_begin | |
$instances[:WSRowObject] = $instances[:WSOpenNetwork].new_row_object("hw_prefs") | |
$instances[:WSNode] = $instances[:WSOpenNetwork].new_row_object("hw_nodes") | |
$instances[:WSLink] = $instances[:WSOpenNetwork].new_row_object("hw_conduit") | |
$instances[:WSOpenNetwork].transaction_rollback | |
#... etc. | |
def try(object,method,args) | |
begin | |
object.method(method).call(*args) | |
rescue Exception => e | |
message = e.to_s #In general if you get a parameter type error, the method is likely runnable in the UI. | |
if (message =="The method cannot be run from the user interface") | |
message = "ICMExchange Only" | |
elsif message=="The method is for Innovyze internal use only, please check your licence." | |
message = "Innovyze Private method" | |
elsif message == "The method cannot be run from InfoWorks ICM" | |
message = "The method cannot be run from InfoWorks ICM" | |
end | |
puts (object.to_s + "." + method.to_s).ljust(80) + ":\t" + message | |
end | |
end | |
Module.constants.each do |const| | |
if const.to_s[/MS.+/] | |
cls = Module.const_get(const) #class | |
methods = cls.singleton_methods - Object.methods | |
instance_methods = cls.instance_methods - Object.methods | |
#Test singleton methods | |
if methods.length > 0 | |
methods.each do |method| | |
args = getTestArgs(cls,method) | |
try(cls,method,args) | |
end | |
end | |
#Test instance methods | |
icls = $instances[const] | |
if instance_methods.length > 0 | |
instance_methods.each do |method| | |
args = getTestArgs(cls,method) | |
try(icls,method,args) | |
end | |
end | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WSApplication.compare_binary_results_files : Innovyze Private method | |
WSApplication.create : ICMExchange Only | |
WSApplication.create_transportable : ICMExchange Only | |
WSApplication.delete_temp_files? : Innovyze Private method | |
WSApplication.delete_temp_files= : Innovyze Private method | |
WSApplication.log_event : Both UI and ICMExchange | |
WSApplication.open : ICMExchange Only | |
WSApplication.override_user_unit : ICMExchange Only | |
WSApplication.override_user_units : ICMExchange Only | |
WSApplication.override_working_folder : ICMExchange Only | |
WSApplication.set_exit_code : ICMExchange Only | |
WSApplication.set_local_root : ICMExchange Only | |
WSApplication.set_working_folder : ICMExchange Only | |
WSApplication.set_results_folder : ICMExchange Only | |
WSApplication.post_debug : Innovyze Private method | |
WSApplication.connect_local_agent : ICMExchange Only | |
WSApplication.launch_sims : ICMExchange Only | |
WSApplication.use_arcgis_desktop_licence : ICMExchange Only | |
WSApplication.wait_for_jobs : ICMExchange Only | |
WSApplication.cancel_job : ICMExchange Only | |
WSApplication.file_dialog : UI Only | |
WSApplication.folder_dialog : UI Only | |
WSApplication.input_box : UI Only | |
WSApplication.message_box : UI Only | |
WSApplication.open_text_view : UI Only | |
WSApplication.prompt : UI Only | |
WSApplication.scalars : UI Only | |
WSDatabase.instance.copy_into_root : ICMExchange Only | |
WSDatabase.instance.custom_schema : ICMExchange Only | |
WSDatabase.instance.file_root : ICMExchange Only | |
WSDatabase.instance.find_model_object : Both UI and ICMExchange | |
WSDatabase.instance.find_root_model_object : Both UI and ICMExchange | |
WSDatabase.instance.list_read_write_run_fields : ICMExchange Only | |
WSDatabase.instance.model_object : Both UI and ICMExchange | |
WSDatabase.instance.model_object_collection : Both UI and ICMExchange | |
WSDatabase.instance.model_object_from_type_and_guid : ICMExchange Only | |
WSDatabase.instance.model_object_from_type_and_id : Both UI and ICMExchange | |
WSDatabase.instance.new_network_name : ICMExchange Only | |
WSDatabase.instance.scripting_name_of_type : ICMExchange Only | |
WSDatabase.instance.new_model_object : ICMExchange Only | |
WSOpenNetwork.instance.befdss_export : The method cannot be run from InfoWorks ICM | |
WSOpenNetwork.instance.befdss_import_cctv : The method cannot be run from InfoWorks ICM | |
WSOpenNetwork.instance.befdss_import_manhole_surveys : The method cannot be run from InfoWorks ICM | |
WSOpenNetwork.instance.cctv_standard : The method cannot be run from InfoWorks ICM | |
WSOpenNetwork.instance.close : ICMExchange Only | |
WSOpenNetwork.instance.commit_bypassing_validation : ICMExchange Only | |
WSOpenNetwork.instance.csv_export : Both UI and ICMExchange | |
WSOpenNetwork.instance.csv_import : Both UI and ICMExchange | |
WSOpenNetwork.instance.current_scenario= : Both UI and ICMExchange | |
WSOpenNetwork.instance.delete_scenario : Both UI and ICMExchange | |
WSOpenNetwork.instance.each : no block given | |
WSOpenNetwork.instance.field_choices : Both UI and ICMExchange | |
WSOpenNetwork.instance.field_choice_descriptions : Both UI and ICMExchange | |
WSOpenNetwork.instance.field_names : Both UI and ICMExchange | |
WSOpenNetwork.instance.get_projection_string : Both UI and ICMExchange | |
WSOpenNetwork.instance.get_projection_bounds : Both UI and ICMExchange | |
WSOpenNetwork.instance.get_string_pref : Innovyze Private method | |
WSOpenNetwork.instance.geometry_mbr : Innovyze Private method | |
WSOpenNetwork.instance.intersect : Innovyze Private method | |
WSOpenNetwork.instance.load_selection : Both UI and ICMExchange | |
WSOpenNetwork.instance.mhsurvey_standard : The method cannot be run from InfoWorks ICM | |
WSOpenNetwork.instance.new_row_object : Both UI and ICMExchange | |
WSOpenNetwork.instance.objects_in_polygon : Both UI and ICMExchange | |
WSOpenNetwork.instance.odic_import : ICMExchange Only | |
WSOpenNetwork.instance.odic_import_ex : Both UI and ICMExchange | |
WSOpenNetwork.instance.odec_export : ICMExchange Only | |
WSOpenNetwork.instance.odec_export_ex : Both UI and ICMExchange | |
WSOpenNetwork.instance.open_mo_layer_list : Innovyze Private method | |
WSOpenNetwork.instance.put_string_pref : Innovyze Private method | |
WSOpenNetwork.instance.row_object : Both UI and ICMExchange | |
WSOpenNetwork.instance.row_objects : Both UI and ICMExchange | |
WSOpenNetwork.instance.row_objects_from_asset_id : Both UI and ICMExchange | |
WSOpenNetwork.instance.row_object_collection : Both UI and ICMExchange | |
WSOpenNetwork.instance.row_object_collection_selection : Both UI and ICMExchange | |
WSOpenNetwork.instance.run_SQL : Both UI and ICMExchange | |
WSOpenNetwork.instance.save_selection : Both UI and ICMExchange | |
WSOpenNetwork.instance.scenarios : Both UI and ICMExchange | |
WSOpenNetwork.instance.search_at_point : Both UI and ICMExchange | |
WSOpenNetwork.instance.snapshot_export : Both UI and ICMExchange | |
WSOpenNetwork.instance.snapshot_import : Both UI and ICMExchange | |
WSOpenNetwork.instance.snapshot_scan : Both UI and ICMExchange | |
WSOpenNetwork.instance.snapshot_export_ex : Both UI and ICMExchange | |
WSOpenNetwork.instance.snapshot_import_ex : Both UI and ICMExchange | |
WSOpenNetwork.instance.table : Both UI and ICMExchange | |
WSOpenNetwork.instance.thin_and_clean_polygons : Innovyze Private method | |
WSOpenNetwork.instance.transaction_rollback : Both UI and ICMExchange | |
WSOpenNetwork.instance.update_cctv_scores : The method cannot be run from InfoWorks ICM | |
WSOpenNetwork.instance.update_cctv_scores_std : The method cannot be run from InfoWorks ICM | |
WSOpenNetwork.instance.validate : Both UI and ICMExchange | |
WSOpenNetwork.instance.commit : Both UI and ICMExchange | |
WSOpenNetwork.instance.run_inference : Both UI and ICMExchange | |
WSOpenNetwork.instance.run_stored_query_object : Both UI and ICMExchange | |
WSModelObject.instance.[] : ICMExchange Only | |
WSModelObject.instance.[]= : ICMExchange Only | |
WSModelObject.instance.bulk_delete : ICMExchange Only | |
WSModelObject.instance.comment : ICMExchange Only | |
WSModelObject.instance.comment= : ICMExchange Only | |
WSModelObject.instance.compare : ICMExchange Only | |
WSModelObject.instance.compare_results_to_file : ICMExchange Only | |
WSModelObject.instance.compare_to_csv : ICMExchange Only | |
WSModelObject.instance.copy_here : ICMExchange Only | |
WSModelObject.instance.csv_import_tvd : ICMExchange Only | |
WSModelObject.instance.deletable? : ICMExchange Only | |
WSModelObject.instance.delete : ICMExchange Only | |
WSModelObject.instance.delete_results : ICMExchange Only | |
WSModelObject.instance.duplicate_model_object : Innovyze Private method | |
WSModelObject.instance.export : ICMExchange Only | |
WSModelObject.instance.find_child_object : Both UI and ICMExchange | |
WSModelObject.instance.find_child_model_object : Both UI and ICMExchange | |
WSModelObject.instance.import_data : ICMExchange Only | |
WSModelObject.instance.import_new_model_object : ICMExchange Only | |
WSModelObject.instance.import_grid_ground_model : ICMExchange Only | |
WSModelObject.instance.import_layer_list : Innovyze Private method | |
WSModelObject.instance.import_tvd : ICMExchange Only | |
WSModelObject.instance.name= : ICMExchange Only | |
WSModelObject.instance.new_model_object : Both UI and ICMExchange (Restricted access in UI mode) | |
WSModelObject.instance.new_run : ICMExchange Only | |
WSModelObject.instance.new_risk_analysis_run : ICMExchange Only | |
WSModelObject.instance.new_synthetic_rainfall : Innovyze Private method | |
WSModelObject.instance.open : ICMExchange Only | |
WSModelObject.instance.open_version : Innovyze Private method | |
WSModelObject.instance.tvd_unit_type : ICMExchange Only | |
WSModelObject.instance.tvd_unit_type= : ICMExchange Only | |
WSModelObject.instance.update_dashboard : ICMExchange Only | |
WSModelObject.instance.update_to_latest : ICMExchange Only | |
WSNumbatNetworkObject.instance.befdss_export : The method cannot be run from InfoWorks ICM | |
WSNumbatNetworkObject.instance.befdss_import_cctv : The method cannot be run from InfoWorks ICM | |
WSNumbatNetworkObject.instance.befdss_import_manhole_surveys : The method cannot be run from InfoWorks ICM | |
WSNumbatNetworkObject.instance.cctv_standard : ICMExchange Only | |
WSNumbatNetworkObject.instance.choices : ICMExchange Only | |
WSNumbatNetworkObject.instance.commit : ICMExchange Only | |
WSNumbatNetworkObject.instance.commits : ICMExchange Only | |
WSNumbatNetworkObject.instance.commit_reserve : ICMExchange Only | |
WSNumbatNetworkObject.instance.csv_changes : ICMExchange Only | |
WSNumbatNetworkObject.instance.csv_changes_inm : ICMExchange Only | |
WSNumbatNetworkObject.instance.csv_export : ICMExchange Only | |
WSNumbatNetworkObject.instance.csv_import : ICMExchange Only | |
WSNumbatNetworkObject.instance.current_commit_id : ICMExchange Only | |
WSNumbatNetworkObject.instance.field_choices : ICMExchange Only | |
WSNumbatNetworkObject.instance.field_choice_descriptions : ICMExchange Only | |
WSNumbatNetworkObject.instance.get_projection_string : Both UI and ICMExchange | |
WSNumbatNetworkObject.instance.get_projection_bounds : Both UI and ICMExchange | |
WSNumbatNetworkObject.instance.latest_commit_id : ICMExchange Only | |
WSNumbatNetworkObject.instance.mhsurvey_standard : ICMExchange Only | |
WSNumbatNetworkObject.instance.odic_import : ICMExchange Only | |
WSNumbatNetworkObject.instance.odic_import_ex : ICMExchange Only | |
WSNumbatNetworkObject.instance.odec_export : ICMExchange Only | |
WSNumbatNetworkObject.instance.odec_export_ex : ICMExchange Only | |
WSNumbatNetworkObject.instance.remove_local : ICMExchange Only | |
WSNumbatNetworkObject.instance.reserve : ICMExchange Only | |
WSNumbatNetworkObject.instance.revert : ICMExchange Only | |
WSNumbatNetworkObject.instance.select_sql : ICMExchange Only | |
WSNumbatNetworkObject.instance.select_clear : ICMExchange Only | |
WSNumbatNetworkObject.instance.select_count : ICMExchange Only | |
WSNumbatNetworkObject.instance.select_changes : ICMExchange Only | |
WSNumbatNetworkObject.instance.uncommitted_changes? : ICMExchange Only | |
WSNumbatNetworkObject.instance.unreserve : ICMExchange Only | |
WSNumbatNetworkObject.instance.update : ICMExchange Only | |
WSNumbatNetworkObject.instance.user_field_names : ICMExchange Only | |
WSNumbatNetworkObject.instance.[] : ICMExchange Only | |
WSNumbatNetworkObject.instance.[]= : ICMExchange Only | |
WSNumbatNetworkObject.instance.bulk_delete : ICMExchange Only | |
WSNumbatNetworkObject.instance.comment : ICMExchange Only | |
WSNumbatNetworkObject.instance.comment= : ICMExchange Only | |
WSNumbatNetworkObject.instance.compare : ICMExchange Only | |
WSNumbatNetworkObject.instance.compare_results_to_file : ICMExchange Only | |
WSNumbatNetworkObject.instance.compare_to_csv : ICMExchange Only | |
WSNumbatNetworkObject.instance.copy_here : ICMExchange Only | |
WSNumbatNetworkObject.instance.csv_import_tvd : ICMExchange Only | |
WSNumbatNetworkObject.instance.deletable? : ICMExchange Only | |
WSNumbatNetworkObject.instance.delete : ICMExchange Only | |
WSNumbatNetworkObject.instance.delete_results : ICMExchange Only | |
WSNumbatNetworkObject.instance.duplicate_model_object : Innovyze Private method | |
WSNumbatNetworkObject.instance.export : ICMExchange Only | |
WSNumbatNetworkObject.instance.find_child_object : Both UI and ICMExchange | |
WSNumbatNetworkObject.instance.find_child_model_object : Both UI and ICMExchange | |
WSNumbatNetworkObject.instance.import_data : ICMExchange Only | |
WSNumbatNetworkObject.instance.import_new_model_object : ICMExchange Only | |
WSNumbatNetworkObject.instance.import_grid_ground_model : ICMExchange Only | |
WSNumbatNetworkObject.instance.import_layer_list : Innovyze Private method | |
WSNumbatNetworkObject.instance.import_tvd : ICMExchange Only | |
WSNumbatNetworkObject.instance.name= : ICMExchange Only | |
WSNumbatNetworkObject.instance.new_model_object : Both UI and ICMExchange (Restricted access in UI mode) | |
WSNumbatNetworkObject.instance.new_run : ICMExchange Only | |
WSNumbatNetworkObject.instance.new_risk_analysis_run : ICMExchange Only | |
WSNumbatNetworkObject.instance.new_synthetic_rainfall : Innovyze Private method | |
WSNumbatNetworkObject.instance.open : ICMExchange Only | |
WSNumbatNetworkObject.instance.open_version : Innovyze Private method | |
WSNumbatNetworkObject.instance.tvd_unit_type : ICMExchange Only | |
WSNumbatNetworkObject.instance.tvd_unit_type= : ICMExchange Only | |
WSNumbatNetworkObject.instance.update_dashboard : ICMExchange Only | |
WSNumbatNetworkObject.instance.update_to_latest : ICMExchange Only | |
WSSimObject.instance.list_max_results_attributes : ICMExchange Only | |
WSSimObject.instance.list_results_attributes : ICMExchange Only | |
WSSimObject.instance.list_results_GIS_export_tables : ICMExchange Only | |
WSSimObject.instance.list_timesteps : ICMExchange Only | |
WSSimObject.instance.max_results_binary_export : ICMExchange Only | |
WSSimObject.instance.max_results_csv_export : ICMExchange Only | |
WSSimObject.instance.results_binary_export : ICMExchange Only | |
WSSimObject.instance.results_csv_export : ICMExchange Only | |
WSSimObject.instance.results_csv_export_ex : ICMExchange Only | |
WSSimObject.instance.results_GIS_export : ICMExchange Only | |
WSSimObject.instance.results_path : ICMExchange Only | |
WSSimObject.instance.run : ICMExchange Only | |
WSSimObject.instance.run_ex : ICMExchange Only | |
WSSimObject.instance.status : ICMExchange Only | |
WSSimObject.instance.success_substatus : ICMExchange Only | |
WSSimObject.instance.single_result_csv_export : ICMExchange Only | |
WSSimObject.instance.timestep_count : ICMExchange Only | |
WSSimObject.instance.bodge_for_Mark : Innovyze Private method | |
WSSimObject.instance.[] : ICMExchange Only | |
WSSimObject.instance.[]= : ICMExchange Only | |
WSSimObject.instance.bulk_delete : ICMExchange Only | |
WSSimObject.instance.comment : ICMExchange Only | |
WSSimObject.instance.comment= : ICMExchange Only | |
WSSimObject.instance.compare : ICMExchange Only | |
WSSimObject.instance.compare_results_to_file : ICMExchange Only | |
WSSimObject.instance.compare_to_csv : ICMExchange Only | |
WSSimObject.instance.copy_here : ICMExchange Only | |
WSSimObject.instance.csv_import_tvd : ICMExchange Only | |
WSSimObject.instance.deletable? : ICMExchange Only | |
WSSimObject.instance.delete : ICMExchange Only | |
WSSimObject.instance.delete_results : ICMExchange Only | |
WSSimObject.instance.duplicate_model_object : Innovyze Private method | |
WSSimObject.instance.export : ICMExchange Only | |
WSSimObject.instance.find_child_object : Both UI and ICMExchange | |
WSSimObject.instance.find_child_model_object : Both UI and ICMExchange | |
WSSimObject.instance.import_data : ICMExchange Only | |
WSSimObject.instance.import_new_model_object : ICMExchange Only | |
WSSimObject.instance.import_grid_ground_model : ICMExchange Only | |
WSSimObject.instance.import_layer_list : Innovyze Private method | |
WSSimObject.instance.import_tvd : ICMExchange Only | |
WSSimObject.instance.name= : ICMExchange Only | |
WSSimObject.instance.new_model_object : Both UI and ICMExchange (Restricted access in UI mode) | |
WSSimObject.instance.new_run : ICMExchange Only | |
WSSimObject.instance.new_risk_analysis_run : ICMExchange Only | |
WSSimObject.instance.new_synthetic_rainfall : Innovyze Private method | |
WSSimObject.instance.open : ICMExchange Only | |
WSSimObject.instance.open_version : Innovyze Private method | |
WSSimObject.instance.tvd_unit_type : ICMExchange Only | |
WSSimObject.instance.tvd_unit_type= : ICMExchange Only | |
WSSimObject.instance.update_dashboard : ICMExchange Only | |
WSSimObject.instance.update_to_latest : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.run : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.run_ex : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.[] : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.[]= : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.bulk_delete : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.comment : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.comment= : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.compare : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.compare_results_to_file : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.compare_to_csv : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.copy_here : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.csv_import_tvd : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.deletable? : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.delete : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.delete_results : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.duplicate_model_object : Innovyze Private method | |
WSRiskAnalysisRunObject.instance.export : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.find_child_object : Both UI and ICMExchange | |
WSRiskAnalysisRunObject.instance.find_child_model_object : Both UI and ICMExchange | |
WSRiskAnalysisRunObject.instance.import_data : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.import_new_model_object : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.import_grid_ground_model : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.import_layer_list : Innovyze Private method | |
WSRiskAnalysisRunObject.instance.import_tvd : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.name= : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.new_model_object : Both UI and ICMExchange (Restricted access in UI mode) | |
WSRiskAnalysisRunObject.instance.new_run : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.new_risk_analysis_run : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.new_synthetic_rainfall : Innovyze Private method | |
WSRiskAnalysisRunObject.instance.open : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.open_version : Innovyze Private method | |
WSRiskAnalysisRunObject.instance.tvd_unit_type : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.tvd_unit_type= : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.update_dashboard : ICMExchange Only | |
WSRiskAnalysisRunObject.instance.update_to_latest : ICMExchange Only | |
WSModelObjectCollection.instance.each : Both UI and ICMExchange | |
WSNode.instance.[] : Both UI and ICMExchange | |
WSNode.instance.[]= : Both UI and ICMExchange | |
WSNode.instance.autoname : Both UI and ICMExchange | |
WSNode.instance.contains? : Both UI and ICMExchange | |
WSNode.instance.delete : Both UI and ICMExchange | |
WSNode.instance.field : Both UI and ICMExchange | |
WSNode.instance.id= : Both UI and ICMExchange | |
WSNode.instance.is_inside? : Both UI and ICMExchange | |
WSNode.instance.navigate : Both UI and ICMExchange | |
WSNode.instance.navigate1 : Both UI and ICMExchange | |
WSNode.instance.objects_in_polygon : Both UI and ICMExchange | |
WSNode.instance.method_missing : Both UI and ICMExchange | |
WSNode.instance.[] : Both UI and ICMExchange | |
WSNode.instance.[]= : Both UI and ICMExchange | |
WSNode.instance.autoname : Both UI and ICMExchange | |
WSNode.instance.contains? : Both UI and ICMExchange | |
WSNode.instance.delete : Both UI and ICMExchange | |
WSNode.instance.field : Both UI and ICMExchange | |
WSNode.instance.id= : Both UI and ICMExchange | |
WSNode.instance.is_inside? : Both UI and ICMExchange | |
WSNode.instance.navigate : Both UI and ICMExchange | |
WSNode.instance.navigate1 : Both UI and ICMExchange | |
WSNode.instance.objects_in_polygon : Both UI and ICMExchange | |
WSNode.instance.method_missing : Both UI and ICMExchange | |
WSLink.instance.[] : Both UI and ICMExchange | |
WSLink.instance.[]= : Both UI and ICMExchange | |
WSLink.instance.autoname : Both UI and ICMExchange | |
WSLink.instance.contains? : Both UI and ICMExchange | |
WSLink.instance.delete : Both UI and ICMExchange | |
WSLink.instance.field : Both UI and ICMExchange | |
WSLink.instance.id= : Both UI and ICMExchange | |
WSLink.instance.is_inside? : Both UI and ICMExchange | |
WSLink.instance.navigate : Both UI and ICMExchange | |
WSLink.instance.navigate1 : Both UI and ICMExchange | |
WSLink.instance.objects_in_polygon : Both UI and ICMExchange | |
WSLink.instance.method_missing : Both UI and ICMExchange | |
WSStructure.instance.[] : Both UI and ICMExchange | |
WSStructureRow.instance.[] : Both UI and ICMExchange | |
WSStructureRow.instance.[]= : Both UI and ICMExchange | |
WSStructureRow.instance.method_missing : Both UI and ICMExchange | |
WSRowObjectCollection.instance.each : Both UI and ICMExchange | |
WSRowObjectCollection.instance.[] : Both UI and ICMExchange | |
WSValidations.instance.each : Both UI and ICMExchange | |
WSSpatialBookmarks.instance.set_bookmark : Both UI and ICMExchange | |
WSSpatialBookmarks.instance.new_bookmark_from_selection : Both UI and ICMExchange | |
WSSpatialBookmarks.instance.delete_bookmark : Both UI and ICMExchange | |
WSSpatialBookmarks.instance.set_bookmark_bounds : Both UI and ICMExchange | |
WSSpatialBookmarks.instance.get_bookmark : Both UI and ICMExchange | |
WSSpatialBookmarks.instance.load_from_network : Both UI and ICMExchange | |
WSSpatialBookmarks.instance.save_to_network : Both UI and ICMExchange | |
WSSpatialBookmarks.instance.load_from_file : Both UI and ICMExchange | |
WSSpatialBookmarks.instance.save_to_file : Both UI and ICMExchange | |
WSDongleCheck.ICM_and_InfoNet_method : Innovyze Private method | |
WSDongleCheck.ICM_method : Innovyze Private method | |
WSDongleCheck.InfoNet_method : Innovyze Private method | |
WSDongleCheck.dep_method : Innovyze Private method | |
WSDongleCheck.internal_method : Innovyze Private method |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def try(object,method,args) | |
begin | |
object.method(method).call(*args) | |
rescue Exception => e | |
message = e.to_s #In general if you get a parameter type error, the method is likely runnable in the UI. | |
if (message =="The method cannot be run from the user interface") | |
message = "ICMExchange Only" | |
elsif message=="The method is for Innovyze internal use only, please check your licence." | |
message = "Innovyze Private method" | |
elsif message == "The method cannot be run from InfoWorks ICM" | |
message = "The method cannot be run from InfoWorks ICM" | |
end | |
puts (object.to_s + "." + method.to_s).ljust(80) + ":\t" + message | |
end | |
end | |
# \(([^:]*)\) | |
# \t\t\t\t\t\t\t\t,[$1]\) | |
req = 1; rest=1 | |
try(WSApplication,:add_ons_folder ,[]) | |
try(WSApplication,:compare_binary_results_files ,[req,req,req,req]) | |
try(WSApplication,:create ,[req]) | |
try(WSApplication,:create_transportable ,[req]) | |
try(WSApplication,:delete_temp_files? ,[]) | |
try(WSApplication,:delete_temp_files= ,[req]) | |
try(WSApplication,:local_root ,[]) | |
try(WSApplication,:working_folder ,[]) | |
try(WSApplication,:results_folder ,[]) | |
try(WSApplication,:log_event ,["",1]) | |
try(WSApplication,:open ,[req,req]) | |
try(WSApplication,:override_user_unit ,[req,req]) | |
try(WSApplication,:override_user_units ,[req]) | |
try(WSApplication,:override_working_folder ,[req]) | |
try(WSApplication,:script_file ,[]) | |
try(WSApplication,:set_exit_code ,[req]) | |
try(WSApplication,:set_local_root ,[req]) | |
try(WSApplication,:set_working_folder ,[req]) | |
try(WSApplication,:set_results_folder ,[req]) | |
try(WSApplication,:use_user_units ,[]) | |
try(WSApplication,:use_user_units? ,[]) | |
try(WSApplication,:use_user_units= ,[req]) | |
try(WSApplication,:version ,[]) | |
try(WSApplication,:post_debug ,[req]) | |
try(WSApplication,:connect_local_agent ,[req]) | |
try(WSApplication,:launch_sims ,[req,req,req,req,req]) | |
try(WSApplication,:use_arcgis_desktop_licence ,[]) | |
try(WSApplication,:wait_for_jobs ,[req,req,req]) | |
try(WSApplication,:cancel_job ,[req]) | |
try(WSApplication,:background_network ,[]) | |
try(WSApplication,:current_database ,[]) | |
try(WSApplication,:current_network ,[]) | |
try(WSApplication,:file_dialog ,[req,req,req,req,req,req]) | |
try(WSApplication,:folder_dialog ,[req,req]) | |
try(WSApplication,:input_box ,[req,req,req]) | |
try(WSApplication,:ui? ,[]) | |
try(WSApplication,:message_box ,[req,req,req,req]) | |
try(WSApplication,:open_text_view ,[req,req,req]) | |
try(WSApplication,:prompt ,[req,req,req]) | |
try(WSApplication,:scalars ,[req,req,req]) | |
db = WSApplication.current_database | |
try(db,:copy_into_root ,[req,req,req]) | |
try(db,:custom_schema ,[req]) | |
try(db,:file_root ,[]) | |
try(db,:find_model_object ,[req,req]) | |
try(db,:find_root_model_object ,[req,req]) | |
try(db,:guid ,[]) | |
try(db,:list_read_write_run_fields ,[]) | |
try(db,:model_object ,[req]) | |
try(db,:model_object_collection ,[req]) | |
try(db,:model_object_from_type_and_guid ,[req,req]) | |
try(db,:model_object_from_type_and_id ,[req,req]) | |
try(db,:new_network_name ,[req,req,req,req]) | |
try(db,:scripting_name_of_type ,[req]) | |
try(db,:new_model_object ,[req,req]) | |
try(db,:path ,[]) | |
try(db,:root_model_objects ,[]) | |
net = WSApplication.current_network | |
try(net,:add_scenario ,["My Scenario",nil,"This is a scenario"]) | |
try(net,:befdss_export ,[req,req,req,req,req]) | |
try(net,:befdss_import_cctv ,[req,req,req,req,req,req,req]) | |
try(net,:befdss_import_manhole_surveys ,[req,req,req,req,req,req,req]) | |
try(net,:cctv_standard ,[]) | |
try(net,:clear_selection ,[]) | |
try(net,:close ,[]) | |
try(net,:commit_bypassing_validation ,[req]) | |
try(net,:csv_export ,[req,req]) | |
try(net,:csv_import ,[req,req]) | |
try(net,:current_scenario ,[]) | |
try(net,:current_scenario= ,[req]) | |
try(net,:delete_scenario ,[req]) | |
try(net,:delete_selection ,[]) | |
try(net,:each ,[]) | |
try(net,:each_selected ,[]) | |
try(net,:field_choices ,[req,req]) | |
try(net,:field_choice_descriptions ,[req,req]) | |
try(net,:field_names ,[req]) | |
try(net,:get_projection_string ,[req]) | |
try(net,:get_projection_bounds ,[req]) | |
try(net,:get_string_pref ,[req,req,req]) | |
try(net,:geometry_mbr ,[req]) | |
try(net,:intersect ,[req]) | |
try(net,:load_selection ,[req]) | |
try(net,:mhsurvey_standard ,[]) | |
try(net,:new_row_object ,[req]) | |
try(net,:objects_in_polygon ,[req,req]) | |
try(net,:odic_import ,[rest]) | |
try(net,:odic_import_ex ,[rest]) | |
try(net,:odec_export ,[rest]) | |
try(net,:odec_export_ex ,[rest]) | |
try(net,:open_mo_layer_list ,[req]) | |
try(net,:put_string_pref ,[req,req]) | |
try(net,:row_object ,[req,req]) | |
try(net,:row_objects ,[req]) | |
try(net,:row_objects_from_asset_id ,[req,req]) | |
try(net,:row_object_collection ,[req]) | |
try(net,:row_object_collection_selection ,[req]) | |
try(net,:run_SQL ,[req,req]) | |
try(net,:save_selection ,[req]) | |
try(net,:scenarios ,[]) | |
try(net,:selection_size ,[]) | |
try(net,:search_at_point ,[req,req,req,req]) | |
try(net,:snapshot_export ,[req]) | |
try(net,:snapshot_import ,[req]) | |
try(net,:snapshot_scan ,[req]) | |
try(net,:snapshot_export_ex ,[req,req]) | |
try(net,:snapshot_import_ex ,[req,req]) | |
try(net,:table_names ,[]) | |
try(net,:table ,[req]) | |
try(net,:tables ,[]) | |
try(net,:thin_and_clean_polygons ,[req]) | |
try(net,:transaction_begin ,[]) | |
try(net,:transaction_commit ,[]) | |
try(net,:transaction_rollback ,[]) | |
try(net,:update_cctv_scores ,[]) | |
try(net,:update_cctv_scores_std ,[req]) | |
try(net,:validate ,[req]) | |
try(net,:commit ,[req]) | |
try(net,:revert ,[]) | |
try(net,:run_inference ,[req,req,req,req,req]) | |
try(net,:run_stored_query_object ,[req]) | |
#WSOpenNetwork | |
mo = WSApplication.current_database.model_object_from_type_and_id("Model group",2250) | |
try(mo,"[]".to_sym ,[req]) | |
try(mo,"[]=".to_sym ,[req,req]) | |
try(mo,:bulk_delete ,[]) | |
try(mo,:children ,[]) | |
try(mo,:comment ,[]) | |
try(mo,"comment=".to_sym ,[req]) | |
try(mo,:compare ,[req]) | |
try(mo,:compare_results_to_file ,[req,req,req]) | |
try(mo,:compare_to_csv ,[req,req,req]) | |
try(mo,:copy_here ,[req,req,req]) | |
try(mo,:csv_import_tvd ,[req,req,req]) | |
try(mo,:deletable? ,[]) | |
try(mo,:delete ,[]) | |
try(mo,:delete_results ,[]) | |
try(mo,:duplicate_model_object ,[req]) | |
try(mo,:export ,[req,req]) | |
try(mo,:find_child_object ,[req,req]) | |
try(mo,:find_child_model_object ,[req,req]) | |
try(mo,:id ,[]) | |
try(mo,:import_data ,[req,req]) | |
try(mo,:import_new_model_object ,[req,req,req,req,req]) | |
try(mo,:import_grid_ground_model ,[req,req,req]) | |
try(mo,:import_layer_list ,[req,req]) | |
try(mo,:import_tvd ,[req,req,req]) | |
try(mo,:modified_by ,[]) | |
try(mo,:name= ,[req]) | |
try(mo,:new_model_object ,[req,req]) | |
try(mo,:new_run ,[req,req,req,req,req,req]) | |
try(mo,:new_risk_analysis_run ,[req,req,req,req]) | |
try(mo,:new_synthetic_rainfall ,[req,req,req]) | |
try(mo,:open ,[]) | |
try(mo,:open_version ,[req]) | |
try(mo,:parent_type ,[]) | |
try(mo,:parent_id ,[]) | |
try(mo,:path ,[]) | |
try(mo,:tvd_unit_type ,[]) | |
try(mo,:tvd_unit_type= ,[req]) | |
try(mo,:type ,[]) | |
try(mo,:update_dashboard ,[]) | |
try(mo,:update_to_latest ,[]) | |
#WSNumbatNetwork | |
mo = WSApplication.current_database.model_object_from_type_and_id("Model Network",2249) | |
try(mo,:befdss_export ,[req,req,req,req,req]) | |
try(mo,:befdss_import_cctv ,[req,req,req,req,req,req,req]) | |
try(mo,:befdss_import_manhole_surveys ,[req,req,req,req,req,req,req]) | |
try(mo,:cctv_standard ,[]) | |
try(mo,:choices ,[req,req]) | |
try(mo,:commit ,[req]) | |
try(mo,:commits ,[]) | |
try(mo,:commit_reserve ,[req]) | |
try(mo,:csv_changes ,[req,req,req]) | |
try(mo,:csv_changes_inm ,[req,req,req]) | |
try(mo,:csv_export ,[req,req]) | |
try(mo,:csv_import ,[req,req]) | |
try(mo,:current_commit_id ,[]) | |
try(mo,:field_choices ,[req,req]) | |
try(mo,:field_choice_descriptions ,[req,req]) | |
try(mo,:get_projection_string ,[req]) | |
try(mo,:get_projection_bounds ,[req]) | |
try(mo,:latest_commit_id ,[]) | |
try(mo,:mhsurvey_standard ,[]) | |
try(mo,:odic_import ,[rest]) | |
try(mo,:odic_import_ex ,[rest]) | |
try(mo,:odec_export ,[rest]) | |
try(mo,:odec_export_ex ,[rest]) | |
try(mo,:remove_local ,[]) | |
try(mo,:reserve ,[]) | |
try(mo,:revert ,[]) | |
try(mo,:select_sql ,[req,req]) | |
try(mo,:select_clear ,[]) | |
try(mo,:select_count ,[]) | |
try(mo,:select_changes ,[req]) | |
try(mo,:uncommitted_changes? ,[]) | |
try(mo,:unreserve ,[]) | |
try(mo,:update ,[]) | |
try(mo,:user_field_names ,[req,req]) | |
try(mo,:[] ,[req]) | |
try(mo,:[]= ,[req,req]) | |
try(mo,:bulk_delete ,[]) | |
try(mo,:children ,[]) | |
try(mo,:comment ,[]) | |
try(mo,:comment= ,[req]) | |
try(mo,:compare ,[req]) | |
try(mo,:compare_results_to_file ,[req,req,req]) | |
try(mo,:compare_to_csv ,[req,req,req]) | |
try(mo,:copy_here ,[req,req,req]) | |
try(mo,:csv_import_tvd ,[req,req,req]) | |
try(mo,:deletable? ,[]) | |
try(mo,:delete ,[]) | |
try(mo,:delete_results ,[]) | |
try(mo,:duplicate_model_object ,[req]) | |
try(mo,:export ,[req,req]) | |
try(mo,:find_child_object ,[req,req]) | |
try(mo,:find_child_model_object ,[req,req]) | |
try(mo,:id ,[]) | |
try(mo,:import_data ,[req,req]) | |
try(mo,:import_new_model_object ,[req,req,req,req,req]) | |
try(mo,:import_grid_ground_model ,[req,req,req]) | |
try(mo,:import_layer_list ,[req,req]) | |
try(mo,:import_tvd ,[req,req,req]) | |
try(mo,:modified_by ,[]) | |
try(mo,:name= ,[req]) | |
try(mo,:new_model_object ,[req,req]) | |
try(mo,:new_run ,[req,req,req,req,req,req]) | |
try(mo,:new_risk_analysis_run ,[req,req,req,req]) | |
try(mo,:new_synthetic_rainfall ,[req,req,req]) | |
try(mo,:open ,[]) | |
try(mo,:open_version ,[req]) | |
try(mo,:parent_type ,[]) | |
try(mo,:parent_id ,[]) | |
try(mo,:path ,[]) | |
try(mo,:tvd_unit_type ,[]) | |
try(mo,:tvd_unit_type= ,[req]) | |
try(mo,:type ,[]) | |
try(mo,:update_dashboard ,[]) | |
try(mo,:update_to_latest ,[]) | |
#WSSimObject | |
mo = WSApplication.current_database.model_object_from_type_and_id("Sim",1874) | |
try(mo,:list_max_results_attributes ,[]) | |
try(mo,:list_results_attributes ,[]) | |
try(mo,:list_results_GIS_export_tables ,[]) | |
try(mo,:list_timesteps ,[]) | |
try(mo,:max_results_binary_export ,[req,req,req]) | |
try(mo,:max_results_csv_export ,[req,req,req]) | |
try(mo,:results_binary_export ,[req,req,req]) | |
try(mo,:results_csv_export ,[req,req]) | |
try(mo,:results_csv_export_ex ,[req,req,req]) | |
try(mo,:results_GIS_export ,[req,req,req,req]) | |
try(mo,:results_path ,[]) | |
try(mo,:run ,[]) | |
try(mo,:run_ex ,[req,req]) | |
try(mo,:status ,[]) | |
try(mo,:success_substatus ,[]) | |
try(mo,:single_result_csv_export ,[req,req,req,req]) | |
try(mo,:timestep_count ,[]) | |
try(mo,:bodge_for_Mark ,[req,req]) | |
try(mo,:[] ,[req]) | |
try(mo,:[]= ,[req,req]) | |
try(mo,:bulk_delete ,[]) | |
try(mo,:children ,[]) | |
try(mo,:comment ,[]) | |
try(mo,:comment= ,[req]) | |
try(mo,:compare ,[req]) | |
try(mo,:compare_results_to_file ,[req,req,req]) | |
try(mo,:compare_to_csv ,[req,req,req]) | |
try(mo,:copy_here ,[req,req,req]) | |
try(mo,:csv_import_tvd ,[req,req,req]) | |
try(mo,:deletable? ,[]) | |
try(mo,:delete ,[]) | |
try(mo,:delete_results ,[]) | |
try(mo,:duplicate_model_object ,[req]) | |
try(mo,:export ,[req,req]) | |
try(mo,:find_child_object ,[req,req]) | |
try(mo,:find_child_model_object ,[req,req]) | |
try(mo,:id ,[]) | |
try(mo,:import_data ,[req,req]) | |
try(mo,:import_new_model_object ,[req,req,req,req,req]) | |
try(mo,:import_grid_ground_model ,[req,req,req]) | |
try(mo,:import_layer_list ,[req,req]) | |
try(mo,:import_tvd ,[req,req,req]) | |
try(mo,:modified_by ,[]) | |
try(mo,:name= ,[req]) | |
try(mo,:new_model_object ,[req,req]) | |
try(mo,:new_run ,[req,req,req,req,req,req]) | |
try(mo,:new_risk_analysis_run ,[req,req,req,req]) | |
try(mo,:new_synthetic_rainfall ,[req,req,req]) | |
try(mo,:open ,[]) | |
try(mo,:open_version ,[req]) | |
try(mo,:parent_type ,[]) | |
try(mo,:parent_id ,[]) | |
try(mo,:path ,[]) | |
try(mo,:tvd_unit_type ,[]) | |
try(mo,:tvd_unit_type= ,[req]) | |
try(mo,:type ,[]) | |
try(mo,:update_dashboard ,[]) | |
try(mo,:update_to_latest ,[]) | |
mo = WSApplication.current_database.model_object_from_type_and_id("Risk analysis run",2277) | |
try(mo,:run ,[]) | |
try(mo,:run_ex ,[req]) | |
try(mo,:[] ,[req]) | |
try(mo,:[]= ,[req,req]) | |
try(mo,:bulk_delete ,[]) | |
try(mo,:children ,[]) | |
try(mo,:comment ,[]) | |
try(mo,:comment= ,[req]) | |
try(mo,:compare ,[req]) | |
try(mo,:compare_results_to_file ,[req,req,req]) | |
try(mo,:compare_to_csv ,[req,req,req]) | |
try(mo,:copy_here ,[req,req,req]) | |
try(mo,:csv_import_tvd ,[req,req,req]) | |
try(mo,:deletable? ,[]) | |
try(mo,:delete ,[]) | |
try(mo,:delete_results ,[]) | |
try(mo,:duplicate_model_object ,[req]) | |
try(mo,:export ,[req,req]) | |
try(mo,:find_child_object ,[req,req]) | |
try(mo,:find_child_model_object ,[req,req]) | |
try(mo,:id ,[]) | |
try(mo,:import_data ,[req,req]) | |
try(mo,:import_new_model_object ,[req,req,req,req,req]) | |
try(mo,:import_grid_ground_model ,[req,req,req]) | |
try(mo,:import_layer_list ,[req,req]) | |
try(mo,:import_tvd ,[req,req,req]) | |
try(mo,:modified_by ,[]) | |
try(mo,:name= ,[req]) | |
try(mo,:new_model_object ,[req,req]) | |
try(mo,:new_run ,[req,req,req,req,req,req]) | |
try(mo,:new_risk_analysis_run ,[req,req,req,req]) | |
try(mo,:new_synthetic_rainfall ,[req,req,req]) | |
try(mo,:open ,[]) | |
try(mo,:open_version ,[req]) | |
try(mo,:parent_type ,[]) | |
try(mo,:parent_id ,[]) | |
try(mo,:path ,[]) | |
try(mo,:tvd_unit_type ,[]) | |
try(mo,:tvd_unit_type= ,[req]) | |
try(mo,:type ,[]) | |
try(mo,:update_dashboard ,[]) | |
try(mo,:update_to_latest ,[]) | |
moc = WSApplication.current_database.model_object_collection("Model Group") | |
try(moc,:[] ,[req]) | |
try(moc,:each ,[]) | |
try(moc,:count ,[]) | |
# \(([^:]*)\) | |
# \t\t\t\t\t\t\t\t,[$1]\) | |
ro = WSApplication.current_network.row_objects("_nodes")[0] | |
try(ro,:[] ,[req]) | |
try(ro,:[]= ,[req,req]) | |
try(ro,:autoname ,[]) | |
try(ro,:category ,[]) | |
try(ro,:contains? ,[req]) | |
try(ro,:delete ,[]) | |
try(ro,:field ,[req]) | |
try(ro,:id ,[]) | |
try(ro,:id= ,[req]) | |
try(ro,:is_inside? ,[req]) | |
try(ro,:navigate ,[req]) | |
try(ro,:navigate1 ,[req]) | |
try(ro,:objects_in_polygon ,[req]) | |
try(ro,:selected ,[]) | |
try(ro,:selected? ,[]) | |
try(ro,:selected= ,[req]) | |
try(ro,:table ,[]) | |
try(ro,:table_info ,[]) | |
try(ro,:write ,[]) | |
try(ro,:method_missing ,[:abc]) | |
try(ro,:ds_links ,[]) | |
try(ro,:us_links ,[]) | |
try(ro,:[] ,[req]) | |
try(ro,:[]= ,[req,req]) | |
try(ro,:autoname ,[]) | |
try(ro,:category ,[]) | |
try(ro,:contains? ,[req]) | |
try(ro,:delete ,[]) | |
try(ro,:field ,[req]) | |
try(ro,:id ,[]) | |
try(ro,:id= ,[req]) | |
try(ro,:is_inside? ,[req]) | |
try(ro,:navigate ,[req]) | |
try(ro,:navigate1 ,[req]) | |
try(ro,:objects_in_polygon ,[req]) | |
try(ro,:selected ,[]) | |
try(ro,:selected? ,[]) | |
try(ro,:selected= ,[req]) | |
try(ro,:table ,[]) | |
try(ro,:table_info ,[]) | |
try(ro,:write ,[]) | |
try(ro,:method_missing ,[:abc]) | |
ro = WSApplication.current_network.row_objects("_links")[0] | |
try(ro,:us_node ,[]) | |
try(ro,:ds_node ,[]) | |
try(ro,:[] ,[req]) | |
try(ro,:[]= ,[req,req]) | |
try(ro,:autoname ,[]) | |
try(ro,:category ,[]) | |
try(ro,:contains? ,[req]) | |
try(ro,:delete ,[]) | |
try(ro,:field ,[req]) | |
try(ro,:id ,[]) | |
try(ro,:id= ,[req]) | |
try(ro,:is_inside? ,[req]) | |
try(ro,:navigate ,[req]) | |
try(ro,:navigate1 ,[req]) | |
try(ro,:objects_in_polygon ,[req]) | |
try(ro,:selected ,[]) | |
try(ro,:selected? ,[]) | |
try(ro,:selected= ,[req]) | |
try(ro,:table ,[]) | |
try(ro,:table_info ,[]) | |
try(ro,:write ,[]) | |
try(ro,:method_missing ,[:abc]) | |
#Test structure | |
ro=WSApplication.current_network.row_objects("_nodes")[0] | |
ti = ro.table_info | |
fields = ti.fields | |
strct = ro["hyperlinks"] | |
try(strct,:each ,[]) | |
try(strct,:length ,[]) | |
try(strct,:length= ,[req]) | |
try(strct,:size ,[]) | |
try(strct,:size= ,[req]) | |
try(strct,:[] ,[req]) | |
try(strct,:write ,[]) | |
struct_ro = strct[0] | |
try(struct_ro,:[] ,[req]) | |
try(struct_ro,:[]= ,[req,req]) | |
try(struct_ro,:method_missing ,[:abc]) | |
roc = WSApplication.current_network.row_object_collection("_nodes") | |
try(roc,:each ,[]) | |
try(roc,:length ,[]) | |
try(roc,:[] ,[req]) | |
#ti already initialised | |
try(ti,:description ,[]) | |
try(ti,:fields ,[]) | |
try(ti,:name ,[]) | |
try(ti,:fields ,[]) | |
try(ti,:results_fields ,[]) | |
field = fields[0] | |
try(field,:description ,[]) | |
try(field,:fields ,[]) | |
try(field,:data_type ,[]) | |
try(field,:read_only? ,[]) | |
vs = WSApplication.current_network.validate('Base') | |
try(vs,:each ,[]) | |
try(vs,:length ,[]) | |
try(vs,:[] ,[req]) | |
try(vs,:error_count ,[]) | |
try(vs,:warning_count ,[]) | |
v = vs[0] | |
try(v,:code ,[]) | |
try(v,:field ,[]) | |
try(v,:field_description ,[]) | |
try(v,:object_type ,[]) | |
try(v,:message ,[]) | |
try(v,:priority ,[]) | |
try(v,:type ,[]) | |
try(v,:scenario ,[]) | |
#Instance WSSpatialBookmarks | |
sb = WSSpatialBookmarks.new | |
try(sb,:set_bookmark ,[req,req,req,req,req,req]) | |
try(sb,:new_bookmark_from_selection ,[req,req,req,req]) | |
try(sb,:delete_bookmark ,[req]) | |
try(sb,:set_bookmark_bounds ,[req,req,req]) | |
try(sb,:get_bookmark ,[req]) | |
try(sb,:load_from_network ,[req]) | |
try(sb,:save_to_network ,[req]) | |
try(sb,:load_from_file ,[req]) | |
try(sb,:save_to_file ,[req]) | |
dc = WSDongleCheck.new | |
try(dc,:ICM_and_InfoNet_method ,[]) | |
try(dc,:ICM_method ,[]) | |
try(dc,:InfoNet_method ,[]) | |
try(dc,:dep_method ,[]) | |
try(dc,:internal_method ,[]) | |
#ALL WSCommits and WSCommit methods are exchangeOnly! | |
# begin | |
# mo = WSApplication.current_database.model_object_from_type_and_id("Model Network",2249) | |
# commits = mo.commits | |
# exchangeOnly=false | |
# rescue Exception => e | |
# if e = ... | |
# exchangeOnly=true | |
# else | |
# privateMethod=true | |
# end | |
# end | |
# WSCommits.instance.each() | |
# WSCommits.instance.length() | |
# WSCommits.instance.[](req) | |
# WSCommit.instance.branch_id() | |
# WSCommit.instance.comment() | |
# WSCommit.instance.commit_id() | |
# WSCommit.instance.date() | |
# WSCommit.instance.deleted_count() | |
# WSCommit.instance.inserted_count() | |
# WSCommit.instance.modified_count() | |
# WSCommit.instance.setting_changed_count() | |
# WSCommit.instance.user() | |
#PRIVATE CLASSES | |
# WSIntersect2.instance.csv_in(req) | |
# WSIntersect2.instance.csv_out(req) | |
# WSIntersect2.instance.html_logger(req) | |
# WSIntersect2.instance.csv_load_failed_polylines(req) | |
# WSIntersect2.instance.csv_load_failed_polygons(req) | |
# WSIntersect2.instance.csv_load_ignored_holes(req) | |
# WSIntersect2.instance.xml_debug_intersection(req) | |
# WSIntersect2.instance.xml_intersection_state(req) | |
# WSIntersect2.instance.thinning(req,req,req) | |
# WSIntersect2.instance.range_restriction(req,req,req) | |
# WSIntersect2.instance.cycle_face_id_containment() | |
# WSIntersect2.instance.modify(req,req,req,req,req,req,req) | |
# WSIntersect2.instance.compare(req,req) | |
# WSIntersect2.instance.mask_get_point(req) | |
# WSIntersect2.instance.mask_get_polyline(req) | |
# WSIntersect2.instance.mask_get_polygon(req) | |
# WSIntersect2.instance.do_it() | |
# WSIntersect2.instance.set_lds(req) | |
# WSIntersect2.instance.polygon_category(req) | |
# WSIntersect2.instance.debug_on(req) | |
# WSIntersect2.instance.create_polygons() | |
# WSIntersect2.instance.log_load_statistics() | |
# WSIntersect2.instance.log_points() | |
# WSIntersect2.instance.log_polylines() | |
# WSIntersect2.instance.log_polygons() | |
# WSPolygon.instance.add_attribute(req,req,req) | |
# WSPolygon.instance.area() | |
# WSPolygon.instance.bounds() | |
# WSPolygon.instance.count_attribute_sets() | |
# WSPolygon.instance.get_attribute(req,req) | |
# WSPolygon.instance.ids() | |
# WSPolygon.instance.id_coords(req,req) | |
# WSPolygon.instance.is_valid() | |
# WSPolygon.instance.valid?() | |
# WSPolygon.instance.push_back(req,req) | |
# WSPolygon.instance.reserve(req) | |
# WSPolygon.instance.to_xml(req) | |
# WSIWPolygon.instance.set_coords_and_area(req) | |
# WSIWPolygon.instance.[](req) | |
# WSIWPolygon.instance.[]=(req,req) | |
# WSIWPolygon.instance.autoname() | |
# WSIWPolygon.instance.category() | |
# WSIWPolygon.instance.contains?(req) | |
# WSIWPolygon.instance.delete() | |
# WSIWPolygon.instance.field(req) | |
# WSIWPolygon.instance.id() | |
# WSIWPolygon.instance.id=(req) | |
# WSIWPolygon.instance.is_inside?(req) | |
# WSIWPolygon.instance.navigate(req) | |
# WSIWPolygon.instance.navigate1(req) | |
# WSIWPolygon.instance.objects_in_polygon(req) | |
# WSIWPolygon.instance.selected() | |
# WSIWPolygon.instance.selected?() | |
# WSIWPolygon.instance.selected=(req) | |
# WSIWPolygon.instance.table() | |
# WSIWPolygon.instance.table_info() | |
# WSIWPolygon.instance.write() | |
# WSIWPolygon.instance.method_missing(rest) | |
# WSBounds.instance.clear() | |
# WSBounds.instance.add_coord(req,req) | |
# WSBounds.instance.add_bounds(req) | |
# WSBounds.instance.set(req,req,req,req) | |
# WSBounds.instance.valid() | |
# WSBounds.instance.valid?() | |
# WSBounds.instance.inside(req,req) | |
# WSBounds.instance.overlap(req) | |
# WSBounds.instance.xmin() | |
# WSBounds.instance.xmax() | |
# WSBounds.instance.ymin() | |
# WSBounds.instance.ymax() | |
# WSBounds.instance.cx() | |
# WSBounds.instance.cy() | |
# WSBounds.instance.dx() | |
# WSBounds.instance.dy() | |
# WSBounds.instance.inflate(req) | |
# WSNetSelectionList.instance.count(req) | |
# WSNetSelectionList.instance.from_row_objects(req) | |
# WSNetSelectionList.instance.group_count() | |
# WSNetSelectionList.instance.group_description(req) | |
# WSNetSelectionList.instance.group_type(req) | |
# WSNetSelectionList.instance.load_from_network(req,req) | |
# WSNetSelectionList.instance.make_selections_in_network(req,req) | |
# WSNetSelectionList.instance.save_to_selection_mo(req) | |
# WSNetSelectionList.instance.to_row_objects(req) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment