Author Topic: How long to be somewhat confident with Autocad API  (Read 328 times)

0 Members and 1 Guest are viewing this topic.

quaziconscience

  • Swamp Rat
  • Posts: 752
  • .net stuff
How long to be somewhat confident with Autocad API
« on: March 30, 2019, 12:17:47 AM »
I was told by a manager one of his interns (who mentioned he has no programming experience at all) is excited to learn the "technical stuff" (specifically programming/API of Civil 3D/Autocad) and asked if I'd be willing to help him. I messaged the kid and said "hey, when you want to dive in I can probably save you a lot of headaches".  His reply "I'm sure it's basic enough I can figure it out on my own".  People here were a ton of help, especially our old friend Oleg, but I did that and it sucked dinosaur-sized eggs that went in and came out the same size. He's an engineer so he will have to learn it the same as I did (on his own time).  For me, it took probably 3 years to get to the point I didn't feel like I was screwing things up.  I'm curious what other people's experiences are.  Please share if you're willing. 
« Last Edit: March 30, 2019, 12:23:52 AM by quaziconscience »

kpblc

  • Bull Frog
  • Posts: 297
Re: How long to be somewhat confident with Autocad API
« Reply #1 on: March 30, 2019, 09:34:34 AM »
You can learn every day all your life. And at the end of your way you can say 'i just know that I won't know anything'
Sorry for my English.

gile

  • Water Moccasin
  • Posts: 2201
  • Marseille, France
Re: How long to be somewhat confident with Autocad API
« Reply #2 on: March 30, 2019, 11:31:24 AM »
++
I have been using the AutoCAD .NET API extensively for over 10 years and I often feel like a beginner.
Speaking English as a French Frog

Master_Shake

  • Swamp Rat
  • Posts: 1422
Re: How long to be somewhat confident with Autocad API
« Reply #3 on: April 01, 2019, 08:56:47 AM »
The day you stop learning something new is the day you die

cadplayer

  • Bull Frog
  • Posts: 385
  • Autocad Civil3d, OpenDCL.Runtime, LISP, .NET (C#)
Re: How long to be somewhat confident with Autocad API
« Reply #4 on: April 02, 2019, 08:05:33 AM »
That is true Gile, but you´re great enough...
The goal with Autodesk API is many are using and spreading knowledge here in this forum!

CADbloke

  • Bull Frog
  • Posts: 301
  • Crash Test Dummy
Re: How long to be somewhat confident with Autocad API
« Reply #5 on: May 15, 2019, 09:16:29 PM »
I have been at it since ~2005 and I'm still learning and improving ... a lot. Things that will speed up your learning...
  • Wrap everything in try-catch because not only is it good practice (it keeps AutoCAD alive) but you will get info on what broke.
  • Log a lot more than seems reasonable. Log.Debug() is wonderful for travelling back in time and checking your (mistaken) assumptions.
  • You will google lots, this is normal. Multiple monitors help me a lot here.
  • the more things you build, the more you learn - build real things, exercises don't really teach you much.

https://oz-code.com/ is a great tool for debugging.

https://github.com/serilog/serilog-sinks-file is my go-to logger. Note each plugin needs to have its own logger, there is only one central static logger, the last one created. I also write to an exception reporting service @ https://docs.sentry.io/platforms/dotnet/serilog/ but that's just for shipped apps so I know when customers are having problems, they're often surprised when I email them and tell them what broke, wait a day or 2 for a fix but here's a workaround.

If Gile often feels like a beginner then this feeling is totally normal.