<?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: in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356966#M70962</link>
    <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;if y coordinates are equal&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;LHGO &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:hguerrero@flowserve.com"&amp;gt;hguerrero@flowserve.com&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message &lt;A&gt;&lt;BR /&gt;
  href="news:66C8CB87BEC023C0BCDC30BEEBFB8C2F@in.WebX.maYIadrTaRb"&amp;gt;news:66C8CB87BEC023C0BCDC30BEEBFB8C2F@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Only what i need is checking for straight &lt;BR /&gt;
  line&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;i&amp;nbsp; try like this&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;If Entity.Angle &amp;lt;&amp;gt; 0 &lt;BR /&gt;
  Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Line is NOT parallel to X axis... note &lt;BR /&gt;
  endpoint"&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;But when Angel is 180 i have&amp;nbsp; the same &lt;BR /&gt;
  &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;i like to do something like if angle&amp;nbsp; &lt;BR /&gt;
  &amp;lt;&amp;gt; 0 or &amp;lt;&amp;gt;180 then&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
  style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
    &lt;DIV&gt;"joesu" &amp;lt;&lt;A&gt;&lt;BR /&gt;
    href="mailto:joesu@worldnet.att.net"&amp;gt;joesu@worldnet.att.net&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
    message &lt;A&gt;&lt;BR /&gt;
    href="news:f10ab67.0@WebX.maYIadrTaRb"&amp;gt;news:f10ab67.0@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;It's &lt;BR /&gt;
    not quite clear what you're asking. Maybe a bit more explanation would help. &lt;BR /&gt;
    Perhaps the Z values of your Start and End point are set to something other &lt;BR /&gt;
    than 0. Just a wild guest at this point. &lt;BR /&gt;
    &lt;P&gt;Joe &lt;BR /&gt;--&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Wed, 04 Sep 2002 04:26:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2002-09-04T04:26:02Z</dc:date>
    <item>
      <title>Line</title>
      <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356963#M70959</link>
      <description>how can i control a  line&lt;BR /&gt;
if the StartPoint and  endPoint are parallel to X axis</description>
      <pubDate>Wed, 04 Sep 2002 03:18:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/line/m-p/356963#M70959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T03:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Line</title>
      <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356964#M70960</link>
      <description>It's not quite clear what you're asking. Maybe a bit more explanation would help. Perhaps the Z values of your Start and End point are set to something other than 0. Just a wild guest at this point.&lt;BR /&gt;
&lt;BR /&gt;
Joe&lt;BR /&gt;
--</description>
      <pubDate>Wed, 04 Sep 2002 04:03:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/line/m-p/356964#M70960</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T04:03:52Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356965#M70961</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Only what i need is checking for straight &lt;BR /&gt;
line&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;i&amp;nbsp; try like this&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;If Entity.Angle &amp;lt;&amp;gt; 0 &lt;BR /&gt;
Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Line is NOT parallel to X axis... note &lt;BR /&gt;
endpoint"&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;But when Angel is 180 i have&amp;nbsp; the same &lt;BR /&gt;
&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;i like to do  something like if angle&amp;nbsp; &lt;BR /&gt;
&amp;lt;&amp;gt; 0 or &amp;lt;&amp;gt;180 then&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"joesu" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:joesu@worldnet.att.net"&amp;gt;joesu@worldnet.att.net&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message &lt;A&gt;&lt;BR /&gt;
  href="news:f10ab67.0@WebX.maYIadrTaRb"&amp;gt;news:f10ab67.0@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;It's &lt;BR /&gt;
  not quite clear what you're asking. Maybe a bit more explanation would help. &lt;BR /&gt;
  Perhaps the Z values of your Start and End point are set to something other &lt;BR /&gt;
  than 0. Just a wild guest at this point. &lt;BR /&gt;
  &lt;P&gt;Joe &lt;BR /&gt;--&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 04 Sep 2002 04:15:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/line/m-p/356965#M70961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T04:15:34Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356966#M70962</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;if y coordinates are equal&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;LHGO &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:hguerrero@flowserve.com"&amp;gt;hguerrero@flowserve.com&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message &lt;A&gt;&lt;BR /&gt;
  href="news:66C8CB87BEC023C0BCDC30BEEBFB8C2F@in.WebX.maYIadrTaRb"&amp;gt;news:66C8CB87BEC023C0BCDC30BEEBFB8C2F@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Only what i need is checking for straight &lt;BR /&gt;
  line&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;i&amp;nbsp; try like this&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;If Entity.Angle &amp;lt;&amp;gt; 0 &lt;BR /&gt;
  Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Line is NOT parallel to X axis... note &lt;BR /&gt;
  endpoint"&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;But when Angel is 180 i have&amp;nbsp; the same &lt;BR /&gt;
  &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;i like to do something like if angle&amp;nbsp; &lt;BR /&gt;
  &amp;lt;&amp;gt; 0 or &amp;lt;&amp;gt;180 then&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
  style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
    &lt;DIV&gt;"joesu" &amp;lt;&lt;A&gt;&lt;BR /&gt;
    href="mailto:joesu@worldnet.att.net"&amp;gt;joesu@worldnet.att.net&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
    message &lt;A&gt;&lt;BR /&gt;
    href="news:f10ab67.0@WebX.maYIadrTaRb"&amp;gt;news:f10ab67.0@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;It's &lt;BR /&gt;
    not quite clear what you're asking. Maybe a bit more explanation would help. &lt;BR /&gt;
    Perhaps the Z values of your Start and End point are set to something other &lt;BR /&gt;
    than 0. Just a wild guest at this point. &lt;BR /&gt;
    &lt;P&gt;Joe &lt;BR /&gt;--&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 04 Sep 2002 04:26:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/line/m-p/356966#M70962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T04:26:02Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356967#M70963</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;but how to do ??&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;if y coordinates are equal&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"Joe C. Parker" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:joepark@iol.ie"&amp;gt;joepark@iol.ie&lt;/A&gt;&amp;gt; wrote in message &lt;A&gt;&lt;BR /&gt;
  href="news:1D9931821868F748CB7DA4A0C9011D5A@in.WebX.maYIadrTaRb"&amp;gt;news:1D9931821868F748CB7DA4A0C9011D5A@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
  &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;if y coordinates are equal&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
  &lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
    &lt;DIV&gt;LHGO &amp;lt;&lt;A&gt;&lt;BR /&gt;
    href="mailto:hguerrero@flowserve.com"&amp;gt;hguerrero@flowserve.com&lt;/A&gt;&amp;gt; wrote &lt;BR /&gt;
    in message &lt;A&gt;&lt;BR /&gt;
    href="news:66C8CB87BEC023C0BCDC30BEEBFB8C2F@in.WebX.maYIadrTaRb"&amp;gt;news:66C8CB87BEC023C0BCDC30BEEBFB8C2F@in.WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;Only what i need is checking for straight &lt;BR /&gt;
    line&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;i&amp;nbsp; try like this&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;If Entity.Angle &amp;lt;&amp;gt; 0 &lt;BR /&gt;
    Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox "Line is NOT parallel to X axis... note &lt;BR /&gt;
    endpoint"&amp;nbsp;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;But when Angel is 180 i have&amp;nbsp; the same &lt;BR /&gt;
    &lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;i like to do something like if angle&amp;nbsp; &lt;BR /&gt;
    &amp;lt;&amp;gt; 0 or &amp;lt;&amp;gt;180 then&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
    &lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
      &lt;DIV&gt;"joesu" &amp;lt;&lt;A&gt;&lt;BR /&gt;
      href="mailto:joesu@worldnet.att.net"&amp;gt;joesu@worldnet.att.net&lt;/A&gt;&amp;gt; wrote &lt;BR /&gt;
      in message &lt;A&gt;&lt;BR /&gt;
      href="news:f10ab67.0@WebX.maYIadrTaRb"&amp;gt;news:f10ab67.0@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;It's &lt;BR /&gt;
      not quite clear what you're asking. Maybe a bit more explanation would &lt;BR /&gt;
      help. Perhaps the Z values of your Start and End point are set to &lt;BR /&gt;
      something other than 0. Just a wild guest at this point. &lt;BR /&gt;
      &lt;P&gt;Joe &lt;BR /&gt;--&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 04 Sep 2002 04:28:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/line/m-p/356967#M70963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T04:28:14Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356968#M70964</link>
      <description>Here, I wrote you a little function that returns whether the line is parallel to the X axis.&lt;BR /&gt;
&lt;BR /&gt;
Joe&lt;BR /&gt;
--&lt;BR /&gt;
Public Function ParallelToXAxis() As Boolean&lt;BR /&gt;
Dim oEntity As AcadEntity&lt;BR /&gt;
Dim Point As Variant&lt;BR /&gt;
Dim oLine As AcadLine&lt;BR /&gt;
&lt;BR /&gt;
  On Error Resume Next&lt;BR /&gt;
  ThisDrawing.Utility.GetEntity oEntity, Point, "Select line "&lt;BR /&gt;
  If Err Then Exit Function&lt;BR /&gt;
  &lt;BR /&gt;
  If TypeOf oEntity Is AcadLine Then&lt;BR /&gt;
    Set oLine = oEntity&lt;BR /&gt;
    If oLine.Angle = 0 Or oLine.Angle = 180 Then ParallelToXAxis = True&lt;BR /&gt;
  End If&lt;BR /&gt;
End Function</description>
      <pubDate>Wed, 04 Sep 2002 04:49:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/line/m-p/356968#M70964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T04:49:27Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356969#M70965</link>
      <description>Warning! That last post is wrong. Unfortunately, the AutoCAD documentation is in error. The following, however,&lt;BR /&gt;
works fine.&lt;BR /&gt;
&lt;BR /&gt;
Joe&lt;BR /&gt;
--&lt;BR /&gt;
Public Function ParallelToXAxis() As Boolean&lt;BR /&gt;
Dim oEntity As AcadEntity&lt;BR /&gt;
Dim Point As Variant&lt;BR /&gt;
Dim oLine As AcadLine&lt;BR /&gt;
&lt;BR /&gt;
  On Error Resume Next&lt;BR /&gt;
  ThisDrawing.Utility.GetEntity oEntity, Point, "Select line "&lt;BR /&gt;
  If Err Then Exit Function&lt;BR /&gt;
  &lt;BR /&gt;
  If TypeOf oEntity Is AcadLine Then&lt;BR /&gt;
    Set oLine = oEntity&lt;BR /&gt;
    With ThisDrawing.Utility&lt;BR /&gt;
      If .AngleToString(oLine.Angle, acDegrees, 0) = 0 Or .AngleToString(oLine.Angle, acDegrees, 0) = 180 Then&lt;BR /&gt;
        ParallelToXAxis = True&lt;BR /&gt;
      End If&lt;BR /&gt;
    End With&lt;BR /&gt;
  End If&lt;BR /&gt;
End Function</description>
      <pubDate>Wed, 04 Sep 2002 04:58:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/line/m-p/356969#M70965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T04:58:48Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356970#M70966</link>
      <description>&lt;DIV&gt;&lt;FONT face="Arial" size="2"&gt;thanks&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;
&lt;BLOCKQUOTE dir="ltr"&gt;&lt;BR /&gt;
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"&amp;gt;&lt;BR /&gt;
  &lt;DIV&gt;"joesu" &amp;lt;&lt;A&gt;&lt;BR /&gt;
  href="mailto:joesu@worldnet.att.net"&amp;gt;joesu@worldnet.att.net&lt;/A&gt;&amp;gt; wrote in &lt;BR /&gt;
  message &lt;A&gt;&lt;BR /&gt;
  href="news:f10ab67.5@WebX.maYIadrTaRb"&amp;gt;news:f10ab67.5@WebX.maYIadrTaRb&lt;/A&gt;...&lt;/DIV&gt;Warning! &lt;BR /&gt;
  That last post is wrong. Unfortunately, the AutoCAD documentation is in error. &lt;BR /&gt;
  The following, however, &lt;BR /&gt;works fine. &lt;BR /&gt;
  &lt;P&gt;Joe &lt;BR /&gt;-- &lt;BR /&gt;Public Function ParallelToXAxis() As Boolean &lt;BR /&gt;Dim oEntity &lt;BR /&gt;
  As AcadEntity &lt;BR /&gt;Dim Point As Variant &lt;BR /&gt;Dim oLine As AcadLine &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;On Error Resume Next &lt;BR /&gt;&amp;nbsp;&amp;nbsp;ThisDrawing.Utility.GetEntity oEntity, &lt;BR /&gt;
  Point, "Select line " &lt;BR /&gt;&amp;nbsp;&amp;nbsp;If Err Then Exit Function &lt;BR /&gt;
  &lt;/P&gt;&lt;P&gt;If TypeOf oEntity Is AcadLine Then &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Set oLine = &lt;BR /&gt;
  oEntity &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;With ThisDrawing.Utility &lt;BR /&gt;
  &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;If .AngleToString(oLine.Angle, &lt;BR /&gt;
  acDegrees, 0) = 0 Or .AngleToString(oLine.Angle, acDegrees, 0) = 180 Then &lt;BR /&gt;
  &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ParallelToXAxis = True &lt;BR /&gt;
  &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End If &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;End &lt;BR /&gt;
  With &lt;BR /&gt;&amp;nbsp;&amp;nbsp;End If &lt;BR /&gt;End Function&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 04 Sep 2002 05:11:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/line/m-p/356970#M70966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T05:11:04Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356971#M70967</link>
      <description>Na, the code in your last post looks fine, you just forgot that the &lt;BR /&gt;
angle property returns a value in radians, not degrees.&lt;BR /&gt;
&lt;BR /&gt;
Just for giggles, using your original idea about the elements:&lt;BR /&gt;
&lt;BR /&gt;
if oLine.startpoint(0) = oLine.endpoint(0) then ParallelToXAxis = True&lt;BR /&gt;
&lt;BR /&gt;
-Josh &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
joesu wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Warning! That last post is wrong. Unfortunately, the AutoCAD &lt;BR /&gt;
&amp;gt; documentation is in error. The following, however,&lt;BR /&gt;
&amp;gt; works fine.&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Joe</description>
      <pubDate>Wed, 04 Sep 2002 07:30:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/line/m-p/356971#M70967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T07:30:34Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356972#M70968</link>
      <description>Which makes it wrong because it didn't have the AngleToString functions [which I would have had&lt;BR /&gt;
had I not relied on the documentation].&lt;BR /&gt;
&lt;BR /&gt;
Joe&lt;BR /&gt;
--</description>
      <pubDate>Wed, 04 Sep 2002 07:30:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/line/m-p/356972#M70968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T07:30:34Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356973#M70969</link>
      <description>Hi Joe,&lt;BR /&gt;
	True, the docs do say dgrees and I see your point, I should have looked a &lt;BR /&gt;
little closer at the change in your second post. I just glanced at it &lt;BR /&gt;
and thought you went the anglefromXaxis route. Not criticizing or &lt;BR /&gt;
anything, but to explore yet another route, how about:&lt;BR /&gt;
&lt;BR /&gt;
If oLine.Angle = 0 Or oLine.Angle = PI Then ParallelToXAxis = True&lt;BR /&gt;
&lt;BR /&gt;
Obviously, this is something you probably would want to limit to even &lt;BR /&gt;
increments of degrees, but for even increments it's a breeze to convert &lt;BR /&gt;
on the fly once you start looking at it as PI radians = 180 degrees and &lt;BR /&gt;
2PI radians = 360 degrees,,,,&lt;BR /&gt;
PI/12 = 15&lt;BR /&gt;
PI/6 = 30&lt;BR /&gt;
PI/2 = 90&lt;BR /&gt;
PI = 180&lt;BR /&gt;
3(PI/2) = 270 'or 3 X 90 = 270, ect.&lt;BR /&gt;
2PI = 360&lt;BR /&gt;
yatta, yatta, yatta&lt;BR /&gt;
&lt;BR /&gt;
-Josh&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
joesu wrote:&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; Which makes it wrong because it didn't have the AngleToString functions &lt;BR /&gt;
&amp;gt; [which I would have had&lt;BR /&gt;
&amp;gt; had I not relied on the documentation].&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Joe&lt;BR /&gt;
&amp;gt; -- &lt;BR /&gt;
&amp;gt;</description>
      <pubDate>Wed, 04 Sep 2002 09:28:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/line/m-p/356973#M70969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T09:28:07Z</dc:date>
    </item>
    <item>
      <title>Re:</title>
      <link>https://forums.autodesk.com/t5/vba-forum/line/m-p/356974#M70970</link>
      <description>That's an option. However, now I have to toat around the function to get Pi instead of using the AutoCAD built-in function of AngleToString. I guess it's a personal preference thing 'cause either way works.&lt;BR /&gt;
&lt;BR /&gt;
Joe&lt;BR /&gt;
--</description>
      <pubDate>Wed, 04 Sep 2002 11:06:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/line/m-p/356974#M70970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2002-09-04T11:06:52Z</dc:date>
    </item>
  </channel>
</rss>

