Author Topic: Good place to start learning  (Read 12973 times)

0 Members and 1 Guest are viewing this topic.

T.Willey

  • Needs a day job
  • Posts: 5251
Good place to start learning
« on: July 19, 2006, 05:22:13 PM »
Here is an artical which looks like a good place to start learning C# coding for Autocad.  Goes over some basic drawing objects.

Quote
Hi all C# lovers,
Recently, I did a project for Govt. PSU which involved using AutoCAD with C# and I found it very interesting. I am very eager to share it with you.

This article shows how to use AutoCAD objects in a .NET application using C#.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: Good place to start learning
« Reply #1 on: July 19, 2006, 06:48:26 PM »
Does this mean you've decided to skip VBA and jump right into C#? :-)

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Good place to start learning
« Reply #2 on: July 19, 2006, 06:53:48 PM »
Does this mean you've decided to skip VBA and jump right into C#? :-)
Will see.  At work I don't have the required .net framework, and I don't think if the IT people will freak (they are cool here).  I will ask them and see if they care.  If so, then maybe. :wink:

Was figuring if I have to learn a new language, let it be powerful.

But this one makes it look kind of easy to start.  I will digest it all tonight.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

LE

  • Guest
Re: Good place to start learning
« Reply #3 on: July 19, 2006, 07:10:55 PM »
Tim;

Very good, that you will be moving to the dark side.... !!!!!!

(I know about those samples..... and I can tell, we have Masters on that HERE @theSwamp...  :-))

MickD

  • King Gator
  • Posts: 3619
  • (x-in)->[process]->(y-out) ... simples!
Re: Good place to start learning
« Reply #4 on: July 19, 2006, 07:16:26 PM »
That is a good place to start in C# with AutoCAD especially if you're familiar with vba as all the examples are using COM. You will be familiar with the AutoCAD Object model and will only notice the different syntax required for C# which will help ease you into the language and be productive at the same time.
Using the managed arx wrappers is the way to go though but has a 'little' steeper learning curve.
Cheers,
Mick.
"Short cuts make long delays,' argued Pippin.”
J.R.R. Tolkien

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Good place to start learning
« Reply #5 on: July 19, 2006, 07:34:09 PM »
Tim;

Very good, that you will be moving to the dark side.... !!!!!!

(I know about those samples..... and I can tell, we have Masters on that HERE @theSwamp...  :-))
I have been broken down, and I can't resist any longer.  Thanks Luis.  You know I will be asking for help, if I can install the needed stuff on my computer, which I think won't be a problem.

That is a good place to start in C# with AutoCAD especially if you're familiar with vba as all the examples are using COM. You will be familiar with the AutoCAD Object model and will only notice the different syntax required for C# which will help ease you into the language and be productive at the same time.
Using the managed arx wrappers is the way to go though but has a 'little' steeper learning curve.
Cheers,
Mick.
I use the ActiveX controls through AutoLisp, so I have a little understand of the object model.  Do you/anyone have some basic examples of the arx wrappers?  If that is the way to go, how much harder will it be to learn?  I will search for that tonight also then.  Thanks.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Good place to start learning
« Reply #6 on: July 19, 2006, 08:45:47 PM »
Quote
Do you/anyone have some basic examples of the arx wrappers?

http://www.theswamp.org/index.php?topic=8245.msg141017#msg141017


Some Samples provided by Jim Awe at AutoDesk <public issue> .  ... for 2006 ; he is working on 2007
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Good place to start learning
« Reply #7 on: July 19, 2006, 09:27:21 PM »
Quote
Do you/anyone have some basic examples of the arx wrappers?

http://www.theswamp.org/index.php?topic=8245.msg141017#msg141017


Some Samples provided by Jim Awe at AutoDesk <public issue> .  ... for 2006 ; he is working on 2007

Thanks Kerry.  I don't know what I can do with these at home, but I will see.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Bobby C. Jones

  • Swamp Rat
  • Posts: 516
  • Cry havoc and let loose the dogs of war.
Re: Good place to start learning
« Reply #8 on: July 20, 2006, 08:06:25 AM »
At work I don't have the required .net framework,
acad 2005 and 2006 install the 1.1 version of the framework, 2007 installs version 2.0.  You'll just need the .NET SDK and an IDE.  And technically the IDE is optional, but only if you're a masochist...
Bobby C. Jones

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Good place to start learning
« Reply #9 on: July 20, 2006, 11:12:17 AM »
At work I don't have the required .net framework,
acad 2005 and 2006 install the 1.1 version of the framework, 2007 installs version 2.0.  You'll just need the .NET SDK and an IDE.  And technically the IDE is optional, but only if you're a masochist...
I thought I read somewhere that 2006 needed .net 2.0.  If you say I don't need 2.0, then all I need is a good FREE ide I guess.  I will see what I can find.  The article I read mentioned ShartDevelop as and ide to use, and I think Tim R. uses it also.

Where do you get the .Net SDK from?  I don't think I have run across that yet.

Thanks for the info Bobby.
« Last Edit: July 20, 2006, 11:13:23 AM by T.Willey »
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

TR

  • Guest
Re: Good place to start learning
« Reply #10 on: July 20, 2006, 11:16:31 AM »
The article I read mentioned ShartDevelop as and ide to use, and I think Tim R. uses it also.

Anyone else think of "Along Came Polly" when they read that?

TR

  • Guest
Re: Good place to start learning
« Reply #11 on: July 20, 2006, 11:31:33 AM »
I use SharpDevelop2 to run .NET 2.0 apps on AutoCAD 2005 and all is well. For SharpDevelop2 all you need is the .NET 2.0 runtime and you will be able to build and run 2.0 apps. If you want the .NET 2.0 documentation you will need the SDK available @ http://msdn.microsoft.com/netframework/downloads/updates/default.aspx

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Good place to start learning
« Reply #12 on: July 20, 2006, 11:36:55 AM »
I use SharpDevelop2 to run .NET 2.0 apps on AutoCAD 2005 and all is well. For SharpDevelop2 all you need is the .NET 2.0 runtime and you will be able to build and run 2.0 apps. If you want the .NET 2.0 documentation you will need the SDK available @ http://msdn.microsoft.com/netframework/downloads/updates/default.aspx
But if I don't want to install .NET 2.0, can I run SharpDevelop1.1 with the .NET framwork already installed on my computer, and use the SDK from here? (version 1.1)

Sorry for the nubish questions.  I'm running 2006 right now.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

TR

  • Guest
Re: Good place to start learning
« Reply #13 on: July 20, 2006, 11:39:24 AM »
Yes, you can do that. I recommend SD2 and .NET 2.0 though.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Good place to start learning
« Reply #14 on: July 20, 2006, 11:49:07 AM »
Yes, you can do that. I recommend SD2 and .NET 2.0 though.
Thanks for the info Tim.  I will have to talk with my IT people then.  If they say it is ok, I will grab all the 2.0 stuff.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.