.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoCAD 2016 VS Express 2013 Templates needed

11 REPLIES 11
Reply
Message 1 of 12
graham
546 Views, 11 Replies

AutoCAD 2016 VS Express 2013 Templates needed

Hi

 

Can someone please point in the direction of some vb.net templates for AutoCAD 2016 and VSE 2013?  I've installed those supplied on the Autodesk page but there's nothing showing in VSE except a C# template. I need a VB one.

 

Many thanks

 

Graham

 

 

11 REPLIES 11
Message 2 of 12
_gile
in reply to: graham

Hi,

 

First I'd recommend you to use VS 2015 Community Edition because I do not see any good reason to use prior version and learn c# instead of VB because, as you already experimented, you'll find more examples, samples, templates written in C# than in VB.

 

Anyway, I think build your own templates is a good way to start learning .NET. Just start an AutoCAD project from scratch and export the template.

I wrote some tutos about building  .NET templates for AutoCAD, you can get an English translation for the VB Template from here and for the C# template from there.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 12
Keith.Brown
in reply to: graham

I would do what gile suggests as anything he recommends can be taken as excellent advise.

 

However, here is a link to the AutoCAD .Net Wizards for Visual Studio github project which can you give you a good start on creating/implementing your own.

 

https://github.com/ADN-DevTech/AutoCAD-Net-Wizards

Message 4 of 12
graham
in reply to: Keith.Brown

Thanks for the help and suggestions.  Unfortunately learning a brand new language isn't practical at the moment.  My background is VBA so to stick with VB is preferable at the moment.

 

I've got VS 2015 installed as well, and only said about 2013 as the templates from Autodesk for AutoCAD 2016 only work with VS 2013.

Message 5 of 12
_gile
in reply to: graham


graham a écrit :

Thanks for the help and suggestions.  Unfortunately learning a brand new language isn't practical at the moment.  My background is VBA so to stick with VB is preferable at the moment.


I do not agree, the biggest part of your learning is the .NET environment and the .NET AutoCAD API, in this context learning a new syntax is really not much.
Moreover, learning .NET with an unknown language will allow you to see it as something completely new and will take you away from your habits with VBA.
Anyway, you will be obliged to learn at least reading C# for the reasons mentioned in previous message...

 

That said, you can do as you want.

 

 


graham a écrit :

I've got VS 2015 installed as well, and only said about 2013 as the templates from Autodesk for AutoCAD 2016 only work with VS 2013.


This is one of the reasons I recommend building your own templates in addition to the fact that it teaches you the structure of a project with Visual Studio.

With VS 2015, you can build and use templates for AutoCAD 2007 to 2017.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 6 of 12
BKSpurgeon
in reply to: graham

hi welcome

 

i concur with everything my estimable colleagues said and would add that: if you already know VBA, and you're planning to dive into VB.NET then quantum leap to c# is miniscule.   is purely syntax which you'll pick up easily using the documentation.

 

I've got a screen cast somewhere showing how to begin but i would strongly urge you to use the template that KeithBrown has suggested u use.

 

rgds

 

Bk

 

 

 

 

Message 7 of 12
Anonymous
in reply to: graham

I want to ask some follow up questions here regarding VB vs C#. 

"I do not see any good reason to use prior version and learn c# instead of VB because, as you already experimented, you'll find more examples, samples, templates written in C# than in VB."

 

I have to take this comment at face value.

I am new to Visual Studio and programming in general. My only goal is to be able to customize AutoCAD and maybe carry over into some office customization. I had decided to learn Visual Basic because I have read in numerous locations that it is the easiest to learn. 

I have started taking an online VB course. (I like it) 
Have I mislead myself?
Does this forum generally recommend C# over VB even for a casual learner?

Message 8 of 12
BKSpurgeon
in reply to: graham

I second what @_gile has suggested having read his posts, and also wholeheartedly concur with @Keith.Brown

 

I originally learned VBA. switching to c# is really one of the easiest things in the world. you might struggle to write the first few expressions, but given 10 minutes of concerted struggle, i think you'll be ok after that. you probably won't have to think too much especially given the IDE is there to help you. The only thing you might actually be required to read up on is casting - you can explicitly cast in c#. other than that it's basically very similar and the IL code output is exactly the same.

 

@_gile - i couldn't find an english translation of your tutorials. only french?

 

 

Message 9 of 12
_gile
in reply to: BKSpurgeon

@Anonymous

 

This recommendation is only my personal opinion.

Until now, the differences between VB and C # are essentially syntactic. From this point of view, the choice may be aesthetic, cultural, but should not be preponderant (for my part, I find that the verbosity of VB impedes the immediate comprehension of the code).

Beyond the syntactic difference, VB can be less rigorous than C# depending on the compiler options (for my part, I think that more rigor is preferable in programming).

And above all, as mentioned above, you will find more examples in C # especially for AutoCAD programming (Through the Interface,
Drive AutoCAD with Code, AcadNetAddin & More, ...) and, more often, the help on this forum (or others) comes from C# users.

 

In conclusion, my prefered .NET language would be F# but, due to its confidentiallity, I mostly use C#.

 

 

@BKSpurgeon

 

You can translate this page into English using Microsoft Translator from the top left dropdown list.

You can also download templates from this page.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 10 of 12
Anonymous
in reply to: _gile

_gile & BKSpurgeon, 

 

Thank you again for a concise and intelligent answer.

It seems I'll be looking into C#. 

Message 11 of 12
_gile
in reply to: Anonymous

I tried to translate the latest version of the "Create Template" tutorial into English. There are probably still some translation errors.

 

Create a C# Template for AutoCAD with Visual Studio 2015



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 12 of 12
_gile
in reply to: _gile

@Ed.Jobe kindly translated this tutorial. It is available >>here<<.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost