XSI Code Snippets


Another page with a collection of stuff that I seem to be looking through old code to find (because of holes in XSI’s documentation). I program mainly in C# and JScript so that’s what is documented here.

XSI Commands

ImportModel()

C#

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; 
}

JScript