<?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 How can I draw the Detail Line to let the information of direction and angle emerge before finishing the command? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-can-i-draw-the-detail-line-to-let-the-information-of/m-p/10291452#M26158</link>
    <description>&lt;P&gt;&lt;STRONG&gt;How can I draw the Detail Line to let the information of direction and angle emerge before finishing the command?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;UIDocument uidoc = commandData.Application.ActiveUIDocument;&lt;BR /&gt;Document doc = uidoc.Document;&lt;BR /&gt;View view = doc.ActiveView;&lt;/P&gt;&lt;P&gt;List&amp;lt;XYZ&amp;gt; listPoint = new List&amp;lt;XYZ&amp;gt;();&lt;BR /&gt;int i = 0;&lt;BR /&gt;while (true)&lt;BR /&gt;{&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;ObjectSnapTypes snapTypeA = ObjectSnapTypes.Endpoints | ObjectSnapTypes.Intersections;&lt;BR /&gt;XYZ A = uidoc.Selection.PickPoint(snapTypeA, "Select an end point or intersection");&lt;BR /&gt;listPoint.Add(A);&lt;BR /&gt;}&lt;BR /&gt;catch (Exception)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;break;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;i++;&lt;BR /&gt;}&lt;BR /&gt;using (Transaction tx = new Transaction(doc))&lt;BR /&gt;{&lt;BR /&gt;tx.Start("Create Detail Line");&lt;/P&gt;&lt;P&gt;for (int a = 0; a &amp;lt; listPoint.Count-1; a++)&lt;BR /&gt;{&lt;BR /&gt;Line geomLine = Line.CreateBound(listPoint[a], listPoint[a+1]);&lt;BR /&gt;DetailLine line = doc.Create.NewDetailCurve(view, geomLine) as DetailLine;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;tx.Commit();&lt;BR /&gt;}&lt;BR /&gt;return Result.Succeeded;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 624px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/915409i34068B1067FDF6B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 358px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/915410iD3DF8F85E105D1D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 06:40:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-05-05T06:40:39Z</dc:date>
    <item>
      <title>How can I draw the Detail Line to let the information of direction and angle emerge before finishing the command?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-can-i-draw-the-detail-line-to-let-the-information-of/m-p/10291452#M26158</link>
      <description>&lt;P&gt;&lt;STRONG&gt;How can I draw the Detail Line to let the information of direction and angle emerge before finishing the command?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;UIDocument uidoc = commandData.Application.ActiveUIDocument;&lt;BR /&gt;Document doc = uidoc.Document;&lt;BR /&gt;View view = doc.ActiveView;&lt;/P&gt;&lt;P&gt;List&amp;lt;XYZ&amp;gt; listPoint = new List&amp;lt;XYZ&amp;gt;();&lt;BR /&gt;int i = 0;&lt;BR /&gt;while (true)&lt;BR /&gt;{&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;ObjectSnapTypes snapTypeA = ObjectSnapTypes.Endpoints | ObjectSnapTypes.Intersections;&lt;BR /&gt;XYZ A = uidoc.Selection.PickPoint(snapTypeA, "Select an end point or intersection");&lt;BR /&gt;listPoint.Add(A);&lt;BR /&gt;}&lt;BR /&gt;catch (Exception)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;break;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;i++;&lt;BR /&gt;}&lt;BR /&gt;using (Transaction tx = new Transaction(doc))&lt;BR /&gt;{&lt;BR /&gt;tx.Start("Create Detail Line");&lt;/P&gt;&lt;P&gt;for (int a = 0; a &amp;lt; listPoint.Count-1; a++)&lt;BR /&gt;{&lt;BR /&gt;Line geomLine = Line.CreateBound(listPoint[a], listPoint[a+1]);&lt;BR /&gt;DetailLine line = doc.Create.NewDetailCurve(view, geomLine) as DetailLine;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;tx.Commit();&lt;BR /&gt;}&lt;BR /&gt;return Result.Succeeded;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 624px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/915409i34068B1067FDF6B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 358px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/915410iD3DF8F85E105D1D2/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 06:40:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-can-i-draw-the-detail-line-to-let-the-information-of/m-p/10291452#M26158</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-05T06:40:39Z</dc:date>
    </item>
    <item>
      <title>How can I draw the Detail Line to let the information of direction and angle emerge before finishing the command?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-can-i-draw-the-detail-line-to-let-the-information-of/m-p/10291491#M26159</link>
      <description>&lt;P&gt;You could try to launch the built-in Revit command together with the built-in user interface by using PostCommand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another option might be to implement some kind of own jig, e.g., using the&amp;nbsp;IDirectContext3DServer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2020/10/onbox-directcontext-jig-and-no-cdn.html#3" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2020/10/onbox-directcontext-jig-and-no-cdn.html#3&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you could also use some kind of Windows tooltip to display the required real-time information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, since this functionality is not supported by the Revit API out of the box, I'm afraid it will be very hard indeed to implement anything that is both useful and nice to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 06:59:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-can-i-draw-the-detail-line-to-let-the-information-of/m-p/10291491#M26159</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-05-05T06:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I draw the Detail Line to let the information of direction and angle emerge before finishing the command?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-can-i-draw-the-detail-line-to-let-the-information-of/m-p/10291521#M26160</link>
      <description>&lt;P&gt;Thank you so much for your quick response&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 07:10:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-can-i-draw-the-detail-line-to-let-the-information-of/m-p/10291521#M26160</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-05-05T07:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: How can I draw the Detail Line to let the information of direction and angle emerge before finishing the command?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-can-i-draw-the-detail-line-to-let-the-information-of/m-p/10291715#M26161</link>
      <description>&lt;P&gt;In one of my command I actually use a linebased detail item in combination with PromptForFamilyInstancePlacement() to mimic that kind of behavior.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command is used to rotate a the cropregion of planview.&lt;/P&gt;&lt;P&gt;I have added a video of the functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 08:51:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-can-i-draw-the-detail-line-to-let-the-information-of/m-p/10291715#M26161</guid>
      <dc:creator>MvL_WAG</dc:creator>
      <dc:date>2021-05-05T08:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: How can I draw the Detail Line to let the information of direction and angle emerge before finishing the command?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-can-i-draw-the-detail-line-to-let-the-information-of/m-p/10310844#M26162</link>
      <description>&lt;P&gt;Edited and saved for posterity:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2021/05/refreshment-cloud-model-path-angle-and-direction.html#2" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2021/05/refreshment-cloud-model-path-angle-and-direction.html#2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mille grazie, Maarten!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 14:38:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-can-i-draw-the-detail-line-to-let-the-information-of/m-p/10310844#M26162</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-05-13T14:38:41Z</dc:date>
    </item>
  </channel>
</rss>

