<?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: AutoCad 2010  dotNet Wizards in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/autocad-2010-dotnet-wizards/m-p/5023972#M44031</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Show the code, otherwise it's a guessing play.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaston Nunez&lt;/P&gt;</description>
    <pubDate>Sat, 10 May 2014 05:37:56 GMT</pubDate>
    <dc:creator>hgasty1001</dc:creator>
    <dc:date>2014-05-10T05:37:56Z</dc:date>
    <item>
      <title>AutoCad 2010  dotNet Wizards</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-2010-dotnet-wizards/m-p/5023774#M44030</link>
      <description>&lt;P&gt;I'm using AutoCad 2010 and Visual Studio.&amp;nbsp; I have created projects before, but not any new ones in a while.&lt;/P&gt;&lt;P&gt;When I start I pick the Autodesk - AutoCAD plug-in template.&amp;nbsp; This looks like it starts me out just fine, but in the Application tab for "My Project" it has "WPF Class Library".&amp;nbsp; In other projects I was able to select just "Class Library".&lt;/P&gt;&lt;P&gt;Anyway, I have the references set for AcDbMgd and AcMgd, Interop and Interop.Common.&lt;/P&gt;&lt;P&gt;The problem is, I can create a quickie program, save it, and try to debug it, but it tells me "Unknown command".&lt;/P&gt;&lt;P&gt;Can anyone help me out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 22:31:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-2010-dotnet-wizards/m-p/5023774#M44030</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2014-05-09T22:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCad 2010  dotNet Wizards</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-2010-dotnet-wizards/m-p/5023972#M44031</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Show the code, otherwise it's a guessing play.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaston Nunez&lt;/P&gt;</description>
      <pubDate>Sat, 10 May 2014 05:37:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-2010-dotnet-wizards/m-p/5023972#M44031</guid>
      <dc:creator>hgasty1001</dc:creator>
      <dc:date>2014-05-10T05:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCad 2010  dotNet Wizards</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-2010-dotnet-wizards/m-p/5026326#M44032</link>
      <description>&lt;P&gt;The code is just a snippet, used for testing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Imports Autodesk.AutoCAD
Imports Autodesk.AutoCAD.ApplicationServices
Imports Autodesk.AutoCAD.ApplicationServices.Application
Imports Autodesk.AutoCAD.DatabaseServices
Imports Autodesk.AutoCAD.EditorInput
Imports Autodesk.AutoCAD.Geometry
Imports Autodesk.AutoCAD.Interop
Imports Autodesk.AutoCAD.LayerManager
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.Windows
Imports System.Runtime.InteropServices

Public Class myClass
    &amp;lt;CommandMethod("addline")&amp;gt; _
    Public Sub addline()
        Dim podTransMan As DatabaseServices.TransactionManager
        Dim podTrans As DatabaseServices.Transaction
        Dim podDwg As Document

        podDwg = Application.DocumentManager.MdiActiveDocument
        podTransMan = podDwg.TransactionManager
        podTrans = podTransMan.StartTransaction

        Dim X As Double
        Dim newTransMan As DatabaseServices.TransactionManager = podDwg.TransactionManager
        Dim newTrans As Transaction = newTransMan.StartTransaction
        Dim BT As BlockTable = newTrans.GetObject(podDwg.Database.BlockTableId, OpenMode.ForRead)
        Dim BTR As BlockTableRecord = newTrans.GetObject(BT("*Model_Space"), OpenMode.ForWrite)
        Dim PtA As New Point3d(0, 0, 0)
        Dim PtB As Point3d
        For X = -3 To 3
            PtB = New Point3d(X, 4, 0)
            Dim newLine As New Line(PtA, PtB)
            BTR.AppendEntity(newLine)
            newTrans.AddNewlyCreatedDBObject(newLine, True)
        Next
        newTrans.Commit()
        newTrans.Dispose()
        newTransMan.Dispose()
    End Sub
End Class&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;In the Application tab of properties, under application type, it only allows "WPF Application", "WPF Class Library", or "WPF Console Application".&lt;/P&gt;&lt;P&gt;In other programs I used "Class Library" as it was the default option.&amp;nbsp; Those programs were writen a while ago on another computer.&amp;nbsp; I got a new computer and installed the new template from AutoDesk.&amp;nbsp; This new template just doesn't seem right.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 16:00:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-2010-dotnet-wizards/m-p/5026326#M44032</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2014-05-12T16:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: AutoCad 2010  dotNet Wizards</title>
      <link>https://forums.autodesk.com/t5/net-forum/autocad-2010-dotnet-wizards/m-p/5026962#M44033</link>
      <description>&lt;P&gt;Also, if anyone does not use the template, please let me know your process of setting up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 May 2014 20:33:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/autocad-2010-dotnet-wizards/m-p/5026962#M44033</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2014-05-12T20:33:48Z</dc:date>
    </item>
  </channel>
</rss>

