simple AutoCAD plugin using visual studio .NET (but doesn't work)

simple AutoCAD plugin using visual studio .NET (but doesn't work)

Anonymous
Not applicable
1,503 Views
4 Replies
Message 1 of 5

simple AutoCAD plugin using visual studio .NET (but doesn't work)

Anonymous
Not applicable

I am learning autocad customizaiton with VB.NET and I found this page which shows how to create a simple autocad plugin from autocad.

 

So, I exactly followed everything written there and tested the plugin at autocad. The plugin command will supposedly draw a circle with some text at the centre. To my dismay, however, there is no circle drawn when I type the command at the command line.

It is strange because the build process did not return any errors and my code does not have any syntax errors. I attached a screenshot of my code as well.

 

I am using AutoCAD 2015, Visual Studio Express 2012, and ObjectARX2015.

I did add AcCoreMgd.dll, AcDbMgd.dll, and AcMgd.dll files to the references and Target framework is 4.5 .

 

Could anyone be kind enough to help me solve this problem? so I wont be stuck here and continue to delve deeper into the world of AutoCAD customization. 

 

Thanks a million.

 

 

0 Likes
Accepted solutions (4)
1,504 Views
4 Replies
Replies (4)
Message 2 of 5

augusto.goncalves
Alumni
Alumni
Accepted solution
I don't see anything wrong with your code, maybe something with the project.

Have you tried debug it?

Or maybe you can also attach the VB.NET project so I can try it here.
Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
0 Likes
Message 3 of 5

Anonymous
Not applicable
Accepted solution

Hi,

 

I tried debugging and received the message

 

"A project with an output type of class library cannot be started directly. In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project."

 

I am not sure what it means.Could you please help me explain.

0 Likes
Message 4 of 5

augusto.goncalves
Alumni
Alumni
Accepted solution

Now we're getting somewhere new 🙂

To setup debug on your project, please check lesson 4 of this tutorial: http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=18172834

Regards,



Augusto Goncalves
Twitter @augustomaia
Autodesk Developer Network
Message 5 of 5

brianchapmandesign
Collaborator
Collaborator
Accepted solution

Did you "netload" your command? Type "netload" and pick the .dll file it created. Your command should work after that.


"Very funny, Scotty. Now beam down my clothes.
0 Likes