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

c# or VB.net for AutoCAD 2010?

10 REPLIES 10
Reply
Message 1 of 11
cwhitaker
980 Views, 10 Replies

c# or VB.net for AutoCAD 2010?

I think it is just a matter of preference but which program language is better for customizing AutoCAD 2010 VB.NET or C#?
10 REPLIES 10
Message 2 of 11

This is really a matter of preference. Both languages have quasi the same capabilities, so I'd suggest using the one wich suits you best (Background, experience etc)
Message 3 of 11
Anonymous
in reply to: cwhitaker


It is truly a matter of preference, but
I've always found the best examples are written
in C#, not just for the AutoCAD API, but for .NET in general.  I am
starting to see more VB examples on the web though.  I admit that I don't
stop to read them, so I can't attest to their quality, but at least the volume
is picking up 🙂
--
Bobby C. Jones

href="http://bobbycjones.spaces.live.com">http://bobbycjones.spaces.live.com


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
think it is just a matter of preference but which program language is better
for customizing AutoCAD 2010 VB.NET or C#?
Message 4 of 11
chiefbraincloud
in reply to: cwhitaker

The availability of effective C# -> VB and VB -> C# translators pretty well makes the example issue go away.
Dave O.                                                                  Sig-Logos32.png
Message 5 of 11
MarkPendergraft
in reply to: cwhitaker

This dead horse has been beaten so many times on this forum it's not even funny. Pick whichever language you are more familiar with. To be the most productive, you should focus your time on learning the AutoCad API's and not a new language.

here is the link for a C# to VB and vice versa translator:
http://www.developerfusion.com/tools/convert/csharp-to-vb/

Good luck,
-Mark P.
Message 6 of 11
Anonymous
in reply to: cwhitaker


Hey Chief,

How well do the translators work?  Do they
produce decent code?
--
Bobby C. Jones

href="http://bobbycjones.spaces.live.com">http://bobbycjones.spaces.live.com


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
The
availability of effective C# -> VB and VB -> C# translators pretty well
makes the example issue go away.
Message 7 of 11
NathTay
in reply to: cwhitaker

They produce code of the same quality as the original. I have had some code that has come up with an error when converting but that hasn't been often and it has been easy to see where the problem was.
Message 8 of 11
Anonymous
in reply to: cwhitaker


I've always wondered if they suffer from the "All
your base are belong to us" syndrome.
--
Bobby C. Jones

href="http://bobbycjones.spaces.live.com">http://bobbycjones.spaces.live.com


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
They
produce code of the same quality as the original. I have had some code that
has come up with an error when converting but that hasn't been often and it
has been easy to see where the problem was.
Message 9 of 11
chiefbraincloud
in reply to: cwhitaker

In a way you might say they don't produce code at all. If the code you are translating is decent code, you'll get decent code out.

As Nathan said, I have seen a few errors where it translated something incorrectly, but they are easy to spot and fix. I have used the one in the link above at developerfusion, and it is functional. I also have an add-in for visual studio called Paste-as-VB, so if I copy some c# code to my clipboard, then go to the edit menu, click paste as vb, and it translates it. I have had good luck with it as well. I do not know if it is available in the reverse (Paste-as-C#).
Dave O.                                                                  Sig-Logos32.png
Message 10 of 11
Anonymous
in reply to: cwhitaker


If one wants to focus on learning the AutoCAD
API's, what is the best way to go about doing that. Is there documentation,
or a map of the object model?


style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
This
dead horse has been beaten so many times on this forum it's not even funny.
Pick whichever language you are more familiar with. To be the most productive,
you should focus your time on learning the AutoCad API's and not a new
language. here is the link for a C# to VB and vice versa translator:
http://www.developerfusion.com/tools/convert/csharp-to-vb/ Good luck, -Mark
P.
Message 11 of 11
MarkPendergraft
in reply to: cwhitaker

Training and labs
http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=1911627

ObjectARX SDK
http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=785550

The training and labs have useful examples, the SDK has the documentation and object model

-Mark

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