/// <summary>
        /// 静默加载 Iges文件 Tries to load an iges file invisibly. Throws an exception if it doesn't work.
        /// </summary>
        /// <param name="sldWorks"></param>
        /// <param name="igesFile"></param>
        /// <param name="visible"></param>
        /// <returns></returns>
        public static ModelDoc2 LoadIgesInvisible(this ISldWorks sldWorks, string igesFile, bool visible = false)
        {
            var swDocPart = (int)swDocumentTypes_e.swDocPART;

            try
            {
                if (!visible)
                {
                    sldWorks.DocumentVisible(false, swDocPart);
                }

                ImportIgesData swImportData =
                    (ImportIgesData)sldWorks.GetImportFileData(igesFile);

                int err    = 0;
                var newDoc = sldWorks.LoadFile4(igesFile, "r", swImportData, ref err);
                if (err != 0)
                {
                    throw new Exception(@"Unable to load file {igesFile");
                }

                return(newDoc);
            }
            finally
            {
                if (!visible)
                {
                    sldWorks.DocumentVisible
                        (true,
                        swDocPart);
                }
            }
        }