<?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: My first .NET code with lots of errors, please need help. in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427509#M65375</link>
    <description>&lt;P&gt;I have the same problem, but that solution (adding to the config file) simply crashes autocad on startup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program that I'm writing (literally, the hello world provided in one of the help videos) has a bunch of errors in the loading phase, the helloworld command doesn't work when it is complete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone got any other ideas?&lt;/P&gt;</description>
    <pubDate>Tue, 24 Apr 2012 05:34:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-04-24T05:34:57Z</dc:date>
    <item>
      <title>My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685068#M65361</link>
      <description>Hi everyone,&lt;BR /&gt;
I am having a difficult time understanding the errors that the .NET API is giving me. When I run my first code:&lt;BR /&gt;
&lt;BR /&gt;
'---code--------------------------------------&lt;BR /&gt;
Imports Autodesk.AutoCAD.Runtime&lt;BR /&gt;
&lt;BR /&gt;
Public Class vbstudentClass&lt;BR /&gt;
&lt;BR /&gt;
    ' Define command 'NewCmd1'&lt;BR /&gt;
	&lt;COMMANDMETHOD&gt; _&lt;BR /&gt;
	Public Sub NewCmd1()&lt;BR /&gt;
		MsgBox("NewCmd1")&lt;BR /&gt;
		' Type your code here&lt;BR /&gt;
&lt;BR /&gt;
	End Sub&lt;BR /&gt;
&lt;BR /&gt;
End Class&lt;BR /&gt;
'----Immediate Window--------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='NaN' BindingExpression:Path=Source.MinimumWidth; DataItem='ToolBarControl' (Name=''); target element is 'ToolBarControl' (Name=''); target property is 'MinWidth' (type 'Double')&lt;BR /&gt;
System.Windows.Data Error: 39 : BindingExpression path error: 'BackgroundOpacity' property not found on 'object' ''ContentPresenter' (Name='PART_CustomizeButtonInMainPanel')'. BindingExpression:Path=BackgroundOpacity; DataItem='ContentPresenter' (Name='PART_CustomizeButtonInMainPanel'); target element is 'SystemDropShadowChrome' (Name='Shdw'); target property is 'Opacity' (type 'Double')&lt;BR /&gt;
System.Windows.Data Error: 39 : BindingExpression path error: 'Current' property not found on 'object' ''QuickAccessUndoControl' (HashCode=32115247)'. BindingExpression:Path=Current; DataItem='QuickAccessUndoControl' (HashCode=32115247); target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')&lt;BR /&gt;
System.Windows.Data Error: 39 : BindingExpression path error: 'Current' property not found on 'object' ''QuickAccessRedoControl' (HashCode=6503226)'. BindingExpression:Path=Current; DataItem='QuickAccessRedoControl' (HashCode=6503226); target element is 'ContentPresenter' (Name=''); target property is 'NoTarget' (type 'Object')&lt;BR /&gt;
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='NaN' BindingExpression:Path=Source.MinimumWidth; DataItem='InfoToolbar' (Name='InfoCenter'); target element is 'InfoToolbar' (Name='InfoCenter'); target property is 'MinWidth' (type 'Double')&lt;BR /&gt;
System.Windows.Data Error: 39 : BindingExpression path error: 'BackgroundOpacity' property not found on 'object' ''ContentPresenter' (Name='PART_CustomizeButtonInMainPanel')'. BindingExpression:Path=BackgroundOpacity; DataItem='ContentPresenter' (Name='PART_CustomizeButtonInMainPanel'); target element is 'SystemDropShadowChrome' (Name='Shdw'); target property is 'Opacity' (type 'Double')&lt;BR /&gt;
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mToggleButton'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'KeyTipPlacementTarget' (type 'UIElement')&lt;BR /&gt;
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mToggleButton'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'KeyTipActivationTarget' (type 'UIElement')&lt;BR /&gt;
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'ElementName=mText'. BindingExpression:(no path); DataItem=null; target element is 'RibbonItemControl' (Name=''); target property is 'KeyTipPlacementTarget' (type 'UIElement')&lt;BR /&gt;
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=BackgroundBorderColor; DataItem=null; target element is 'SolidColorBrush' (HashCode=5425146); target property is 'Color' (type 'Color')&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
&lt;BR /&gt;
-Jay&lt;/COMMANDMETHOD&gt;</description>
      <pubDate>Wed, 19 May 2010 12:56:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685068#M65361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-19T12:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685069#M65362</link>
      <description>In Visual Studio, choose Tools-&amp;gt;Options, and in the left&lt;BR /&gt;
pane of the dialog, select the "Debugging" item.&lt;BR /&gt;
&lt;BR /&gt;
On the right side, check "Enable Just My Code".&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 2011&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;JUNOJ&gt; wrote in message news:6393678@discussion.autodesk.com...&lt;BR /&gt;
Hi everyone,&lt;BR /&gt;
I am having a difficult time understanding the errors that the .NET API is &lt;BR /&gt;
giving me. When I run my first code:&lt;BR /&gt;
&lt;BR /&gt;
'---code--------------------------------------&lt;BR /&gt;
Imports Autodesk.AutoCAD.Runtime&lt;BR /&gt;
&lt;BR /&gt;
Public Class vbstudentClass&lt;BR /&gt;
&lt;BR /&gt;
    ' Define command 'NewCmd1'&lt;BR /&gt;
&lt;COMMANDMETHOD&gt; _&lt;BR /&gt;
Public Sub NewCmd1()&lt;BR /&gt;
MsgBox("NewCmd1")&lt;BR /&gt;
' Type your code here&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
End Class&lt;BR /&gt;
'----Immediate Window--------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid &lt;BR /&gt;
for target property.; Value='NaN' BindingExpression:Path=Source.MinimumWidth; &lt;BR /&gt;
DataItem='ToolBarControl' (Name=''); target element is 'ToolBarControl' &lt;BR /&gt;
(Name=''); target property is 'MinWidth' (type 'Double')&lt;BR /&gt;
System.Windows.Data Error: 39 : BindingExpression path error: &lt;BR /&gt;
'BackgroundOpacity' property not found on 'object' ''ContentPresenter' &lt;BR /&gt;
(Name='PART_CustomizeButtonInMainPanel')'. &lt;BR /&gt;
BindingExpression:Path=BackgroundOpacity; DataItem='ContentPresenter' &lt;BR /&gt;
(Name='PART_CustomizeButtonInMainPanel'); target element is &lt;BR /&gt;
'SystemDropShadowChrome' (Name='Shdw'); target property is 'Opacity' (type &lt;BR /&gt;
'Double')&lt;BR /&gt;
System.Windows.Data Error: 39 : BindingExpression path error: 'Current' property &lt;BR /&gt;
not found on 'object' ''QuickAccessUndoControl' (HashCode=32115247)'. &lt;BR /&gt;
BindingExpression:Path=Current; DataItem='QuickAccessUndoControl' &lt;BR /&gt;
(HashCode=32115247); target element is 'ContentPresenter' (Name=''); target &lt;BR /&gt;
property is 'NoTarget' (type 'Object')&lt;BR /&gt;
System.Windows.Data Error: 39 : BindingExpression path error: 'Current' property &lt;BR /&gt;
not found on 'object' ''QuickAccessRedoControl' (HashCode=6503226)'. &lt;BR /&gt;
BindingExpression:Path=Current; DataItem='QuickAccessRedoControl' &lt;BR /&gt;
(HashCode=6503226); target element is 'ContentPresenter' (Name=''); target &lt;BR /&gt;
property is 'NoTarget' (type 'Object')&lt;BR /&gt;
System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid &lt;BR /&gt;
for target property.; Value='NaN' BindingExpression:Path=Source.MinimumWidth; &lt;BR /&gt;
DataItem='InfoToolbar' (Name='InfoCenter'); target element is 'InfoToolbar' &lt;BR /&gt;
(Name='InfoCenter'); target property is 'MinWidth' (type 'Double')&lt;BR /&gt;
System.Windows.Data Error: 39 : BindingExpression path error: &lt;BR /&gt;
'BackgroundOpacity' property not found on 'object' ''ContentPresenter' &lt;BR /&gt;
(Name='PART_CustomizeButtonInMainPanel')'. &lt;BR /&gt;
BindingExpression:Path=BackgroundOpacity; DataItem='ContentPresenter' &lt;BR /&gt;
(Name='PART_CustomizeButtonInMainPanel'); target element is &lt;BR /&gt;
'SystemDropShadowChrome' (Name='Shdw'); target property is 'Opacity' (type &lt;BR /&gt;
'Double')&lt;BR /&gt;
System.Windows.Data Error: 4 : Cannot find source for binding with reference &lt;BR /&gt;
'ElementName=mToggleButton'. BindingExpression:(no path); DataItem=null; target &lt;BR /&gt;
element is 'RibbonItemControl' (Name=''); target property is &lt;BR /&gt;
'KeyTipPlacementTarget' (type 'UIElement')&lt;BR /&gt;
System.Windows.Data Error: 4 : Cannot find source for binding with reference &lt;BR /&gt;
'ElementName=mToggleButton'. BindingExpression:(no path); DataItem=null; target &lt;BR /&gt;
element is 'RibbonItemControl' (Name=''); target property is &lt;BR /&gt;
'KeyTipActivationTarget' (type 'UIElement')&lt;BR /&gt;
System.Windows.Data Error: 4 : Cannot find source for binding with reference &lt;BR /&gt;
'ElementName=mText'. BindingExpression:(no path); DataItem=null; target element &lt;BR /&gt;
is 'RibbonItemControl' (Name=''); target property is 'KeyTipPlacementTarget' &lt;BR /&gt;
(type 'UIElement')&lt;BR /&gt;
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or &lt;BR /&gt;
FrameworkContentElement for target element. &lt;BR /&gt;
BindingExpression:Path=BackgroundBorderColor; DataItem=null; target element is &lt;BR /&gt;
'SolidColorBrush' (HashCode=5425146); target property is 'Color' (type 'Color')&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
&lt;BR /&gt;
-Jay&lt;/COMMANDMETHOD&gt;&lt;/JUNOJ&gt;</description>
      <pubDate>Wed, 19 May 2010 16:02:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685069#M65362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-19T16:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685070#M65363</link>
      <description>Hi Tony. Thank you for helping me out again.&lt;BR /&gt;
&lt;BR /&gt;
I am using the 2008 Express Edition, I can't find the option under the Express Edition. Do you happen to know if I can do the same under the Express Edition.&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
&lt;BR /&gt;
-Jay</description>
      <pubDate>Wed, 19 May 2010 21:24:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685070#M65363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-19T21:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685071#M65364</link>
      <description>Sorry, I'm not too familar with the Express edition,&lt;BR /&gt;
but on reflection, this may not be the problem.&lt;BR /&gt;
&lt;BR /&gt;
In your project properties, select both the acmdg.dll&lt;BR /&gt;
and acdbmdg.dll references, and set their 'CopyLocal'&lt;BR /&gt;
property to false.&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 2011&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;JUNOJ&gt; wrote in message news:6394130@discussion.autodesk.com...&lt;BR /&gt;
Hi Tony. Thank you for helping me out again.&lt;BR /&gt;
&lt;BR /&gt;
I am using the 2008 Express Edition, I can't find the option under the Express&lt;BR /&gt;
Edition. Do you happen to know if I can do the same under the Express Edition.&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
&lt;BR /&gt;
-Jay&lt;/JUNOJ&gt;</description>
      <pubDate>Wed, 19 May 2010 21:31:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685071#M65364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-19T21:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685072#M65365</link>
      <description>You having a hard time building your application? or are you getting an error when running the application?&lt;BR /&gt;
&lt;BR /&gt;
you should be able to see the errors dialog box if you hit CNTRL + E.</description>
      <pubDate>Wed, 19 May 2010 21:31:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685072#M65365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-19T21:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685073#M65366</link>
      <description>Hi Viktor,&lt;BR /&gt;
&lt;BR /&gt;
I tried the CNTRL + E, but nothing really happen. &lt;BR /&gt;
&lt;BR /&gt;
When I run the code, the code opens AutoCAD but i do not get any messages. I get a list of errors, i listed the errors above.&lt;BR /&gt;
&lt;BR /&gt;
Please help,&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
&lt;BR /&gt;
-Jay</description>
      <pubDate>Thu, 20 May 2010 14:05:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685073#M65366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-20T14:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685074#M65367</link>
      <description>Hi Viktor, I got it now. . . . . &lt;BR /&gt;
&lt;BR /&gt;
I was thinking VBA. I did not realize that I had to load the dll files independently.&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
&lt;BR /&gt;
-Jay</description>
      <pubDate>Thu, 20 May 2010 18:24:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685074#M65367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-20T18:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685075#M65368</link>
      <description>&lt;P&gt;
This may or may not apply to you but I thought just in case you never heard of this program, that I'd supply a link to &lt;STRONG&gt;Dreamspark&lt;/STRONG&gt;, &lt;A href="https://www.dreamspark.com/default.aspx"&gt;https://www.dreamspark.com/default.aspx&lt;/A&gt; which has all the Microsoft tools you'll need {color:#0000ff}&lt;STRONG&gt;FREE&lt;/STRONG&gt;{color}.  All you need be is in High School or College and have a school supplied email address with the extension .edu.  If your school is not on the list there is information as to how to get the software on the site.  Nothing wrong with the express versions, but here is a chance to get even more if your eligible.
&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2010 20:06:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685075#M65368</guid>
      <dc:creator>Mikko</dc:creator>
      <dc:date>2010-05-20T20:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685076#M65369</link>
      <description>That is grate Mikko. I will defiantly give it a try. I am not sure how much I will gain from upgrading to Pro vs. Express. Perhaps someone can give us some inside on which VB.net API is the best for AutoCAD programming, and why.&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
&lt;BR /&gt;
-Jay</description>
      <pubDate>Thu, 20 May 2010 23:28:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/2685076#M65369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-20T23:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3334621#M65370</link>
      <description>&lt;P&gt;&amp;nbsp;any solution to this issue yet!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using VS Express 2010, Win 7-32, and Map3D 2012 and getting the same errors.&lt;/P&gt;&lt;P&gt;Cannot ignore the errors as it takes considerable amount of time for all&amp;nbsp;the errors before I can actually start working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2012 07:39:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3334621#M65370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-16T07:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3335549#M65371</link>
      <description>&lt;P&gt;hi i am new to but with VS2010 express and autocad v2010 but now i know..&lt;/P&gt;&lt;P&gt;So check&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VS2010 :&lt;/P&gt;&lt;P&gt;menu project --&amp;gt; ProjetName propertie&lt;/P&gt;&lt;P&gt;Go to tab "compile"&lt;/P&gt;&lt;P&gt;click on button bottom of this windows "Advanced Compile Options..."&lt;/P&gt;&lt;P&gt;--&amp;gt; Target Framework :&lt;/P&gt;&lt;P&gt;here you have to check the framework version example :&lt;/P&gt;&lt;P&gt;for Autocad 2010 --&amp;gt; v3.5&lt;/P&gt;&lt;P&gt;for autocad 2012 --&amp;gt; v4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now go to tab "References"&lt;/P&gt;&lt;P&gt;you need have acdbmgd and acmgd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the 2 DLL you found it in the path of autocad. c:\program files\autocad2010\....&amp;nbsp; for me.&lt;/P&gt;&lt;P&gt;For add this click on button "Add.."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;save your project, buid. and try..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me in v2010 autocad i have to modify a file in the path of autocad but you in v2012 on autocad map i dont know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;example&amp;nbsp; for a single prog :&lt;/P&gt;&lt;PRE&gt;Imports Autodesk.AutoCAD.Runtime
Public Class Start
    &amp;lt;CommandMethod("ProgAR", CommandFlags.Session)&amp;gt; _
    Public Sub ProgAR()

               MsgBox("Txt !", vbOKOnly ,"Erreur PROG")
    End Sub 'End Command



End Class


&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2012 17:56:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3335549#M65371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-16T17:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3339363#M65372</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;Thanks &lt;A href="http://forums.autodesk.com/t5/user/viewprofilepage/user-id/574802" target="_self"&gt;&lt;SPAN style="color: #118888;"&gt;AubelecBE&lt;/SPAN&gt;&lt;/A&gt;,&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;I already have it set to compile for Framework 4 and all AutoCAD references are set to false copy local.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;I pinged AutoDesk for help and the message was that the errors are information only and do not create a problem so I should ignore them. The code will compile and run.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;Their options were to switch to C# or update to VS pro where these error do not occur........ so pretty much, I was&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;politely &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;told to, &lt;U&gt;suck it up princess&lt;/U&gt;, deal will the list of error messages or buy VS pro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial','sans-serif'; color: #232323; font-size: 8.5pt;"&gt;Hope someone can shed some light on these errors,&amp;nbsp;it is&amp;nbsp;a pain having to wait for the errors to finish listing before I can start debugging.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2012 17:33:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3339363#M65372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-20T17:33:21Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3377329#M65373</link>
      <description>&lt;P&gt;try this workaround:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="left"&gt;Add the following to the acad.exe.config file.&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp; &amp;lt;system.diagnostics&amp;gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sources&amp;gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;source name="System.Windows.Data" switchName="SourceSwitch"&amp;gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;listeners&amp;gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;remove name="Default" /&amp;gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/listeners&amp;gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/source&amp;gt;&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/sources&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;lt;/system.diagnostics&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Mar 2012 02:37:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3377329#M65373</guid>
      <dc:creator>Daniel.Du</dc:creator>
      <dc:date>2012-03-20T02:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3405277#M65374</link>
      <description>&lt;P&gt;Thanks, Daniel.... that seemed to work. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Apr 2012 17:59:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3405277#M65374</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-09T17:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427509#M65375</link>
      <description>&lt;P&gt;I have the same problem, but that solution (adding to the config file) simply crashes autocad on startup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The program that I'm writing (literally, the hello world provided in one of the help videos) has a bunch of errors in the loading phase, the helloworld command doesn't work when it is complete.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone got any other ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 05:34:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427509#M65375</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-24T05:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427529#M65376</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; I have the same problem&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Just to make sure as this thread is quite long and there are different issues listed: what is "the same problem"? Same to what?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; has a bunch of errors in the loading phase&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;What AutoCAD release and what Visual-Studio are you working with and what errors are these (copy them to a TXT-file and attache this here)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#666699"&gt;&amp;gt;&amp;gt; the helloworld command doesn't work&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So you get a "unknown command" message after NETLOADing it? Or what else happens?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 05:48:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427529#M65376</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-04-24T05:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427537#M65377</link>
      <description>&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;&amp;gt; "the same problem"? Same to what?&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The same as the OP. &amp;nbsp;first message in the thread.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;&amp;gt; &amp;nbsp;&lt;SPAN&gt;What AutoCAD release and what Visual-Studio are you working with and what errors are these (copy them to a TXT-file and attache this here)?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I have both AutoCAD Map 2012 and AutoCAD Plant3D 2012. &amp;nbsp;I also have Visual Studio 2010 on a Windows 7 64-bit system.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;gt; &amp;nbsp;&lt;SPAN&gt;So you get a "unknown command" message after NETLOADing it? Or what else happens?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;That's it. &amp;nbsp;AutoCAD starts, lots of errors in the debug window back in VS2010, and the command is not loaded. ("helloworld"). &amp;nbsp;I can continue using autocad if I want to... until i hit the stop button in the VS2010 debug area of course.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Netload? &amp;nbsp;That shouldn't be necessary at this point... The code that I'm running is...&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;PRE&gt;using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autodesk.AutoCAD.EditorInput;
using Autodesk.AutoCAD.ApplicationServices;

namespace Sandbox
{
    public class Sandbox1
    {
        [Autodesk.AutoCAD.Runtime.CommandMethod("helloworld")]
        public void MyHelloWorld()
        {
            //  get the editor object
            Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;

            //  write to the command line
            ed.WriteMessage("\nHello World!");

        }
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I should be able to just type 'helloworld' and for it to be demand loaded.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Doesn't get any less complex than that.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;I get about a hundred errors, but this is the first one...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='&amp;lt;null&amp;gt;' BindingExpression:Path=AutomationName; DataItem='ToolBarCustomizeButton' (HashCode=45895697); target element is 'ToolBarToggleButton' (Name='mCustomizeButton'); target property is 'Name' (type 'String')&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 06:04:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427537#M65377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-24T06:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427547#M65378</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do you have this code as a small solution or is the command "helloworld" built into an application with a lot of code?&lt;/P&gt;&lt;P&gt;If first (just this small sample-app) then ZIP the complete solution and upload it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW: when I start AutoCAD in debug-mode I also get a lot of messages, most having the source in the ribbons, but as long as the compiler does not give you an error in your code, these messages did never influence my debugging (well I'm always afraid about the guys who developed this ribbon-interface, either at Autodesk nor at Microsoft, because that mass of warnings look like "not finished yet").&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 06:01:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427547#M65378</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2012-04-24T06:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427557#M65379</link>
      <description>&lt;P&gt;&lt;FONT color="#008000"&gt;&amp;gt; do you have this code as a small solution or is the command "helloworld" built into an application with a lot of code?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No. &amp;nbsp;It's a stand-alone solution and class. &amp;nbsp;That text is the entire text of the class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;&amp;gt; If first (just this small sample-app) then ZIP the complete solution and upload it.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Done. &amp;nbsp;Attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;&amp;gt; BTW: when I start AutoCAD in debug-mode I also get a lot of messages, most having the source in the ribbons, but as long as the compiler does not give you an error in your code, these messages did never influence my debugging&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes, it wouldn't bother me, but the actual demand loaded command doesn't actually work. &amp;nbsp;I could deal with error messages if the command actually accomplished its objective. &amp;nbsp;But when I type the command that should now be demand loaded, it just does this...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Command: helloworld&lt;BR /&gt;Unknown command "HELLOWORLD". Press F1 for help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 06:08:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427557#M65379</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-24T06:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: My first .NET code with lots of errors, please need help.</title>
      <link>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427559#M65380</link>
      <description>&lt;P&gt;I've even attached a cut-paste of the VS2010 output window...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;650K long...&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2012 06:10:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/my-first-net-code-with-lots-of-errors-please-need-help/m-p/3427559#M65380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-24T06:10:49Z</dc:date>
    </item>
  </channel>
</rss>

