This is a code snippet that was refactored for simplicity to ask a fundamental question:
Visual Lisp
Civil 3D 2014
( vla-getinterfaceobject ( vlax-get-acad-object ) "AeccXUiLand.AeccApplication.10.0" )
No matter what I do, I get this error:
error: Automation Error. Problem in loading application
Please refrain from asking "... why are you using Lisp? .Net is better!..."
Everyone's situation is different. FYI: I've been developing a civil add-on for about 11 years. I know C#.NET. I use it every day and most of my newer development is done in that language (Visual Lisp is actually still VERY useful and MUCH faster to develop [Many Kudos to Autodesk developers for excellent continuity between releases! You've made my job SUPER easy! Thank you!]. However, now that I know C#, I'll never again design another dialog with Lisp/DCL. OMG! What a nightmare!). HOWEVER, I still have functions that depend on this COM functionality.
The condition statement that this snippet belongs to has been around since 2004. Every year I've had to do nothing more than change a character or two to make all my civil functions access the new object model. Suddenly, for 2014 it no longer works.
Does anyone know why?
(Yes, COM is loaded via ( vl-load-com ))
Thanks in advance.
Solved! Go to Solution.
Solved by Jeff_M. Go to Solution.
Jeff,
I knew you'd be the first to reply with a solution. I don't unerstand why Autodesk has not hired you yet? Maybe you should apply? They picked up Kean, so you should at least be a candidate.
You probably wouldn't believe me if I told you that I "suspected" something inconsistent like that happened, so I tried "...10.1", then "...10.2", then thought, "... that's a dead-end. Just post a question on the DGs..." (LMAO!) Unbelievable!
Even MORE unbelievable; how many websites are showing "10.0" for 2014 and it's totally BOGUS information! They're posting entire blocks of code using that library reference and it hasn't even been tested! What a shame, even from some Autodesk-sponsored pages! I'm really surprised.
Thank you very much, Jeff.
You ARE 'The Man' today!
Regards,
-Nick Merchant
Hi Nick -
If you have missed it earlier, this change was highlighted in our ADN IM Dev Blog post dated 03/27/2013 " What's new in AUTOCAD CIVIL 3D 2014 API?"
If you are using the COM API, you need to update the object version to 10.3 (from 10.0 used in AutoCAD Civil 3D 2013).
http://adndevblog.typepad.com/infrastructure/2013/03/whats-new-in-autocad-civil-3d-2014-api.html
My point of highlighting this change in our DevBlog is not trying to take away credit from Jeff 🙂
Jeff is very helpful and active in our Civil 3D API forum !
Cheers,