<?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: Temporary Graphics of a Line in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-graphics-of-a-line/m-p/4994528#M76913</link>
    <description>&lt;P&gt;Thanks for your reply! &amp;nbsp;I'm kinda bummed that I don't have access to that API, because I feel like i woule be a great help for the user to see what I'm going to draw, before I draw it.&lt;SPAN style="line-height: 1.2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking abou it more, and it's probably what you were leading to with the Windows API, but I would think I would be able to generate a new form with the Revit Window's dimensions, have a PictureBox with the same dimensions as the form, set it's BackgroundImage to a screencapture of the Revit window. &amp;nbsp;Then draw the line in the PictureBox with the MouseMove. &amp;nbsp;But, you'd have to take into account the coordinates of the form vs. Revit, and the zooming and panning the user might want to do. &amp;nbsp;That's too much work for what I'm looking to do, but, I feel like this could be a workaround, if someone needed to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the feedback!!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Apr 2014 00:29:09 GMT</pubDate>
    <dc:creator>atiefenbach</dc:creator>
    <dc:date>2014-04-28T00:29:09Z</dc:date>
    <item>
      <title>Temporary Graphics of a Line</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-graphics-of-a-line/m-p/4991350#M76911</link>
      <description>&lt;P&gt;I've trying to temporarily display a line staring from a PickPoint to the cursor, while the user is selecting their second PickPoint. &amp;nbsp;I saw this post:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/Revit-API/Temporary-Graphics-like-GRDRAW-or-GRVECS/m-p/3743360#M3462" title="Temporary Graphics like GRDRAW o GRVECS" target="_blank"&gt;Temporary Graphics like GRDRAW o GRVECS&lt;/A&gt; &amp;nbsp;Which is similar to what I'm looking for and I saw mention of the Analysis Framework to create some temporary graphics, but I didn't see anything about lines. &amp;nbsp;Is there some sample code or another way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2014 18:06:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-graphics-of-a-line/m-p/4991350#M76911</guid>
      <dc:creator>atiefenbach</dc:creator>
      <dc:date>2014-04-25T18:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary Graphics of a Line</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-graphics-of-a-line/m-p/4994380#M76912</link>
      <description>&lt;P&gt;Dear Anthony,&lt;/P&gt;
&lt;P&gt;Thank you for your query.&lt;/P&gt;
&lt;P&gt;Basically, I cannot add anything beyond what was said in the previous post that you pointed to by Joe Ye, Arnošt Löbel and Revitalizer.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://forums.autodesk.com/t5/Revit-API/Temporary-Graphics-like-GRDRAW-or-GRVECS/m-p/3743360" target="_blank"&gt;http://forums.autodesk.com/t5/Revit-API/Temporary-Graphics-like-GRDRAW-or-GRVECS/m-p/3743360&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Revit does not expose any API to create transient graphics, except the Analysis Visualisation Framework AVF.&lt;/P&gt;
&lt;P&gt;Its purpose is to display analysis results, e.g. by colouring faces.&lt;/P&gt;
&lt;P&gt;I do not believe you can use it to display single lines.&lt;/P&gt;
&lt;P&gt;You could use it to display a thin coloured cylinder to approximate a line, if you like.&lt;/P&gt;
&lt;P&gt;Here are some meaningful usage examples:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2011/12/using-avf-to-display-intersections-and-highlight-rooms.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2011/12/using-avf-to-display-intersections-and-highlight-rooms.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I do not believe you could hook it up to display a dynamic line to the cursor, though.&lt;/P&gt;
&lt;P&gt;It could be used to display the thin cylinder once, but probably not to redisplay it dynamically as the cursor moves around.&lt;/P&gt;
&lt;P&gt;The only way to achieve that right now would probably be through inofficial unsupported use of the Windows API.&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;</description>
      <pubDate>Sun, 27 Apr 2014 20:07:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-graphics-of-a-line/m-p/4994380#M76912</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2014-04-27T20:07:41Z</dc:date>
    </item>
    <item>
      <title>Re: Temporary Graphics of a Line</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/temporary-graphics-of-a-line/m-p/4994528#M76913</link>
      <description>&lt;P&gt;Thanks for your reply! &amp;nbsp;I'm kinda bummed that I don't have access to that API, because I feel like i woule be a great help for the user to see what I'm going to draw, before I draw it.&lt;SPAN style="line-height: 1.2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking abou it more, and it's probably what you were leading to with the Windows API, but I would think I would be able to generate a new form with the Revit Window's dimensions, have a PictureBox with the same dimensions as the form, set it's BackgroundImage to a screencapture of the Revit window. &amp;nbsp;Then draw the line in the PictureBox with the MouseMove. &amp;nbsp;But, you'd have to take into account the coordinates of the form vs. Revit, and the zooming and panning the user might want to do. &amp;nbsp;That's too much work for what I'm looking to do, but, I feel like this could be a workaround, if someone needed to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the feedback!!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2014 00:29:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/temporary-graphics-of-a-line/m-p/4994528#M76913</guid>
      <dc:creator>atiefenbach</dc:creator>
      <dc:date>2014-04-28T00:29:09Z</dc:date>
    </item>
  </channel>
</rss>

