Download AutoCAD .NET API Labs!

Download AutoCAD .NET API Labs!

KrishnaK
Archived Account
3,418 Views
12 Replies
Message 1 of 13

Download AutoCAD .NET API Labs!

KrishnaK
Archived Account
Due to overwhelming requests, we have decided to post the AutoCAD .NET API labs that we use to teach the class. This is the best place to start regardless of whether or not you have experience with other programming environments like ObjectARX, ActiveX or LISP. Since the .NET API as it stands today is a wrapper around ObjectARX, an ObjectARX programmer would find it a little easy to transition. That doesn't mean one cannot jump straight into the .NET API. The material takes you through in a "finish a step and see results" way that even beginners will not be lost.
Please note that the material is not 100% error free. Any feedback or suggestions to improve is most welcome.

The material covered in VB.NET and C# is identical.

Krishna Kalvai
Developer Technical Services
Autodesk Message was edited by: KrishnaK
0 Likes
3,419 Views
12 Replies
Replies (12)
Message 2 of 13

Anonymous
Not applicable
Very nice. Thank you.

Tim Riley

wrote in message news:4859028@discussion.autodesk.com...
Due to overwhelming requests, we have decided to post the AutoCAD .NET API
labs that we use to teach the class. This is the best place to start
regardless of whether or not you have experience with other programming
environments like ObjectARX, ActiveX or LISP. Since the .NET API as it
stands today is a wrapper around ObjectARX, an ObjectARX programmer would
find it a little easy to transition. That doesn't mean one cannot jump
straight into the NET API. The material takes you through i
n a "finish a step and see results" way that even beginners will not be
lost.
Please note that the material is not 100% error free. Any feedback or
suggestions to improve is most welcome.

The material covered in VB.NET and C# is identical.

Krishna Kalvai
Developer Technical Services
Autodesk

Message was edited by: KrishnaK
0 Likes
Message 3 of 13

Anonymous
Not applicable
Excellent! Nice gesture!

--
----
Ed
----
wrote in message news:4859028@discussion.autodesk.com...
Due to overwhelming requests, we have decided to post the AutoCAD .NET API
labs that we use to teach the class. This is the best place to start
regardless of whether or not you have experience with other programming
environments like ObjectARX, ActiveX or LISP. Since the .NET API as it
stands today is a wrapper around ObjectARX, an ObjectARX programmer would
find it a little easy to transition. That doesn't mean one cannot jump
straight into the NET API. The material takes you through i
n a "finish a step and see results" way that even beginners will not be
lost.
Please note that the material is not 100% error free. Any feedback or
suggestions to improve is most welcome.

The material covered in VB.NET and C# is identical.

Krishna Kalvai
Developer Technical Services
Autodesk

Message was edited by: KrishnaK
0 Likes
Message 4 of 13

Anonymous
Not applicable
Excellent Autodesk!

J. Daniel Smith,

See this is a place to learn C# and AutoCAD. If this discussion group is to
academic for you -- stay out!. To other readers, J. Daniel Smith tends to
direct people to other sites when she/he doesn't want to give an intelligent
answer to a question.

Edward
wrote in message news:4859028@discussion.autodesk.com...
Due to overwhelming requests, we have decided to post the AutoCAD .NET API
labs that we use to teach the class. This is the best place to start
regardless of whether or not you have experience with other programming
environments like ObjectARX, ActiveX or LISP. Since the .NET API as it
stands today is a wrapper around ObjectARX, an ObjectARX programmer would
find it a little easy to transition. That doesn't mean one cannot jump
straight into the NET API. The material takes you through i
n a "finish a step and see results" way that even beginners will not be
lost.
Please note that the material is not 100% error free. Any feedback or
suggestions to improve is most welcome.

The material covered in VB.NET and C# is identical.

Krishna Kalvai
Developer Technical Services
Autodesk

Message was edited by: KrishnaK
0 Likes
Message 5 of 13

Anonymous
Not applicable
Krishna,

These are fantastic! I'm going through them right now and I wanted to
point out one clarification:

In Step 3, Part 1, I think you need to add an Imports statement for
Autodesk.AutoCAD.DatabaseServices in order to get the Circle, BTR, and
BT objects. I was continuing with the same project from Step 2 (Lab 2)
as suggested, and it didn't have this.

Hope that helps and thanks again!

-Danny Polkinhorn
WATG
Honolulu
0 Likes
Message 6 of 13

Anonymous
Not applicable
And then I notice that farther down in the document it says that.

Sorry,
Danny

Danny P. wrote:
> Krishna,
>
> These are fantastic! I'm going through them right now and I wanted to
> point out one clarification:
>
> In Step 3, Part 1, I think you need to add an Imports statement for
> Autodesk.AutoCAD.DatabaseServices in order to get the Circle, BTR, and
> BT objects. I was continuing with the same project from Step 2 (Lab 2)
> as suggested, and it didn't have this.
>
> Hope that helps and thanks again!
>
> -Danny Polkinhorn
> WATG
> Honolulu
0 Likes
Message 7 of 13

Anonymous
Not applicable
Thank you!
Roland
0 Likes
Message 8 of 13

Anonymous
Not applicable
I'll say thank you too.
Autodesk needs to get serious about respecting its customers and this is as
good a start as any.


<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/


wrote in message news:4859028@discussion.autodesk.com...
Due to overwhelming requests, we have decided to post the AutoCAD .NET API
labs that we use to teach the class. This is the best place to start
regardless of whether or not you have experience with other programming
environments like ObjectARX, ActiveX or LISP. Since the .NET API as it
stands today is a wrapper around ObjectARX, an ObjectARX programmer would
find it a little easy to transition. That doesn't mean one cannot jump
straight into the NET API. The material takes you through i
n a "finish a step and see results" way that even beginners will not be
lost.
Please note that the material is not 100% error free. Any feedback or
suggestions to improve is most welcome.

The material covered in VB.NET and C# is identical.

Krishna Kalvai
Developer Technical Services
Autodesk

Message was edited by: KrishnaK
0 Likes
Message 9 of 13

Anonymous
Not applicable
Does this Lab can run with VB.Net 2003 And AutoCAD 2006 ?
My problem is in lab 5,change MText Object to Block Attribute,Now should be able to insert the EmployeeBlock with INSERT command and specify the employee name for each instance, but i my case it can't.
some one give me a hand?
0 Likes
Message 10 of 13

Anonymous
Not applicable
Very nice! Thank you.
0 Likes
Message 11 of 13

Anonymous
Not applicable

THank you so much after coming to this site i got to know what to do and where to start

0 Likes
Message 12 of 13

_gile
Consultant
Consultant

Hi,

 

The labs linked in the first message are quite old.

You'll find more recent ones here (Learning > AutoCAD 201X .NET Training)



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 13 of 13

BKSpurgeon
Collaborator
Collaborator
hi thank you.

is there a place where i can post questions about the labs?

FEEDBACK:

yes i did find a few errors in there.

it is somewhat helpful. but the explanations i find, are lacking in thoroughness. e.g. when calling methods there is no explanation of: what the method does, and the meaning of certain parameter inputs. e.g. addNewlyCreatedDBObject has a bool parameter. no explanation is given about the meaning of a 'true" argument passed to this method.

furthermore, the documentation is nowhere near the standard of C# MSDN help libraries out there, so it's very difficult for a noob to truly understand what is going on.

e.g. what is a block reference and why are we adding it to our blocktable record? also early in the lab a block table record is created without a block table first been instantiated.



0 Likes