<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: HOW TO INSERT A SID IMAGE in AutoCAD Map 3D Developer Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/how-to-insert-a-sid-image/m-p/12060921#M91</link>
    <description>&lt;P&gt;Are you sure Map 3D can import *.sid file?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 13:39:47 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2023-06-26T13:39:47Z</dc:date>
    <item>
      <title>HOW TO INSERT A SID IMAGE</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/how-to-insert-a-sid-image/m-p/12051379#M90</link>
      <description>&lt;P&gt;I have the following command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is failing at the line&amp;nbsp;importer.Init("SID", "C:\\Users\\xxx\\Documents\\Work Files\\_tst\\RIDG-A-1003.sid");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[CommandMethod("InsertSIDImage")]&lt;BR /&gt;public void InsertSIDImage()&lt;BR /&gt;{&lt;BR /&gt;// Get the active document and database&lt;BR /&gt;Document ThisDrawing = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;&lt;BR /&gt;Database Database1 = ThisDrawing.Database;&lt;BR /&gt;using (DocumentLock lock1 = ThisDrawing.LockDocument())&lt;BR /&gt;{&lt;BR /&gt;// Start a transaction&lt;BR /&gt;using (Transaction Trans1 = Database1.TransactionManager.StartTransaction())&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;BlockTableRecord BTrecord = Trans1.GetObject(ThisDrawing.Database.CurrentSpaceId, OpenMode.ForWrite) as BlockTableRecord;&lt;/P&gt;&lt;P&gt;try&lt;BR /&gt;{&lt;BR /&gt;MapApplication Acmap = HostMapApplicationServices.Application;&lt;BR /&gt;Importer importer = Acmap.Importer;&lt;BR /&gt;&lt;BR /&gt;importer.Init("SID", "C:\\Users\\xxx\\Documents\\Work Files\\_tst\\RIDG-A-1003.sid");&lt;BR /&gt;&lt;BR /&gt;ImportResults results;&lt;BR /&gt;results = importer.Import(true);&lt;BR /&gt;}&lt;BR /&gt;catch (Autodesk.Gis.Map.MapImportExportException ex)&lt;BR /&gt;{&lt;BR /&gt;// Check if ex has more specific properties related to the error&lt;BR /&gt;MessageBox.Show(ex.Message);&lt;BR /&gt;if (ex.InnerException != null)&lt;BR /&gt;{&lt;BR /&gt;MessageBox.Show("Inner Exception: " + ex.InnerException.Message);&lt;BR /&gt;}&lt;BR /&gt;MessageBox.Show("Stack Trace: " + ex.StackTrace);&lt;BR /&gt;}&lt;BR /&gt;catch (System.Exception ex)&lt;BR /&gt;{&lt;BR /&gt;MessageBox.Show(ex.Message);&lt;BR /&gt;if (ex.InnerException != null)&lt;BR /&gt;{&lt;BR /&gt;MessageBox.Show("Inner Exception: " + ex.InnerException.Message);&lt;BR /&gt;}&lt;BR /&gt;MessageBox.Show("Stack Trace: " + ex.StackTrace);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trans1.Commit();&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 21:31:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/how-to-insert-a-sid-image/m-p/12051379#M90</guid>
      <dc:creator>dancalgary</dc:creator>
      <dc:date>2023-06-21T21:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO INSERT A SID IMAGE</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/how-to-insert-a-sid-image/m-p/12060921#M91</link>
      <description>&lt;P&gt;Are you sure Map 3D can import *.sid file?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 13:39:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/how-to-insert-a-sid-image/m-p/12060921#M91</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2023-06-26T13:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO INSERT A SID IMAGE</title>
      <link>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/how-to-insert-a-sid-image/m-p/12060948#M92</link>
      <description>&lt;P&gt;*.sid file is kind of image file, not data file (the data as geometries), thus, you do not use Map's ImportExport API to import it, you insert the image into map drawing. This discussion in the C3D forum would be of help:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/civil-3d-forum/importing-sid-from-gis-to-autocad/td-p/7638421" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/civil-3d-forum/importing-sid-from-gis-to-autocad/td-p/7638421&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 13:48:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-map-3d-developer-forum/how-to-insert-a-sid-image/m-p/12060948#M92</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2023-06-26T13:48:57Z</dc:date>
    </item>
  </channel>
</rss>

