<?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 Creating a line in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/creating-a-line/m-p/2827201#M13211</link>
    <description>&lt;DIV&gt;If my question is to basic then I’m sorry since I’m a beginner as a programmer in the AutoCAD environment.&lt;BR /&gt;.&lt;BR /&gt;I’m trying to write a module that will interact with the client and will create a simple line.&lt;BR /&gt;Using the following commands I can create a simple line but I want to add to my module an angle lock meaning (for example) before the module will run the user will input an angle and after the users first pick when the system is waiting for his second pick his mouse movements will be limited (like when using the ortho mode.&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;I know that in other CAD softwares there are class modules that give the programmer more flexibility when interacting with the user.&lt;/P&gt;&lt;BR /&gt;varStart = .GetPoint(, vbCr &amp;amp; "Pick the start point: ")&lt;BR /&gt;varEnd = .GetPoint(varStart, vbCr &amp;amp; "Pick the end point: ")&lt;BR /&gt;Set objEnt = ThisDrawing.ModelSpace.AddLine(varStart, varEnd)&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;David.&lt;/DIV&gt;</description>
    <pubDate>Tue, 16 Nov 2010 06:42:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-11-16T06:42:15Z</dc:date>
    <item>
      <title>Creating a line</title>
      <link>https://forums.autodesk.com/t5/vba-forum/creating-a-line/m-p/2827201#M13211</link>
      <description>&lt;DIV&gt;If my question is to basic then I’m sorry since I’m a beginner as a programmer in the AutoCAD environment.&lt;BR /&gt;.&lt;BR /&gt;I’m trying to write a module that will interact with the client and will create a simple line.&lt;BR /&gt;Using the following commands I can create a simple line but I want to add to my module an angle lock meaning (for example) before the module will run the user will input an angle and after the users first pick when the system is waiting for his second pick his mouse movements will be limited (like when using the ortho mode.&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;I know that in other CAD softwares there are class modules that give the programmer more flexibility when interacting with the user.&lt;/P&gt;&lt;BR /&gt;varStart = .GetPoint(, vbCr &amp;amp; "Pick the start point: ")&lt;BR /&gt;varEnd = .GetPoint(varStart, vbCr &amp;amp; "Pick the end point: ")&lt;BR /&gt;Set objEnt = ThisDrawing.ModelSpace.AddLine(varStart, varEnd)&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;David.&lt;/DIV&gt;</description>
      <pubDate>Tue, 16 Nov 2010 06:42:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/creating-a-line/m-p/2827201#M13211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-16T06:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a line</title>
      <link>https://forums.autodesk.com/t5/vba-forum/creating-a-line/m-p/2827983#M13212</link>
      <description>&lt;P&gt;With VBA, it is impossible to do what you want. Period.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With raw ObjectARX or ObjectARX .NET API, yes, it is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With VBA in AutoCAD dying quickly, you may want to turn your Acad programming effort to .NET API, if your Acad programming task is important to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2010 18:45:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/creating-a-line/m-p/2827983#M13212</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2010-11-16T18:45:24Z</dc:date>
    </item>
  </channel>
</rss>

