Jump to content

Recommended Posts

Posted

Ok, so what exactly is the difference between AutoLisp and Visual Lisp? is it the same thing?

 

And what about VB.NET?

 

I'm not sure where to focus my learning efforts. I'm currently lerning DCL and AutoLisp. Not sure if i'm wasting my time.

Posted

Lisp is a programming language that Autodesk chose to include with Autocad early on because it was good at 3D (One of it's orgional uses was for ballistics) and it was free.

 

AutoLisp is Autocad's own version of Lisp, written to work with Autocad.

 

Visual lisp really refers to the Visual Lisp editor. Type 'VLIDE' at the command line to use the editor. The Visual Lisp editor helpfully colour codes your Lisp routines (amongst other things) which is a great help when it comes to debugging.

 

Visual Lisp also refers to the ObjectARX (C++) extensions to the Autolisp API. Adding 'vl-load-com' at the begining of your AutoLisp program allows you to use object orientated programming techniques which can really add a lot of ompf to your programmes.

 

AutoLisp is uncompiled, so you can type it in a the command line and it evaluates immediatly. It's great for writing short macro's, but it can become unweildy for writing complicated programes and creating dialogs can be a real struggle.

 

VB, VB.net, C# and C++ are all complied programming languages. They load and run a lot faster, the code is a lot easier to manage and creating dialogs is a doddle. But they can take longer to debug.

 

If your interested in working more efficiently, or you are a CAD manager, spending time learning Auto/Visual Lisp will not be wasted, but if you are interested in some more serious programing I would recommend going straight for VB.net or C#.net

 

This is a good place to start:

http://www.afralisp.net/

 

as is AU online:

http://au.autodesk.com/

Posted
. . . . Not sure if i'm wasting my time.

 

I don’t think leaning any programming language could be considered a waste of time.

 

If it is more a matter of the most efficient use of limited time, however, then other factors may come into play. AutoLisp/VisualLisp would likely get a programmer up and productive much more quickly.

 

Conversely, if a move away from AutoCAD (to Inventor or Revit, perhaps) was expected near term, then .NET would be the more versatile choice.

Posted

thanks for the info guys

Posted

What is the difference in relation to autocad between C++ & C#

Posted
What is the difference in relation to autocad between C++ & C#

 

C# / .NET were created with C++. Programming gods use C++ o:)

Posted
C# / .NET were created with C++. Programming gods use C++ o:)

 

. . . . then .NET would be the more versatile choice.

 

 

Yes, I’d say C++ is the “most” versatile choice. As it relates to AutoCAD, C++ offers unlimited access to everything Autodesk is willing to expose (though, I imagine .NET not too far behind in that regard). Fastest code execution, and true “Custom Objects” are a couple of the benefits I’ve heard attributed to C++.

 

I also understand it to be the most complex to learn and compose code. Not an issue for a professional, necessarily, but may be a poor return on investment for the more casual programmer.

 

Daniel, familiar as you are with several Languages/APIs, what is your estimation of relative time to proficiency for the languages mentioned in this thread?

Posted

Better you learn dcl and Vlisp it will help lot when you start other languages.

Posted
Yes, I’d say C++ is the “most” versatile

Daniel, familiar as you are with several Languages/APIs, what is your estimation of relative time to proficiency for the languages mentioned in this thread?

 

Ha! I'm hardly the one to ask, I'm still working on my 'learn C++ in 21 days' after two years :shock:

Actually when I first set out to learn programming, I found the learning curve of C++ a little too steep. Working through Visual lisp -> C# then C++ made things more manageable. This would be the progression I would recommended to padawan learners, although most would probably feel that C# does all they need. I made the jump to C++ because I wanted to target other CAD platforms such as Bricscad/Intellicad that don't yet have a .NET APIs. For the most part making the move to C++ from C# was relatively painless..

@guitarguy, drop the DCL and go with the VLisp - OpenDCL combo

Posted
:D Edited dude to drunken responce
Posted
For the most part making the move to C++ from C# was relatively painless..

 

That's encouraging.

  • 3 weeks later...
Posted

Having now fully competed my basic c++ training, and now looking to VisualC++/.Net, and accessing Autocad. It seems that there is little easly attainable information on the subjects for C++ and mostly C# and VB support.

I relised you guys recommend C# then go to C++, But should the efforts for my C++ now be halted and focus on C# instead?

 

If not what would you recommend for references and learning material.

 

Currently got my hands on :

C++ Beginner Guide

C++ Complete Reference - 4th edition

C++ For Dummies

Teach_Yourself_Visual_C++_6_in_21_days

 

Have grabed a few 'C++" tutorials from autocad but they all seem to be C# & Vb and have C++ mentions

 

Regards

Flower

Posted

Interesting, I have found that there is more information on ARX than on .NET, at least this was the case when I made the switch. There are a couple of books, and the ARX SDK has lots of examples. FYI, once you get a handle on the API, you can easily jump between C++ C++/CLI and C#.

If you need help getting started with ARX, you can find me over at TheSwamp.org in the ARX area :)

Posted

Keep your efforts on C++ - at the end it is much easier (well after spending about 7 years :) )

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...