<?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 draw text at Line? How to calc direction for text placed on the line? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-draw-text-at-line-how-to-calc-direction-for-text-placed/m-p/3554988#M54292</link>
    <description>&lt;P&gt;Thanks a lot, Stephen!&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jul 2012 04:42:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-07-27T04:42:08Z</dc:date>
    <item>
      <title>How to draw text at Line? How to calc direction for text placed on the line?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-draw-text-at-line-how-to-calc-direction-for-text-placed/m-p/3554630#M54290</link>
      <description>&lt;P&gt;I did DrawableOverrule instance and override WorldDraw method.&lt;BR /&gt;In this method I have checked:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;public override bool WorldDraw(Drawable d, WorldDrawwd)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;{&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; if (d isLine)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; {&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Line line = (Line)d;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Next I want to draw text placed on the line and I did:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp; wd.Geometry.Text(line.StartPoint, normal, direction&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question is - how to calculate required direction for text that text should be placed on the line? Is it easy way to do it?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2012 20:36:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-draw-text-at-line-how-to-calc-direction-for-text-placed/m-p/3554630#M54290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-26T20:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw text at Line? How to calc direction for text placed on the line?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-draw-text-at-line-how-to-calc-direction-for-text-placed/m-p/3554966#M54291</link>
      <description>&lt;P&gt;The Line.Delta property returns a vector along the direction of the line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2012 03:51:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-draw-text-at-line-how-to-calc-direction-for-text-placed/m-p/3554966#M54291</guid>
      <dc:creator>StephenPreston</dc:creator>
      <dc:date>2012-07-27T03:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw text at Line? How to calc direction for text placed on the line?</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-draw-text-at-line-how-to-calc-direction-for-text-placed/m-p/3554988#M54292</link>
      <description>&lt;P&gt;Thanks a lot, Stephen!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2012 04:42:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-draw-text-at-line-how-to-calc-direction-for-text-placed/m-p/3554988#M54292</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-27T04:42:08Z</dc:date>
    </item>
  </channel>
</rss>

