Visual Basic 2008 Express and AutoCAD 2009

Visual Basic 2008 Express and AutoCAD 2009

Anonymous
Not applicable
1,612 Views
10 Replies
Message 1 of 11

Visual Basic 2008 Express and AutoCAD 2009

Anonymous
Not applicable
It is possible to use VB 2008 Express With AutoCAD 2009.

I tried the object arx2009 Hello VB sample, I compile it, and i used Netload, but when i type HELLO at the AutoCAD 2009 command line, it says that it is not a command, I need Help

Thank You
0 Likes
1,613 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable
First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.

Next, start a "Class Library" project type.

Then, paste this code in the editor:

Imports Autodesk.AutoCAD.Runtime

Public Class Examples

_

Public Sub Hello()

MsgBox("This is a test")

End Sub

End Class



Build the solution and then netload it into AutoCAD. Type "Hello" at the
command prompt and you should see a dialog box with the message above.

Joe ...



wrote in message news:[email protected]...
It is possible to use VB 2008 Express With AutoCAD 2009.

I tried the object arx2009 Hello VB sample, I compile it, and i used
Netload, but when i type HELLO at the AutoCAD 2009 command line, it says
that it is not a command, I need Help

Thank You
0 Likes
Message 3 of 11

Anonymous
Not applicable
>>First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.
Also set 'copy local' to false for both... Seem to be the original problem.

"Joe Sutphin" wrote in message news:[email protected]...
First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.

Next, start a "Class Library" project type.

Then, paste this code in the editor:

Imports Autodesk.AutoCAD.Runtime

Public Class Examples

_

Public Sub Hello()

MsgBox("This is a test")

End Sub

End Class



Build the solution and then netload it into AutoCAD. Type "Hello" at the
command prompt and you should see a dialog box with the message above.

Joe ...



wrote in message news:[email protected]...
It is possible to use VB 2008 Express With AutoCAD 2009.

I tried the object arx2009 Hello VB sample, I compile it, and i used
Netload, but when i type HELLO at the AutoCAD 2009 command line, it says
that it is not a command, I need Help

Thank You
0 Likes
Message 4 of 11

Anonymous
Not applicable
Oops, you should do that, although I never do.

Joe ...


"Paul Richardson" wrote in message
news:[email protected]...
>>First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.
Also set 'copy local' to false for both... Seem to be the original problem.

"Joe Sutphin" wrote in message
news:[email protected]...
First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.

Next, start a "Class Library" project type.

Then, paste this code in the editor:

Imports Autodesk.AutoCAD.Runtime

Public Class Examples

_

Public Sub Hello()

MsgBox("This is a test")

End Sub

End Class



Build the solution and then netload it into AutoCAD. Type "Hello" at the
command prompt and you should see a dialog box with the message above.

Joe ...



wrote in message news:[email protected]...
It is possible to use VB 2008 Express With AutoCAD 2009.

I tried the object arx2009 Hello VB sample, I compile it, and i used
Netload, but when i type HELLO at the AutoCAD 2009 command line, it says
that it is not a command, I need Help

Thank You
0 Likes
Message 5 of 11

Anonymous
Not applicable
You have to or the commands won't be recognized. If you create a project using the wizard it does it for you though.

"Joe Sutphin" wrote in message news:[email protected]...
Oops, you should do that, although I never do.

Joe ...


"Paul Richardson" wrote in message
news:[email protected]...
>>First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.
Also set 'copy local' to false for both... Seem to be the original problem.

"Joe Sutphin" wrote in message
news:[email protected]...
First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.

Next, start a "Class Library" project type.

Then, paste this code in the editor:

Imports Autodesk.AutoCAD.Runtime

Public Class Examples

_

Public Sub Hello()

MsgBox("This is a test")

End Sub

End Class



Build the solution and then netload it into AutoCAD. Type "Hello" at the
command prompt and you should see a dialog box with the message above.

Joe ...



wrote in message news:[email protected]...
It is possible to use VB 2008 Express With AutoCAD 2009.

I tried the object arx2009 Hello VB sample, I compile it, and i used
Netload, but when i type HELLO at the AutoCAD 2009 command line, it says
that it is not a command, I need Help

Thank You
0 Likes
Message 6 of 11

Anonymous
Not applicable
Evidently not since I don't and I don't have any problems.

Joe ...

"Paul Richardson" wrote in message
news:[email protected]...
You have to or the commands won't be recognized. If you create a project
using the wizard it does it for you though.

"Joe Sutphin" wrote in message
news:[email protected]...
Oops, you should do that, although I never do.

Joe ...


"Paul Richardson" wrote in message
news:[email protected]...
>>First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.
Also set 'copy local' to false for both... Seem to be the original problem.

"Joe Sutphin" wrote in message
news:[email protected]...
First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.

Next, start a "Class Library" project type.

Then, paste this code in the editor:

Imports Autodesk.AutoCAD.Runtime

Public Class Examples

_

Public Sub Hello()

MsgBox("This is a test")

End Sub

End Class



Build the solution and then netload it into AutoCAD. Type "Hello" at the
command prompt and you should see a dialog box with the message above.

Joe ...



wrote in message news:[email protected]...
It is possible to use VB 2008 Express With AutoCAD 2009.

I tried the object arx2009 Hello VB sample, I compile it, and i used
Netload, but when i type HELLO at the AutoCAD 2009 command line, it says
that it is not a command, I need Help

Thank You
0 Likes
Message 7 of 11

Anonymous
Not applicable
Perhaps you don't have any problems because you've never
debugged a managed application.

That's when the commands are not recognized.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm

"Joe Sutphin" wrote in message news:[email protected]...
Evidently not since I don't and I don't have any problems.

Joe ...

"Paul Richardson" wrote in message
news:[email protected]...
You have to or the commands won't be recognized. If you create a project
using the wizard it does it for you though.

"Joe Sutphin" wrote in message
news:[email protected]...
Oops, you should do that, although I never do.

Joe ...


"Paul Richardson" wrote in message
news:[email protected]...
>>First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.
Also set 'copy local' to false for both... Seem to be the original problem.

"Joe Sutphin" wrote in message
news:[email protected]...
First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.

Next, start a "Class Library" project type.

Then, paste this code in the editor:

Imports Autodesk.AutoCAD.Runtime

Public Class Examples

_

Public Sub Hello()

MsgBox("This is a test")

End Sub

End Class



Build the solution and then netload it into AutoCAD. Type "Hello" at the
command prompt and you should see a dialog box with the message above.

Joe ...



wrote in message news:[email protected]...
It is possible to use VB 2008 Express With AutoCAD 2009.

I tried the object arx2009 Hello VB sample, I compile it, and i used
Netload, but when i type HELLO at the AutoCAD 2009 command line, it says
that it is not a command, I need Help

Thank You
0 Likes
Message 8 of 11

Anonymous
Not applicable
So you can set 'copy local' to true and still have the commands run... I cannot. Anyone else able to create
commands without setting 'copy local' to false?

"Joe Sutphin" wrote in message news:[email protected]...
Evidently not since I don't and I don't have any problems.

Joe ...

"Paul Richardson" wrote in message
news:[email protected]...
You have to or the commands won't be recognized. If you create a project
using the wizard it does it for you though.

"Joe Sutphin" wrote in message
news:[email protected]...
Oops, you should do that, although I never do.

Joe ...


"Paul Richardson" wrote in message
news:[email protected]...
>>First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.
Also set 'copy local' to false for both... Seem to be the original problem.

"Joe Sutphin" wrote in message
news:[email protected]...
First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.

Next, start a "Class Library" project type.

Then, paste this code in the editor:

Imports Autodesk.AutoCAD.Runtime

Public Class Examples

_

Public Sub Hello()

MsgBox("This is a test")

End Sub

End Class



Build the solution and then netload it into AutoCAD. Type "Hello" at the
command prompt and you should see a dialog box with the message above.

Joe ...



wrote in message news:[email protected]...
It is possible to use VB 2008 Express With AutoCAD 2009.

I tried the object arx2009 Hello VB sample, I compile it, and i used
Netload, but when i type HELLO at the AutoCAD 2009 command line, it says
that it is not a command, I need Help

Thank You
0 Likes
Message 9 of 11

Anonymous
Not applicable
I should have mentioned this is only during debugging - Danka!

"Tony Tanzillo" wrote in message news:[email protected]...
Perhaps you don't have any problems because you've never
debugged a managed application.

That's when the commands are not recognized.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm

"Joe Sutphin" wrote in message news:[email protected]...
Evidently not since I don't and I don't have any problems.

Joe ...

"Paul Richardson" wrote in message
news:[email protected]...
You have to or the commands won't be recognized. If you create a project
using the wizard it does it for you though.

"Joe Sutphin" wrote in message
news:[email protected]...
Oops, you should do that, although I never do.

Joe ...


"Paul Richardson" wrote in message
news:[email protected]...
>>First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.
Also set 'copy local' to false for both... Seem to be the original problem.

"Joe Sutphin" wrote in message
news:[email protected]...
First, make sure you have a reference set to acMgd.dll and acDbMgd.dll.

Next, start a "Class Library" project type.

Then, paste this code in the editor:

Imports Autodesk.AutoCAD.Runtime

Public Class Examples

_

Public Sub Hello()

MsgBox("This is a test")

End Sub

End Class



Build the solution and then netload it into AutoCAD. Type "Hello" at the
command prompt and you should see a dialog box with the message above.

Joe ...



wrote in message news:[email protected]...
It is possible to use VB 2008 Express With AutoCAD 2009.

I tried the object arx2009 Hello VB sample, I compile it, and i used
Netload, but when i type HELLO at the AutoCAD 2009 command line, it says
that it is not a command, I need Help

Thank You
0 Likes
Message 10 of 11

Anonymous
Not applicable
Thank you very much, now it is working
0 Likes
Message 11 of 11

Anonymous
Not applicable
I just upgraded to Visual Studio 2008. I have found that it wont recognize any of the commands that i compiled with it. I Can debug it great, but i go to install on another machine it doesnt work one bit. Any help would be appreciated.

Using Version AutoCAD 2007,2008,2009. The version doesnt matter. It must be sometihng during the compile. I have tried copying local and not. Its getting frustrating!!
0 Likes