style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"joesu" <It's
href="mailto:joesu@worldnet.att.net">joesu@worldnet.att.net> wrote in
message
href="news:f10ab67.0@WebX.maYIadrTaRb">news:f10ab67.0@WebX.maYIadrTaRb...
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.
Joe
--
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
LHGO <
href="mailto:hguerrero@flowserve.com">hguerrero@flowserve.com> wrote in
message
href="news:66C8CB87BEC023C0BCDC30BEEBFB8C2F@in.WebX.maYIadrTaRb">news:66C8CB87BEC023C0BCDC30BEEBF......
Only what i need is checking for straight
line
i try like this
If Entity.Angle <> 0
Then
MsgBox "Line is NOT parallel to X axis... note
endpoint"
End If
But when Angel is 180 i have the same
i like to do something like if angle
<> 0 or <>180 then
style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">
"joesu" <It's
href="mailto:joesu@worldnet.att.net">joesu@worldnet.att.net> wrote in
message
href="news:f10ab67.0@WebX.maYIadrTaRb">news:f10ab67.0@WebX.maYIadrTaRb...
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.
Joe
--
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"Joe C. Parker" <
href="mailto:joepark@iol.ie">joepark@iol.ie> wrote in message
href="news:1D9931821868F748CB7DA4A0C9011D5A@in.WebX.maYIadrTaRb">news:1D9931821868F748CB7DA4A0C90......
if y coordinates are equal
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
LHGO <
href="mailto:hguerrero@flowserve.com">hguerrero@flowserve.com> wrote
in message
href="news:66C8CB87BEC023C0BCDC30BEEBFB8C2F@in.WebX.maYIadrTaRb">news:66C8CB87BEC023C0BCDC30BEE......
Only what i need is checking for straight
line
i try like this
If Entity.Angle <> 0
Then
MsgBox "Line is NOT parallel to X axis... note
endpoint"
End If
But when Angel is 180 i have the same
i like to do something like if angle
<> 0 or <>180 then
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"joesu" <It's
href="mailto:joesu@worldnet.att.net">joesu@worldnet.att.net> wrote
in message
href="news:f10ab67.0@WebX.maYIadrTaRb">news:f10ab67.0@WebX.maYIadrTaRb...
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.
Joe
--
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"joesu" <Warning!
href="mailto:joesu@worldnet.att.net">joesu@worldnet.att.net> wrote in
message
href="news:f10ab67.5@WebX.maYIadrTaRb">news:f10ab67.5@WebX.maYIadrTaRb...
That last post is wrong. Unfortunately, the AutoCAD documentation is in error.
The following, however,
works fine.
Joe
--
Public Function ParallelToXAxis() As Boolean
Dim oEntity
As AcadEntity
Dim Point As Variant
Dim oLine As AcadLine
On Error Resume Next
ThisDrawing.Utility.GetEntity oEntity,
Point, "Select line "
If Err Then Exit Function
If TypeOf oEntity Is AcadLine Then
Set oLine =
oEntity
With ThisDrawing.Utility
If .AngleToString(oLine.Angle,
acDegrees, 0) = 0 Or .AngleToString(oLine.Angle, acDegrees, 0) = 180 Then
ParallelToXAxis = True
End If
End
With
End If
End Function