<?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 Revit 2020 ImageInstance in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-imageinstance/m-p/9699433#M32393</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a problem with the new ImageInstance in Revit 2020.&lt;/P&gt;&lt;P&gt;For most users my code (shown below) works fine and the image is inserted at the right size in the right location however one of my users experiences an error even when loading exactly the same image as everyone else.&lt;/P&gt;&lt;P&gt;Any advise on how to fix this?...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"PicturePath" is a string, full file path of the .JPG image&lt;/P&gt;&lt;P&gt;TheSheet is a ViewSheet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;	try
    {
        ImageTypeOptions imagetypeoptions = new ImageTypeOptions("PicturePath");
        ImageType imagetype = ImageType.Create(doc, imagetypeoptions);
        ImageInstance ii = ImageInstance.Create(doc, TheSheet, imagetype.Id, new ImagePlacementOptions());
        ii.Height = 0.3;
        ii.SetLocation(new XYZ(0.10, 0.008, 0), BoxPlacement.BottomRight);
    }
    catch (Exception e)
    {
        TaskDialog.Show("Image Error", e.Message);
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Aug 2020 10:29:04 GMT</pubDate>
    <dc:creator>miketurpin_innovatingfutures</dc:creator>
    <dc:date>2020-08-19T10:29:04Z</dc:date>
    <item>
      <title>Revit 2020 ImageInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-imageinstance/m-p/9699433#M32393</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having a problem with the new ImageInstance in Revit 2020.&lt;/P&gt;&lt;P&gt;For most users my code (shown below) works fine and the image is inserted at the right size in the right location however one of my users experiences an error even when loading exactly the same image as everyone else.&lt;/P&gt;&lt;P&gt;Any advise on how to fix this?...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"PicturePath" is a string, full file path of the .JPG image&lt;/P&gt;&lt;P&gt;TheSheet is a ViewSheet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;	try
    {
        ImageTypeOptions imagetypeoptions = new ImageTypeOptions("PicturePath");
        ImageType imagetype = ImageType.Create(doc, imagetypeoptions);
        ImageInstance ii = ImageInstance.Create(doc, TheSheet, imagetype.Id, new ImagePlacementOptions());
        ii.Height = 0.3;
        ii.SetLocation(new XYZ(0.10, 0.008, 0), BoxPlacement.BottomRight);
    }
    catch (Exception e)
    {
        TaskDialog.Show("Image Error", e.Message);
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2020 10:29:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-imageinstance/m-p/9699433#M32393</guid>
      <dc:creator>miketurpin_innovatingfutures</dc:creator>
      <dc:date>2020-08-19T10:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: Revit 2020 ImageInstance</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-imageinstance/m-p/9706773#M32394</link>
      <description>&lt;P&gt;Run your code in the debugger so you can see the exact values of each and every argument in every single function call. There is obviously something going on that you are not aware of and you cannot tell us, so you need to take a closer look to find out what.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 23 Aug 2020 15:33:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-2020-imageinstance/m-p/9706773#M32394</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-08-23T15:33:19Z</dc:date>
    </item>
  </channel>
</rss>

