Author Topic: C# book for AutoCAD  (Read 14704 times)

0 Members and 1 Guest are viewing this topic.

jonesy

  • SuperMod
  • Seagull
  • Posts: 15535
Re: C# book for AutoCAD
« Reply #15 on: February 09, 2007, 02:01:59 AM »
I like the first one best, dont know why.

Does it/will it have the words AutoCAD and C# anywhere in its title
Thanks for explaining the word "many" to me, it means a lot.

jonesy

  • SuperMod
  • Seagull
  • Posts: 15535
Re: C# book for AutoCAD
« Reply #16 on: February 09, 2007, 03:26:03 AM »
Yes Kerry, thats much better :-)

So when can I buy it
Thanks for explaining the word "many" to me, it means a lot.

adalea03

  • Guest
Re: C# book for AutoCAD
« Reply #17 on: February 09, 2007, 07:35:20 AM »
Since it is really me that is the beast needing to be tamed,
I would , with great expectation, save until I had enough
to purchase a book like that.

Chuck Gabriel

  • Guest
Re: C# book for AutoCAD
« Reply #18 on: February 09, 2007, 07:46:14 AM »
Have you got a publisher?  In this day and age, do you actually need one?

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: C# book for AutoCAD
« Reply #19 on: February 23, 2007, 10:34:53 PM »
Chuck,
no and no.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

jmaeding

  • Bull Frog
  • Posts: 304
  • I'm just here for the Shelties.
Re: C# book for AutoCAD
« Reply #20 on: February 26, 2007, 03:21:18 PM »
I believe Jerry Winters is writing a book as we speak.  He was an AU speaker and was a good communicator.  Can't wait to see something.
James Maeding

Bryco

  • Water Moccasin
  • Posts: 1851
Re: C# book for AutoCAD
« Reply #21 on: May 03, 2007, 01:10:30 AM »
No hurry Kerry but I do expect to be done with the Labs by next January.

It's Alive!

  • BricsCAD
  • Needs a day job
  • Posts: 7033
  • AKA Daniel
Re: C# book for AutoCAD
« Reply #22 on: May 03, 2007, 11:30:54 AM »
I believe Jerry Winters is writing a book as we speak.  He was an AU speaker and was a good communicator.  Can't wait to see something.

eeewww its VB

http://www.amazon.com/VB-NET-Programming-AutoCAD-Customization-Level/dp/1892131102/ref=sr_1_1/002-9594505-4378416?ie=UTF8&s=books&qid=1178034347&sr=8-1

ISBN-10: 1892131102
ISBN-13: 978-1892131102

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: C# book for AutoCAD
« Reply #23 on: May 03, 2007, 06:20:18 PM »
exactly.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

Bryco

  • Water Moccasin
  • Posts: 1851
Re: C# book for AutoCAD
« Reply #24 on: May 03, 2007, 11:05:48 PM »
If I hadn't already spent my $5, I would give it a go. Vba to C# isn't that easy for me and since  you cant just run something to find out if it works, I have the feeling that it would be a lot less frustrating to learn vb.net then learn C#.
Although many slam vba, it's the kind of program I want. Memory management is one of the good things touted by Net, thank goodness for that, I don't really want or need to know how computors work (Well not at the cost.) and didn't have to with Vba. I know I'll get to like net in the long run, but it is a shame to me that vba is getting the boot. Of couse, to be fair, if lisp suddenly didn't work I wouldn't be that bummed. 

LE

  • Guest
Re: C# book for AutoCAD
« Reply #25 on: May 04, 2007, 12:04:17 AM »
If you end up having like a dictionary with short samples of the signatures or usage of each function or the most possible, that can be used as a reference, for example if the target is for autolisp programmers, take a look of what Chad W. did in one of his C++ courses, he did a summary reference showing the name of the function in autolisp and then how to do it in C++ including the code sample, it can be also for C#.

For example, some very simple functions:

AutoLisp: RTOS function - usage: (rtos number [mode [precision]])

C# (can be something like the code below, not necessary being the right one, just to give to the lisp user, some similarity, from those short samples he can then understand, I think)
Code: [Select]
public static String RtoS(double num, DistanceUnitFormat units, int precision)
{
    return Converter.DistanceToString(num, units, precision);
}

AutoLisp: (distance pt1 pt2)

C#
Code: [Select]
public static double Distance(Point2d pt1, Point2d pt2)
{
    return Math.Sqrt(Math.Pow(pt2.X - pt1.X, 2) + Math.Pow(pt2.Y - pt1.Y, 2));
}

Autolisp: (angle pt1 pt2)

C#
Code: [Select]
public static double Angle(Point2d pt1, Point2d pt2)
{
    return Math.Atan2((pt2.Y - pt1.Y), (pt2.X - pt1.X));
}

I do not know..., if you read some Spanish, I helped Reinaldo Togores when he was working in his book about Visual Lisp:

http://personales.unican.es/togoresr/

The good about it, is that covers all the aspects of Visual Lisp, providing extensive samples...

Have fun!
« Last Edit: May 04, 2007, 12:05:32 AM by LE »

Bryco

  • Water Moccasin
  • Posts: 1851
Re: C# book for AutoCAD
« Reply #26 on: May 04, 2007, 02:42:43 AM »
Le, that's a good point and I presume a book  written by a lisper would be way better for lispers than someone coming from vba/vb. I'm just starting to do the same things with C#, make functions that mimic the functions I use in vba, and the distance example you give took me 20 mins to find Math.Pow as I was looking for something with squared in it.
   I think the lure for a book by Kerry for me is that, if Kerry gives an example , it will work, whereas the labs start off all wrong and so you are never sure if the next thing will work.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: C# book for AutoCAD
« Reply #27 on: May 04, 2007, 09:06:25 AM »
Quote
...  it will work

Thanks Bryco !! I appreciate the sentiment.


.. but you haven't been reading my mail   :lol:
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: C# book for AutoCAD
« Reply #28 on: May 04, 2007, 09:09:05 AM »
Luis, I do that sort of thing to help myself and prove concept too.

The tough practical decision sometimed is whether to make a Library class of static functions or take the guts of it and write it in-line ..
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

--> Donate to theSwamp<--

LE

  • Guest
Re: C# book for AutoCAD
« Reply #29 on: May 04, 2007, 10:26:09 AM »
Le, that's a good point and I presume a book  written by a lisper would be way better for lispers than someone coming from vba/vb. I'm just starting to do the same things with C#, make functions that mimic the functions I use in vba, and the distance example you give took me 20 mins to find Math.Pow as I was looking for something with squared in it.
   I think the lure for a book by Kerry for me is that, if Kerry gives an example , it will work, whereas the labs start off all wrong and so you are never sure if the next thing will work.

I come from spending so many years in the lisp arena, and the last three+ in c++ had help me doing the transaction to c#, I was more saying that a book that could have a "conversion table" would be a plus, it is pretty obvious that not everything can be mimic, I am in that process right now, and most of the times I have to redo everything, if it is in c++ or c#.

included is a image with a vba-to-c++ conversion table (portion)


Wish you Kerry, a lot of success on your book!
« Last Edit: May 04, 2007, 11:05:53 AM by LE »