.NET

Reply
Distinguished Contributor
jbryant4
Posts: 656
Registered: ‎12-12-2003
Message 31 of 49 (79 Views)

Re: Getting started with Dot Net

05-26-2005 02:00 PM in reply to: Somsekhar
"We are often told there are things you can do with lisp which you can't dowith anything else - but mostly they are things which for 99% of programs don't need doing."................Actually, I think you have it backwards.......Should be....."We are often told there are things you can do in VBA, which you................but mostly they are things which 99% of programs don't need"...................Of course, this, both what you say and what I say, are personal opinion. DCL is cumbersome, but the background LISP that actually does the work (produce drawings, modify drawings, etc) will be much easier and typically far less code......AutoCAD VBA is most useful for linking to other APPS (Word, Excel, etc)....Oh and I forgot, the pretty dialog boxes.......I do have to admit, however, If I was new to programming AutoCAD, I would probably go the VB route, simply because I can use this programming experience in other places (unlike AutoLISP).....
*Frank Oquendo
Message 32 of 49 (79 Views)

Re: Getting started with Dot Net

05-26-2005 02:02 PM in reply to: Somsekhar
jbryant4 wrote:

> typically far less code

Functionality, efficiency, portability and functionality are what's
important, not a line count.
Distinguished Contributor
jbryant4
Posts: 656
Registered: ‎12-12-2003
Message 33 of 49 (79 Views)

Re: Getting started with Dot Net

05-26-2005 02:18 PM in reply to: Somsekhar
Agree....However....Functionality - If it works, it works?.....Efficiency? - 0.00001 second vs 0.000015 second?....Portability - Most AutoLISP programs written for AutoCAD v9 still work today.
This has got me thinking......This may be a really stupid question, but........What does AutoDESK use to program all of the Dialog Boxes in AutoCAD......I believe AutoCAD 2000i is DCL....Not sure about 2002, 2004, 2006.........IF VBA is such a better system to program Dialog Boxes, why did (does?) AutoDESK still use DCL?....Maybe they have changed in newer versions 2004, 2005, 2006? Anybody know what is used now (2006)?
*Frank Oquendo
Message 34 of 49 (79 Views)

Re: Getting started with Dot Net

05-26-2005 02:19 PM in reply to: Somsekhar
jbryant4 wrote:

> This has got me thinking......This may be a really stupid question,
> but........What does AutoDESK use to program all of the Dialog Boxes
> in AutoCAD

C++.
*J. Daniel Smith
Message 35 of 49 (79 Views)

Re: Getting started with Dot Net

05-26-2005 02:56 PM in reply to: Somsekhar
VBA has little to do with "linking to other apps".

VBA provides the infastructure for a common extensibility mechanism; but
each application has its own unique object model. If you're comfortable
with VBA in Excel, you'll be comfortable with VBA in AutoCAD; but that's
about as far as it goes.

Dan

wrote in message news:4858104@discussion.autodesk.com...
"We are often told there are things you can do with lisp which you can't
dowith anything else - but mostly they are things which for 99% of programs
don't need doing."................Actually, I think you have it
backwards.......Should be....."We are often told there are things you can do
in VBA, which you................but mostly they are things which 99% of
programs don't need"...................Of course, this, both what you say
and what I say, are personal opinion. DCL is cumbersome, but the background
LISP that actually does the work (produce drawings, modify drawings, etc)
will be much easier and typically far less code......AutoCAD VBA is most
useful for linking to other APPS (Word, Excel, etc)....Oh and I forgot, the
pretty dialog boxes.......I do have to admit, however, If I was new to
programming AutoCAD, I would probably go the VB route, simply because I can
use this programming experience in other places (unlike AutoLISP).....
Contributor
KrishnaK
Posts: 17
Registered: ‎05-24-2005
Message 36 of 49 (79 Views)

Re: Getting started with Dot Net

05-26-2005 04:11 PM in reply to: Somsekhar
And .NET Winforms. Check out the Layer dialog and CUI User Interface.
*Ken Hutson
Message 37 of 49 (79 Views)

Re: Getting started with Dot Net

05-26-2005 07:18 PM in reply to: Somsekhar
Frank,
Good catch!
Kenneth

"Frank Oquendo" wrote in message
news:4858015@discussion.autodesk.com...
Kenneth Hutson wrote:

> I haven't had much experience with .NET Framework. I find it much
> like VBA. More like VB.

.NET is nothing like VB.

> It's an exhastive collection of namespaces,
> classes, properties and methods. Your biggest difficulty will be
> locating the correct function to use.

That's a nice problem to have as opposed to having to find or write code
for common tasks.
Distinguished Contributor
Mikko
Posts: 212
Registered: ‎10-03-2003
Message 38 of 49 (79 Views)

Re: Getting started with Dot Net

05-27-2005 04:44 AM in reply to: Somsekhar
I started with autoLISP, used it for several years and gradually outgrew it. Totally bypassed vLISP, VBA and ObjectARX and jumped into VB3. I used that in combination with autoLISP. Back a few years the .NET Framework came into play and I've immersed myself into that. I still use VB, but is has progressed into what is called VB.NET. VB6 I believe is now unsupported or should be. I do not use autoLISP only in the most rare occasions. I find myself rewriting old code to VB.NET managed or unmanaged code using the COM interop or the new .NET API that is now available and growing. Examples can be found with some digging, thou you might want to get a big shovel at the moment. I can read C# and do use it but I prefer VB. Also, most of my coding is outside of the AutoCAD environment. AutoCAD and Inventor drawings are just different types of databases I need access so I can move the data to different offices and software around the globe. It boils down to what you are programming to what language you will learn first. You will learn several over the years if you keep at it. Get yourself that new Microsoft Visual Studio 2005 beta 2 and by the time you learn and write something, it should be released. It does have a go live license already should you complete your project before Microsoft completes theirs.

My 2 cents
Member
Somsekhar
Posts: 3
Registered: ‎05-24-2005
Message 39 of 49 (79 Views)

Re: Getting started with Dot Net

05-27-2005 05:55 AM in reply to: Somsekhar
O' Boy .....Am I making myself confused. Did I hear someone say ...Too much of anything is bad ...
I still can not figure out which way to start with.
What does ObjectARX facilitate ? And what if I directly work with Dot Net APIs by looking at the samples provided with ObjectARX download ?
Please ....would somebody take to pain to make the way simple for novice guys like me ? I want to start one by one.
Thank you all for all that info. But...please I am getting no where. I like the way Krishna and Mikako put their replies.
*Tim Riley
Message 40 of 49 (79 Views)

Re: Getting started with Dot Net

05-27-2005 06:05 AM in reply to: Somsekhar
How exactly is LISP easier than VBA? I find the syntax cumbersome and
somewhat vomit inducing, like perl.


wrote in message news:4858104@discussion.autodesk.com...
"Of course, this, both what you say and what I say, are personal opinion.
DCL is cumbersome, but the background LISP that actually does the work
(produce drawings, modify drawings, etc) will be much easier and typically
far less code......"
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!