<?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: Unknown Commands in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616005#M67576</link>
    <description>You have to use the correct version of the .NET Framework to compile &lt;BR /&gt;
your code.  (I think 2009 has to be 3.0)&lt;BR /&gt;
&lt;BR /&gt;
On 1/13/2010 9:19 AM, jim.brinkmeyer@otak.com wrote:&lt;BR /&gt;
&amp;gt; Trying to get up to speed with VB.Net and am using Visual Studio 2008 and the acdbmgd and acmgd wrappers from Autocad 2009.  Have set up the class library per the instructions in 'Autocad 2007 .NET API Training Lab - VB' and have set up Acad 09 as the external program on the debug tab. ! am able to netload the application (after building it) however when I enter the command AutoCAD returns unknown command.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Am working through Lab3 and using the following:&lt;COMMANDMETHOD&gt;   Public Function CreateEmployee().&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Seem to recall something from somewhere most likely an AU class about different versions of autocad and compatibility with different versions of Visual Studio.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any help is appreciated.&lt;/COMMANDMETHOD&gt;</description>
    <pubDate>Wed, 13 Jan 2010 20:14:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-01-13T20:14:35Z</dc:date>
    <item>
      <title>Unknown Commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616003#M67574</link>
      <description>Trying to get up to speed with VB.Net and am using Visual Studio 2008 and the acdbmgd and acmgd wrappers from Autocad 2009.  Have set up the class library per the instructions in 'Autocad 2007 .NET API Training Lab - VB' and have set up Acad 09 as the external program on the debug tab. ! am able to netload the application (after building it) however when I enter the command AutoCAD returns unknown command.&lt;BR /&gt;
&lt;BR /&gt;
Am working through Lab3 and using the following: &lt;COMMANDMETHOD&gt;  Public Function CreateEmployee().&lt;BR /&gt;
&lt;BR /&gt;
Seem to recall something from somewhere most likely an AU class about different versions of autocad and compatibility with different versions of Visual Studio.&lt;BR /&gt;
&lt;BR /&gt;
Any help is appreciated.&lt;/COMMANDMETHOD&gt;</description>
      <pubDate>Wed, 13 Jan 2010 17:19:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616003#M67574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-13T17:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown Commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616004#M67575</link>
      <description>Make sure that you set Copy Local for acmgd.dll and acdbmgd.dll to False.</description>
      <pubDate>Wed, 13 Jan 2010 20:10:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616004#M67575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-13T20:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown Commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616005#M67576</link>
      <description>You have to use the correct version of the .NET Framework to compile &lt;BR /&gt;
your code.  (I think 2009 has to be 3.0)&lt;BR /&gt;
&lt;BR /&gt;
On 1/13/2010 9:19 AM, jim.brinkmeyer@otak.com wrote:&lt;BR /&gt;
&amp;gt; Trying to get up to speed with VB.Net and am using Visual Studio 2008 and the acdbmgd and acmgd wrappers from Autocad 2009.  Have set up the class library per the instructions in 'Autocad 2007 .NET API Training Lab - VB' and have set up Acad 09 as the external program on the debug tab. ! am able to netload the application (after building it) however when I enter the command AutoCAD returns unknown command.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Am working through Lab3 and using the following:&lt;COMMANDMETHOD&gt;   Public Function CreateEmployee().&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Seem to recall something from somewhere most likely an AU class about different versions of autocad and compatibility with different versions of Visual Studio.&lt;BR /&gt;
&amp;gt;&lt;BR /&gt;
&amp;gt; Any help is appreciated.&lt;/COMMANDMETHOD&gt;</description>
      <pubDate>Wed, 13 Jan 2010 20:14:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616005#M67576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-13T20:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown Commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616006#M67577</link>
      <description>I think 2009 was still on version 2, but regardless, I am compiling to version 2, using VS2005, running in ACAD2010, which I know was written to 3 or 3.5.  I have had no trouble yet.&lt;BR /&gt;
&lt;BR /&gt;
When I changed references from 2009 ACAD to 2010, for some reason unknown to me the Studio required me to add a reference to the newer Windows PresentationCore version 3.00, but that is the only reference I have to version 3 files.  &lt;BR /&gt;
&lt;BR /&gt;
I believe the other comment about copy local is the most likely, but there are a few other potential causes for the commands not being recognized.  (The class or module containing them must be public, and the subs themselves must be public, for instance)&lt;BR /&gt;
&lt;BR /&gt;
As a matter of fact, I just noticed you said Public Function, but command methods have to be Subs with no arguments.  I tried it on my machine and I get a binding error at runtime, as opposed to unknown command, so maybe you just typed Function in the post out of habit?&lt;BR /&gt;
&lt;BR /&gt;
Also, if you are following along with the labs, then I don't think this is the problem, but if you got ahead of yourself and put in a class with the CommandClass attribute, Autocad will only find commands in that class.  CommandMethods outside the CommandClass will be ignored.&lt;BR /&gt;
&lt;BR /&gt;
Edited by: chiefbraincloud on Jan 13, 2010 2:07 PM&lt;BR /&gt;
&lt;BR /&gt;
Ok, read more carefully...  Now that I see you are using VS 2008, maybe cwitt had the right Idea, wrong version.  (while I am able to compile to .NET 2, and run in 2010 built for 3, I don't think you could compile to 3 and run in something built for .NET 2, which could be happening)</description>
      <pubDate>Wed, 13 Jan 2010 21:06:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616006#M67577</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2010-01-13T21:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown Commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616007#M67578</link>
      <description>Thanks that did the trick now I'm running into the error:  Error binding to target method.  I'm sure that's something in my code though.  &lt;BR /&gt;
&lt;BR /&gt;
So what does 'Make sure that you set Copy Local for acmgd.dll and acdbmgd.dll to False.' mean ?&lt;BR /&gt;
&lt;BR /&gt;
(and) where does one set the .net framework version?</description>
      <pubDate>Wed, 13 Jan 2010 21:08:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616007#M67578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-13T21:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown Commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616008#M67579</link>
      <description>If copy local is true, then copies of those references will be placed in the build output directory of your program, and that messes things up.&lt;BR /&gt;
&lt;BR /&gt;
I am still on VS 2005, and I don't think it has the setting, but a few months ago when I played around with VS 2008 Professional Trial version I believe I saw a setting for Target Framework.  (I couldn't really tell you exactly where, but I think it was in the project properties pages)&lt;BR /&gt;
&lt;BR /&gt;
With this latest comment, I don't think that is your problem, because the new error message is the same one I got when I tried a command method declared as a function.  Methods declared with the CommandMethod Attribute must be subs.  That should take care of the Binding error.</description>
      <pubDate>Wed, 13 Jan 2010 21:20:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616008#M67579</guid>
      <dc:creator>chiefbraincloud</dc:creator>
      <dc:date>2010-01-13T21:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown Commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616009#M67580</link>
      <description>Everyone --&lt;BR /&gt;
Thanks got it figured out and running in VS08 to ACAD09 works fine.  The tip on 'copy local' did the trick on my initial problem and the tip on using a sub and dot a function got rid of my binding problem.  Interestingly the 'Acad 2007 Managed VB.NET Training 3 Labs' doc. shows the code as a function.&lt;BR /&gt;
&lt;BR /&gt;
Regardless my thanks to you all.  I was jogging along fine and then had to re-burn my laptop (a virus over the holidays and a scrambled registry) and I installed VS 2008 and the latest Framework and tried to just jump back in and go for it.&lt;BR /&gt;
&lt;BR /&gt;
Think I'm back on track now, thanks again.</description>
      <pubDate>Wed, 13 Jan 2010 21:43:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616009#M67580</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-13T21:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown Commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616010#M67581</link>
      <description>&amp;gt;&amp;gt;  Public Function CreateEmployee().&lt;BR /&gt;
&lt;BR /&gt;
Does the lab actually show this?&lt;BR /&gt;
&lt;BR /&gt;
It can't be a Function, it must be a Sub.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;JIM.BRINKMEYER&gt; wrote in message &lt;BR /&gt;
news:6317594@discussion.autodesk.com...&lt;BR /&gt;
Trying to get up to speed with VB.Net and am using Visual Studio 2008 and the &lt;BR /&gt;
acdbmgd and acmgd wrappers from Autocad 2009.  Have set up the class library per &lt;BR /&gt;
the instructions in 'Autocad 2007 .NET API Training Lab - VB' and have set up &lt;BR /&gt;
Acad 09 as the external program on the debug tab. ! am able to netload the &lt;BR /&gt;
application (after building it) however when I enter the command AutoCAD returns &lt;BR /&gt;
unknown command.&lt;BR /&gt;
&lt;BR /&gt;
Am working through Lab3 and using the following: &lt;COMMANDMETHOD&gt; &lt;BR /&gt;
Public Function CreateEmployee().&lt;BR /&gt;
&lt;BR /&gt;
Seem to recall something from somewhere most likely an AU class about different &lt;BR /&gt;
versions of autocad and compatibility with different versions of Visual Studio.&lt;BR /&gt;
&lt;BR /&gt;
Any help is appreciated.&lt;/COMMANDMETHOD&gt;&lt;/JIM.BRINKMEYER&gt;</description>
      <pubDate>Wed, 13 Jan 2010 21:47:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616010#M67581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-13T21:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown Commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616011#M67582</link>
      <description>Yes... that is I believe so Here's to code right out of the doc file.&lt;BR /&gt;
&lt;COMMANDMETHOD&gt; _&lt;BR /&gt;
Public Function CreateEmployee()&lt;BR /&gt;
&lt;BR /&gt;
Dim db As Database = HostApplicationServices.WorkingDatabase()&lt;BR /&gt;
Dim trans As Transaction = db.TransactionManager.StartTransaction()&lt;BR /&gt;
     Try&lt;BR /&gt;
          Dim Circle As Circle = New Circle(New Point3d(10, 10, 0), Vector3d.ZAxis, 2.0)&lt;BR /&gt;
          Dim bt as BlockTable = trans.GetObject(db.BlockTableId, OpenMode.ForRead)&lt;BR /&gt;
          Dim btr as BlockTableRecord = trans.GetObject(bt(btr.ModelSpace), OpenMode.ForWrite)&lt;BR /&gt;
          btr.AppendEntity(circle)&lt;BR /&gt;
          trans.AddNewlyCreatedDBObject(circle, True)&lt;BR /&gt;
          trans.Commit()&lt;BR /&gt;
     Catch&lt;BR /&gt;
          MsgBox("Error Adding Entities")&lt;BR /&gt;
     Finally&lt;BR /&gt;
          trans.Dispose()&lt;BR /&gt;
     End Try&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
Now it may be that I'm missing something I'm just part way through the 3rd lab and there may be something further along that makes this work.&lt;BR /&gt;
Anyway thanks again everyone.&lt;/COMMANDMETHOD&gt;</description>
      <pubDate>Wed, 13 Jan 2010 22:05:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616011#M67582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-13T22:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown Commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616012#M67583</link>
      <description>Well, it's really unfortunate that Autodesk-provided training materials are that &lt;BR /&gt;
bad.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;JIM.BRINKMEYER&gt; wrote in message &lt;BR /&gt;
news:6317883@discussion.autodesk.com...&lt;BR /&gt;
Yes... that is I believe so Here's to code right out of the doc file.&lt;BR /&gt;
&lt;COMMANDMETHOD&gt; _&lt;BR /&gt;
Public Function CreateEmployee()&lt;BR /&gt;
&lt;BR /&gt;
Dim db As Database = HostApplicationServices.WorkingDatabase()&lt;BR /&gt;
Dim trans As Transaction = db.TransactionManager.StartTransaction()&lt;BR /&gt;
     Try&lt;BR /&gt;
          Dim Circle As Circle = New Circle(New Point3d(10, 10, 0), &lt;BR /&gt;
Vector3d.ZAxis, 2.0)&lt;BR /&gt;
          Dim bt as BlockTable = trans.GetObject(db.BlockTableId, &lt;BR /&gt;
OpenMode.ForRead)&lt;BR /&gt;
          Dim btr as BlockTableRecord = trans.GetObject(bt(btr.ModelSpace), &lt;BR /&gt;
OpenMode.ForWrite)&lt;BR /&gt;
          btr.AppendEntity(circle)&lt;BR /&gt;
          trans.AddNewlyCreatedDBObject(circle, True)&lt;BR /&gt;
          trans.Commit()&lt;BR /&gt;
     Catch&lt;BR /&gt;
          MsgBox("Error Adding Entities")&lt;BR /&gt;
     Finally&lt;BR /&gt;
          trans.Dispose()&lt;BR /&gt;
     End Try&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
Now it may be that I'm missing something I'm just part way through the 3rd lab &lt;BR /&gt;
and there may be something further along that makes this work.&lt;BR /&gt;
Anyway thanks again everyone.&lt;/COMMANDMETHOD&gt;&lt;/JIM.BRINKMEYER&gt;</description>
      <pubDate>Wed, 13 Jan 2010 22:12:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616012#M67583</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-13T22:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown Commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616013#M67584</link>
      <description>What might explain it is that back when those materials were written, the &lt;BR /&gt;
managed runtime actually allowed Functions to be used for CommandMethods, and &lt;BR /&gt;
would just ignore their result.&lt;BR /&gt;
&lt;BR /&gt;
But that doesn't excuse not maintaning them to work correctly with the current &lt;BR /&gt;
release.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;JIM.BRINKMEYER&gt; wrote in message &lt;BR /&gt;
news:6317883@discussion.autodesk.com...&lt;BR /&gt;
Yes... that is I believe so Here's to code right out of the doc file.&lt;BR /&gt;
&lt;COMMANDMETHOD&gt; _&lt;BR /&gt;
Public Function CreateEmployee()&lt;BR /&gt;
&lt;BR /&gt;
Dim db As Database = HostApplicationServices.WorkingDatabase()&lt;BR /&gt;
Dim trans As Transaction = db.TransactionManager.StartTransaction()&lt;BR /&gt;
     Try&lt;BR /&gt;
          Dim Circle As Circle = New Circle(New Point3d(10, 10, 0), &lt;BR /&gt;
Vector3d.ZAxis, 2.0)&lt;BR /&gt;
          Dim bt as BlockTable = trans.GetObject(db.BlockTableId, &lt;BR /&gt;
OpenMode.ForRead)&lt;BR /&gt;
          Dim btr as BlockTableRecord = trans.GetObject(bt(btr.ModelSpace), &lt;BR /&gt;
OpenMode.ForWrite)&lt;BR /&gt;
          btr.AppendEntity(circle)&lt;BR /&gt;
          trans.AddNewlyCreatedDBObject(circle, True)&lt;BR /&gt;
          trans.Commit()&lt;BR /&gt;
     Catch&lt;BR /&gt;
          MsgBox("Error Adding Entities")&lt;BR /&gt;
     Finally&lt;BR /&gt;
          trans.Dispose()&lt;BR /&gt;
     End Try&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
Now it may be that I'm missing something I'm just part way through the 3rd lab &lt;BR /&gt;
and there may be something further along that makes this work.&lt;BR /&gt;
Anyway thanks again everyone.&lt;/COMMANDMETHOD&gt;&lt;/JIM.BRINKMEYER&gt;</description>
      <pubDate>Wed, 13 Jan 2010 22:15:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616013#M67584</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-13T22:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown Commands</title>
      <link>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616014#M67585</link>
      <description>In the visual studio vbproj inside of the class.vb they used Sub - not &lt;BR /&gt;
trying to find an excuse for them, just saying that what it is on the doc &lt;BR /&gt;
does not match with the solution... nice.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Tony Tanzillo" &lt;TONY.TANZILLO&gt; wrote in message &lt;BR /&gt;
news:6317893@discussion.autodesk.com...&lt;BR /&gt;
What might explain it is that back when those materials were written, the&lt;BR /&gt;
managed runtime actually allowed Functions to be used for CommandMethods, &lt;BR /&gt;
and&lt;BR /&gt;
would just ignore their result.&lt;BR /&gt;
&lt;BR /&gt;
But that doesn't excuse not maintaning them to work correctly with the &lt;BR /&gt;
current&lt;BR /&gt;
release.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
http://www.caddzone.com&lt;BR /&gt;
&lt;BR /&gt;
AcadXTabs: MDI Document Tabs for AutoCAD&lt;BR /&gt;
Supporting AutoCAD 2000 through 2010&lt;BR /&gt;
&lt;BR /&gt;
http://www.acadxtabs.com&lt;BR /&gt;
&lt;BR /&gt;
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");&lt;BR /&gt;
&lt;BR /&gt;
&lt;JIM.BRINKMEYER&gt; wrote in message&lt;BR /&gt;
news:6317883@discussion.autodesk.com...&lt;BR /&gt;
Yes... that is I believe so Here's to code right out of the doc file.&lt;BR /&gt;
&lt;COMMANDMETHOD&gt; _&lt;BR /&gt;
Public Function CreateEmployee()&lt;BR /&gt;
&lt;BR /&gt;
Dim db As Database = HostApplicationServices.WorkingDatabase()&lt;BR /&gt;
Dim trans As Transaction = db.TransactionManager.StartTransaction()&lt;BR /&gt;
     Try&lt;BR /&gt;
          Dim Circle As Circle = New Circle(New Point3d(10, 10, 0),&lt;BR /&gt;
Vector3d.ZAxis, 2.0)&lt;BR /&gt;
          Dim bt as BlockTable = trans.GetObject(db.BlockTableId,&lt;BR /&gt;
OpenMode.ForRead)&lt;BR /&gt;
          Dim btr as BlockTableRecord = trans.GetObject(bt(btr.ModelSpace),&lt;BR /&gt;
OpenMode.ForWrite)&lt;BR /&gt;
          btr.AppendEntity(circle)&lt;BR /&gt;
          trans.AddNewlyCreatedDBObject(circle, True)&lt;BR /&gt;
          trans.Commit()&lt;BR /&gt;
     Catch&lt;BR /&gt;
          MsgBox("Error Adding Entities")&lt;BR /&gt;
     Finally&lt;BR /&gt;
          trans.Dispose()&lt;BR /&gt;
     End Try&lt;BR /&gt;
End Function&lt;BR /&gt;
&lt;BR /&gt;
Now it may be that I'm missing something I'm just part way through the 3rd &lt;BR /&gt;
lab&lt;BR /&gt;
and there may be something further along that makes this work.&lt;BR /&gt;
Anyway thanks again everyone.&lt;/COMMANDMETHOD&gt;&lt;/JIM.BRINKMEYER&gt;&lt;/TONY.TANZILLO&gt;</description>
      <pubDate>Thu, 14 Jan 2010 03:28:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/unknown-commands/m-p/2616014#M67585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-14T03:28:14Z</dc:date>
    </item>
  </channel>
</rss>

