<?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: ACAD 2000 - Point manipulation and Line drawing with VB.Net in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/acad-2000-point-manipulation-and-line-drawing-with-vb-net/m-p/7676223#M28276</link>
    <description>&lt;P&gt;Thanks, I was able to get it pretty quickly with your answer.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jan 2018 18:14:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-09T18:14:31Z</dc:date>
    <item>
      <title>ACAD 2000 - Point manipulation and Line drawing with VB.Net</title>
      <link>https://forums.autodesk.com/t5/net-forum/acad-2000-point-manipulation-and-line-drawing-with-vb-net/m-p/7668165#M28274</link>
      <description>&lt;P&gt;I'll just start this out with this... I'm still really new to VB.Net in general, and very new from a&amp;nbsp;"lets use this to do stuff in ACAD"&amp;nbsp;standpoint. Google and the search function here have left me empty handed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get a point from the user, then use and manipulate the X and Y values to draw lines based on those manipulated values. I have gotten as far as the code below, and I'm totally lost when it comes to the syntax of reading and manipulating point values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I turn the code example into something that:&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;-accepts a point input from user&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-adds a variable to the X dimension to create a new point&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-draws a line between these 2 points&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The project is a bit more complicated than that, but sample code doing what is described above would get me pointed in the right direction.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Mitch&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. This is for Mechanical Desktop (ACAD 2000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Imports AutoCAD


    Private Sub BendLineButton_Click(sender As Object, e As EventArgs) Handles BendLineButton.Click

        Dim AcadApp As AcadApplication

        Try
            AcadApp = GetObject(, "AutoCAD.Application")
            Threading.Thread.Sleep(500)

        Catch ex As Exception
            AcadApp = CreateObject("AutoCAD.Application")

        End Try

        Dim acCurDoc As AcadDocument = AcadApp.ActiveDocument

        acCurDoc.Utility.Prompt("Select start point for bend lines.")
        Dim startpoint As AcadPoint = acCurDoc.Utility.GetPoint()

        'Do Stuff, magical stuff, right here.
      

    End Sub&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Jan 2018 20:41:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acad-2000-point-manipulation-and-line-drawing-with-vb-net/m-p/7668165#M28274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-05T20:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: ACAD 2000 - Point manipulation and Line drawing with VB.Net</title>
      <link>https://forums.autodesk.com/t5/net-forum/acad-2000-point-manipulation-and-line-drawing-with-vb-net/m-p/7668365#M28275</link>
      <description>&lt;P&gt;See &lt;A href="http://help.autodesk.com/view/OARX/2018/ENU/?guid=GUID-9111F796-1331-48E2-BA27-EE5DA7FD8E46" target="_blank"&gt;&amp;gt;this topic&amp;lt;&lt;/A&gt; in the online docs, and search those same docs for other example code showing what you need to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are trying to assign the result of a call to GetPoint() to an AcadPoint.&amp;nbsp; An AcadPoint represent a POINT entity in AutoCAD (which you create using the POINT command), it doesn't represent a 3D coordinate. The result of GetPoint() is a variant that contains an array of Double(3) (three doubles representing the X, Y and Z components). That's what you have to assign the result to. From there, it's just a matter of manipulating the array elements&amp;nbsp;as needed, and then using the array in a call to AddLine() or whatever else you want to do.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;I'll just start this out with this... I'm still really new to VB.Net in general, and very new from a&amp;nbsp;"lets use this to do stuff in ACAD"&amp;nbsp;standpoint. Google and the search function here have left me empty handed.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get a point from the user, then use and manipulate the X and Y values to draw lines based on those manipulated values. I have gotten as far as the code below, and I'm totally lost when it comes to the syntax of reading and manipulating point values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I turn the code example into something that:&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;-accepts a point input from user&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-adds a variable to the X dimension to create a new point&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-draws a line between these 2 points&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The project is a bit more complicated than that, but sample code doing what is described above would get me pointed in the right direction.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Mitch&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS. This is for Mechanical Desktop (ACAD 2000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Imports AutoCAD


    Private Sub BendLineButton_Click(sender As Object, e As EventArgs) Handles BendLineButton.Click

        Dim AcadApp As AcadApplication

        Try
            AcadApp = GetObject(, "AutoCAD.Application")
            Threading.Thread.Sleep(500)

        Catch ex As Exception
            AcadApp = CreateObject("AutoCAD.Application")

        End Try

        Dim acCurDoc As AcadDocument = AcadApp.ActiveDocument

        acCurDoc.Utility.Prompt("Select start point for bend lines.")
        Dim startpoint As AcadPoint = acCurDoc.Utility.GetPoint()

        'Do Stuff, magical stuff, right here.
      

    End Sub&lt;/PRE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 22:00:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acad-2000-point-manipulation-and-line-drawing-with-vb-net/m-p/7668365#M28275</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2018-01-05T22:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: ACAD 2000 - Point manipulation and Line drawing with VB.Net</title>
      <link>https://forums.autodesk.com/t5/net-forum/acad-2000-point-manipulation-and-line-drawing-with-vb-net/m-p/7676223#M28276</link>
      <description>&lt;P&gt;Thanks, I was able to get it pretty quickly with your answer.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2018 18:14:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/acad-2000-point-manipulation-and-line-drawing-with-vb-net/m-p/7676223#M28276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-09T18:14:31Z</dc:date>
    </item>
  </channel>
</rss>

