XSI – Import Model

protected Model ImportModel(String in_FileName) {
    Model retModel = null;
    try { Object[] args = new Object[7] { in_FileName, null, false, null, null, siImportShareOptions.siImportShareOptionsAll, null }; 
        Object[] rtn = (Object[])m_xsi.ExecuteCommand("ImportModel", args); 
        retModel = (Model)rtn.GetValue(0);
    } 
    catch (Exception e) { 
        Error("Exception Raised : " + e.ToString()); 
    } 
    return retModel; 
}