Skip to content

Importing multiple file types through Ruby in Innovyze ICM #29

@KashyapAnurag

Description

@KashyapAnurag

I am trying to import multiple layers thrrough following ruby script, but it is not able to generate the layers,
FYI:
i have given "nil" for no configuration file for automapping

Code:
nw = WSApplication.current_network
badger =Hash.new
badger['Duplicate Behaviour'] = 'Replace'

base_path = "C:\Users\Tabs" #file paths

tab_file1 = "#{base_path}\SEWERS_PROJ.tab"
tab_file2 = "#{base_path}\MANHOLES.tab"

nw.odic_import_ex('TAB', nil , badger, 'Conduit', tab_file1)
nw.odic_import_ex('TAB', nil , badger, 'Node', tab_file2)

Can i know how to import it correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions