I'm trying to update some VB.Net code for AutoCAD 2013, and am slowly slogging my way through the API changes. Here's one I haven't been able to figure out yet:
The following line worked in pre-2013, but not anymore...
Dim eui AsEditorUserInteraction = Application.DocumentManager.MdiActiveDocument.Editor.StartUse
I get this error in the editor...
Error 12 Value of type 'IECAD.fSymbols' cannot be converted to 'System.IntPtr'.
IECAD.fSymbols is a form in my application, and the error references the Me in my statement. What is the current correct way to activate a form while allowing for user interaction (like picking a point)?
Solved! Go to Solution.
Solved! by dhorger. See the answer in context.
Never mind... I figured it out. Changing Me to Me.Handle did the trick.
Hope this helps someone else!
Thanks for posting your solution.
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!