<?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: draw curve in ActiveUIDocument.Document using IList&amp;lt;XYZ&amp;gt; in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065261#M67244</link>
    <description>&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, CreateModelLine was my starting point,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;l = Creator.CreateModelLine(doc, xyz_prev, xyz);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I wanted to add color and was looking for something more elegant, that's why I tried CmdDetailCurves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to draw an axis along which I can string Tunnel elements. So I reverted back to CreateModelLine&amp;nbsp;(see attachment), which seems to work fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the support!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings, Dirk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Mar 2016 09:49:13 GMT</pubDate>
    <dc:creator>dirk.neethling</dc:creator>
    <dc:date>2016-03-02T09:49:13Z</dc:date>
    <item>
      <title>draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6063446#M67233</link>
      <description>&lt;P&gt;I'm trying to draw a contigous curve in an ActiveUIDocument.Document, using a List of XYZ objects. Most examples draw a curve in a FamilyDocument, but I could not adapt it for an ActiveUIDocument.Document. Is it necessary to create a plane for such a curve?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 12:11:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6063446#M67233</guid>
      <dc:creator>dirk.neethling</dc:creator>
      <dc:date>2016-03-01T12:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6063496#M67234</link>
      <description>&lt;P&gt;Dear Dirk,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create a model curve or a detail curve, and both reside on a sketch plane.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you care about efficiency, you might care to reuse the sketch plane as much as possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that some existing samples create a new sketch plane for each individual curve, which is not a nice thing to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Building Coder provides a number of samples, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI class="p1"&gt;&lt;SPAN class="s1"&gt;Model and Detail Curve Colour -- &lt;A href="http://thebuildingcoder.typepad.com/blog/2010/01/model-and-detail-curve-colour.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2010/01/model-and-detail-curve-colour.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="p1"&gt;&lt;SPAN class="s1"&gt;Detail Curve Must Indeed lie in Plane -- &lt;A href="http://thebuildingcoder.typepad.com/blog/2010/05/detail-curve-must-indeed-lie-in-plane.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2010/05/detail-curve-must-indeed-lie-in-plane.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="p1"&gt;&lt;SPAN class="s1"&gt;Model Curve Creator -- &lt;A href="http://thebuildingcoder.typepad.com/blog/2010/05/model-curve-creator.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2010/05/model-curve-creator.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI class="p1"&gt;&lt;SPAN class="s1"&gt;Generating a MidCurve Between Two Curve Elements -- &lt;A href="http://thebuildingcoder.typepad.com/blog/2013/08/generating-a-midcurve-between-two-curve-elements.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/08/generating-a-midcurve-between-two-curve-elements.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Also included in The Building Coder samples:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;A href="https://github.com/jeremytammik/the_building_coder_samples" target="_blank"&gt;https://github.com/jeremytammik/the_building_coder_samples&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;A href="https://github.com/jeremytammik/the_building_coder_samples/blob/master/BuildingCoder/BuildingCoder/CmdDetailCurves.cs" target="_blank"&gt;https://github.com/jeremytammik/the_building_coder_samples/blob/master/BuildingCoder/BuildingCoder/CmdDetailCurves.cs&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;A href="https://github.com/jeremytammik/the_building_coder_samples/blob/master/BuildingCoder/BuildingCoder/Creator.cs" target="_blank"&gt;https://github.com/jeremytammik/the_building_coder_samples/blob/master/BuildingCoder/BuildingCoder/Creator.cs&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 12:37:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6063496#M67234</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-03-01T12:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6063523#M67235</link>
      <description>Thanks for answering Jeremy. Unfortunatly the samples do not compile in Revit 2016. I'm struggling to reconfigure the code.&lt;BR /&gt;&lt;BR /&gt;Using Model Curve Creator, for example here:&lt;BR /&gt;&lt;BR /&gt;Transform tv = Transform.GetTranslation(v);&lt;BR /&gt;curve = curve.GetTransformed(tv);&lt;BR /&gt;&lt;BR /&gt;and here:&lt;BR /&gt;&lt;BR /&gt;foreach (GeometryObject obj in e.Objects)&lt;BR /&gt;&lt;BR /&gt;Dirk</description>
      <pubDate>Tue, 01 Mar 2016 12:53:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6063523#M67235</guid>
      <dc:creator>dirk.neethling</dc:creator>
      <dc:date>2016-03-01T12:53:56Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6063530#M67236</link>
      <description>&lt;P&gt;Dear Dirk,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is not true.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Building Coder samples are completely up to date and compile with zero errors and zero warnings.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Furthermore, all migrations of Revit add-ins are very straight forward and extensively documented by The Building Coder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/migration" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/migration&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is no reason for you to struggle at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless you enjoy it, of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Relax and enjoy.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 12:58:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6063530#M67236</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-03-01T12:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6063546#M67237</link>
      <description>&lt;P&gt;&lt;IMG title="ModelCurveCreator.png" alt="ModelCurveCreator.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/221567i3C5BCA405407121A/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 13:05:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6063546#M67237</guid>
      <dc:creator>dirk.neethling</dc:creator>
      <dc:date>2016-03-01T13:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6063678#M67238</link>
      <description>&lt;P&gt;You seem to be looking at &lt;SPAN class="asset  asset-generic at-xid-6a00e553e1689788330133ee4b7111970b"&gt;&lt;A href="http://thebuildingcoder.typepad.com/files/bc_11_69.zip" target="_blank"&gt;version 2011.0.69.0&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt; of The Building Coder samples.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;From the original post, in May 2010.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cool. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you insist, so be it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can also look at the other releases on GitHub:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/jeremytammik/the_building_coder_samples/releases" target="_blank"&gt;https://github.com/jeremytammik/the_building_coder_samples/releases&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Or just grab the current Revit 2016 master from&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://github.com/jeremytammik/the_building_coder_samples" target="_blank"&gt;https://github.com/jeremytammik/the_building_coder_samples&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 14:24:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6063678#M67238</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-03-01T14:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065186#M67239</link>
      <description>&lt;P&gt;I used your code from &lt;SPAN&gt;&lt;A href="https://github.com/jeremytammik/the_building_coder_samples" target="_blank" rel="nofollow"&gt;https://github.com/jeremytammik/the_building_coder​_samples,&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp;extracting from&amp;nbsp;CmdDetailCurves.cs.&lt;/P&gt;&lt;P&gt;I encapsuled it in a method:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;static&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Consolas" size="2"&gt;void&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; drawArc(&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Document&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; doc, Autodesk.Revit.DB.&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;View&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; view)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;with&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;UIApplication&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; uiApp = commandData.Application;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;Document&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; doc = uiApp.ActiveUIDocument.Document;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;Autodesk.Revit.DB.&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;View&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; view = doc.ActiveView;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;it cracks at:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;// Create a DetailLine element using the&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;&lt;FONT color="#008000" face="Consolas" size="2"&gt;// newly created geometry line and sketch plane&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;DetailLine&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt; line = creDoc.NewDetailCurve(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;view, geomLine) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;as&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;&lt;FONT color="#2b91af" face="Consolas" size="2"&gt;DetailLine&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;FONT face="Consolas" size="2"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with:&lt;/P&gt;&lt;P&gt;+&amp;nbsp;&amp;nbsp;exc&amp;nbsp;{"View is not valid for detail line creation.\r\nParameter name: view"}&amp;nbsp;System.Exception {Autodesk.Revit.Exceptions.ArgumentException}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 08:33:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065186#M67239</guid>
      <dc:creator>dirk.neethling</dc:creator>
      <dc:date>2016-03-02T08:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065193#M67240</link>
      <description>&lt;P&gt;Dear Dirk,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am glad that you have it working now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you also for your overwhelming appreciation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Revit API is a very simple API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I keep pointing out, the Revit product is much more complex and harder to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You apparently need to practice the product side of things a bit before diving deeper into the API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One basic piece of end user knowledge is that detail elements can only be added to plan views.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably your current view is not a plan view.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 08:40:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065193#M67240</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-03-02T08:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065203#M67241</link>
      <description>&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed to a plan view, and ran the method successfully.&lt;/P&gt;&lt;P&gt;Thanks for the pointer! (is that better?)&lt;/P&gt;&lt;P&gt;Greetings, Dirk&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 08:50:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065203#M67241</guid>
      <dc:creator>dirk.neethling</dc:creator>
      <dc:date>2016-03-02T08:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065224#M67242</link>
      <description>&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed that when I switch back to 3D view, the curve is no longer visible. Do I need to make another call to make it visible in 3D View?&lt;/P&gt;&lt;P&gt;Greetings, DIrk&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 09:11:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065224#M67242</guid>
      <dc:creator>dirk.neethling</dc:creator>
      <dc:date>2016-03-02T09:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065227#M67243</link>
      <description>&lt;P&gt;Dear Dirk,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your appreciation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Much better indeed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Afaik, detail curves are never visible in 3D.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You have to use model curves for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not a product usage expert, though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should either be one yourself or have one to consult.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 09:09:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065227#M67243</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-03-02T09:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065261#M67244</link>
      <description>&lt;P&gt;Hello Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, CreateModelLine was my starting point,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;l = Creator.CreateModelLine(doc, xyz_prev, xyz);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I wanted to add color and was looking for something more elegant, that's why I tried CmdDetailCurves.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to draw an axis along which I can string Tunnel elements. So I reverted back to CreateModelLine&amp;nbsp;(see attachment), which seems to work fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the support!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greetings, Dirk&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 09:49:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065261#M67244</guid>
      <dc:creator>dirk.neethling</dc:creator>
      <dc:date>2016-03-02T09:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065287#M67245</link>
      <description>&lt;P&gt;Dear Dirk,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Again, an end user product information: you can use the view graphics and visibility settings to control the model line appearance, e.g. colour and line type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 10:04:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065287#M67245</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-03-02T10:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: draw curve in ActiveUIDocument.Document using IList&lt;XYZ&gt;</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065387#M67246</link>
      <description>&lt;P&gt;I published an edited version of the important points now:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2016/03/index-reloading-curves-distance-and-deleting-printsetup.html#4" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2016/03/index-reloading-curves-distance-and-deleting-printsetup.html#4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2016 11:34:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/draw-curve-in-activeuidocument-document-using-ilist-lt-xyz-gt/m-p/6065387#M67246</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-03-02T11:34:11Z</dc:date>
    </item>
  </channel>
</rss>

