<?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: Help Associating VB.Net with AutoCad in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3299729#M57598</link>
    <description>&lt;P&gt;Check this link out:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://usa.autodesk.com/adsk/servlet/index?id=18162650&amp;amp;siteID=123112"&gt;http://usa.autodesk.com/adsk/servlet/index?id=18162650&amp;amp;siteID=123112&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But basically once you install the Autocad Visual Studio Wizard it gives you a standard template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;A target="_blank" href="http://images.autodesk.com/adsk/files/AutoCAD_2010-2012_dotNET_Wizards.zip)"&gt;http://images.autodesk.com/adsk/files/AutoCAD_2010-2012_dotNET_Wizards.zip)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not really difficult. It's just seem confusing as there is a lot of new information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good Luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="~TEMPLATE.png" border="0" align="center" alt="~TEMPLATE.png" src="http://forums.autodesk.com/t5/image/serverpage/image-id/19545i020F98F4DC7D2A2A/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2012 18:44:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-01-19T18:44:10Z</dc:date>
    <item>
      <title>Help Associating VB.Net with AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3295681#M57593</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;A while back I bought a book that has helped me to learn VB.Net programming for AutoCad.&amp;nbsp; The book came with a CD that had a template that I would use to create my programs for AutoCad.&lt;/P&gt;&lt;P&gt;I would like to be able to:&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Create my own template to use when writing code for AutoCad, and&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; Associate the template with my Visual Studio tool so I can then pick the template when I start a new project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would also like to know if there is anything else involved (like adding the AcDbMgd.dll and AcMgd.dll files to the reference).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of a place where I can find this info?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:06:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3295681#M57593</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2012-01-17T15:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help Associating VB.Net with AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3295693#M57594</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check this link:&amp;nbsp;&lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2011/08/debugging-autocad-net-projects-using-express-editions.html"&gt;http://through-the-interface.typepad.com/through_the_interface/2011/08/debugging-autocad-net-projects-using-express-editions.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gaston Nunez&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:11:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3295693#M57594</guid>
      <dc:creator>hgasty1001</dc:creator>
      <dc:date>2012-01-17T15:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help Associating VB.Net with AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3295727#M57595</link>
      <description>&lt;P&gt;I forgot to add that we are using AutoCad 2010 (soon to move to 2012 hopefully) and Visual Studio 2010.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2012 15:37:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3295727#M57595</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2012-01-17T15:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help Associating VB.Net with AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3299405#M57596</link>
      <description>&lt;P&gt;Ok, I've created a template, it looks like this:&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.LayerManager
Imports Autodesk.AutoCAD.Runtime
Imports Autodesk.AutoCAD.Windows
Imports System.Runtime.InteropServices

Public Class Class1
    &amp;lt;CommandMethod("COMMAND_NAME_HERE")&amp;gt; _
    Public Sub COMMAND_NAME_HERE()

        MsgBox("Hello World!")

    End Sub

End Class&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It's in Class1.vb&lt;/P&gt;&lt;P&gt;In the references I've added the AcDbMgd.dll and the AcMgd.dll from C:\ObjectARX 2010\inc-x64.&lt;/P&gt;&lt;P&gt;I picked File &amp;gt; Export template and it did it, but when I try to use it, I get the following errors:&lt;/P&gt;&lt;P&gt;"Namespace or type specified in the Imports 'Autodesk.AutoCAD' doesn't contain any public member or cannot be found.&amp;nbsp; Make sure the namespace or the type is defined and contains at least one public member.&amp;nbsp; Make sure the imported element name doesn't use any aliases."&lt;/P&gt;&lt;P&gt;I get that error for the first 9 Imports.&lt;/P&gt;&lt;P&gt;Obviously I've left something out.&amp;nbsp; Can anyone tell me what else I need to do to get my template to work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 15:49:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3299405#M57596</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2012-01-19T15:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help Associating VB.Net with AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3299479#M57597</link>
      <description>&lt;P&gt;Thank you for the link.&amp;nbsp; I checked it out, downloaded and ran the wizrd.&amp;nbsp; It creates a plugin.&amp;nbsp; Will I use that to create my individual programs?&amp;nbsp; It contains "myCommands.vb" and "myPlugins.vb".&amp;nbsp; Is this the template or do I need to export a template from this?&amp;nbsp; Like I said, I'm new at this template thing, so you'll have to forgive my ignorance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 16:25:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3299479#M57597</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2012-01-19T16:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help Associating VB.Net with AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3299729#M57598</link>
      <description>&lt;P&gt;Check this link out:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://usa.autodesk.com/adsk/servlet/index?id=18162650&amp;amp;siteID=123112"&gt;http://usa.autodesk.com/adsk/servlet/index?id=18162650&amp;amp;siteID=123112&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But basically once you install the Autocad Visual Studio Wizard it gives you a standard template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(&lt;A target="_blank" href="http://images.autodesk.com/adsk/files/AutoCAD_2010-2012_dotNET_Wizards.zip)"&gt;http://images.autodesk.com/adsk/files/AutoCAD_2010-2012_dotNET_Wizards.zip)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's not really difficult. It's just seem confusing as there is a lot of new information.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good Luck!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG title="~TEMPLATE.png" border="0" align="center" alt="~TEMPLATE.png" src="http://forums.autodesk.com/t5/image/serverpage/image-id/19545i020F98F4DC7D2A2A/image-size/original?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 18:44:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3299729#M57598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-19T18:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Help Associating VB.Net with AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3299933#M57599</link>
      <description>&lt;P&gt;Thanks for the link.&amp;nbsp; I had downloaded the dotNet Wizards file earlier and ran it.&amp;nbsp; I saw the two vb files in the project.&amp;nbsp; I wasn't used to seeing both I guess.&amp;nbsp; The template that came with the book I bought only had one .vb file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm curious, is there a way to manually create a template to use with&amp;nbsp;AutoCad without the use of a wizard or does everyone use something like this wizard?&amp;nbsp; If you can create one manually, do you know what the steps are?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take care,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 21:01:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3299933#M57599</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2012-01-19T21:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Help Associating VB.Net with AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3300209#M57600</link>
      <description>&lt;P&gt;You can create Project Templates and Item templates(Adding new class, etc....).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;They&amp;nbsp;are contained&amp;nbsp;in the ProjectTemplate or ItemTemplate folder&amp;nbsp;in VS install folder, So you can see examples.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have the Autodesk wizards installed and VS installed to default location then autodesk wizard is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(Will be a little different if 32bit system)&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\&lt;FONT color="#ff0000"&gt;ProjectTemplates&lt;/FONT&gt;\&lt;FONT color="#008000"&gt;CSharp&lt;/FONT&gt;\&lt;FONT color="#993300"&gt;Autodesk&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New item &amp;nbsp;templates for Windows Forms&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff"&gt;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\&lt;FONT color="#ff0000"&gt;ItemTemplates&lt;/FONT&gt;\&lt;FONT color="#008000"&gt;VisualBasic&lt;/FONT&gt;\&lt;FONT color="#993300"&gt;Windows Forms&lt;/FONT&gt;\1033&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice the pattern by comparing the two for &lt;FONT color="#ff0000"&gt;Project or Item&lt;/FONT&gt;, &lt;FONT color="#008000"&gt;Programming Language&lt;/FONT&gt;, &lt;FONT color="#000000"&gt;and&lt;/FONT&gt;&amp;nbsp;&lt;FONT color="#993300"&gt;Project Types&lt;/FONT&gt;&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;&lt;A target="_blank" href="http://msdn.microsoft.com/en-us/library/s365byhx.aspx"&gt;Creating Project and Item Templates&lt;/A&gt;&amp;nbsp;shows an overview&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It explains &lt;A target="_self" href="http://msdn.microsoft.com/en-us/library/ms185311.aspx"&gt;How to: Substitute Parameters in a Template&lt;/A&gt;&amp;nbsp;example is Autodesk&amp;nbsp;template uses&amp;nbsp;'namespace $safeprojectname$'&amp;nbsp; and all $safeprojectname$ are replaced with your namspace defined.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://msdn.microsoft.com/en-us/library/ms185301.aspx"&gt;How to: Use Wizards with Project Templates&lt;/A&gt;&amp;nbsp;shows how to have a form open to enter data to pass to the newly created project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first link is the base overview and can get to other links mentioned plus many more for deployment and othe more advanced topics.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2012 01:55:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3300209#M57600</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2012-01-20T01:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help Associating VB.Net with AutoCad</title>
      <link>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3300829#M57601</link>
      <description>&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;Thanks for the information and the links.&amp;nbsp; I'll definately check them out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2012 14:53:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/help-associating-vb-net-with-autocad/m-p/3300829#M57601</guid>
      <dc:creator>mgorecki</dc:creator>
      <dc:date>2012-01-20T14:53:03Z</dc:date>
    </item>
  </channel>
</rss>

