.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

StartUserInteraction for AutoCAD 2013

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
dhorger
1517 Views, 5 Replies

StartUserInteraction for AutoCAD 2013

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.StartUserInteraction(Me)

 

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)?

 

Thanks.

5 REPLIES 5
Message 2 of 6
dhorger
in reply to: dhorger

Never mind... I figured it out. Changing Me to Me.Handle did the trick.

 

Hope this helps someone else!

Message 3 of 6
andrewpuller3811
in reply to: dhorger

Thanks for posting your solution.



If a post provides a fix for your issue, click on "Accept as Solution" to help other users find solutions to problems they might have that are similar to yours.

Andrew Puller
Maitland, NSW, Australia
Windows 10 Enterprise 64bit
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2021
Message 4 of 6
cfiene
in reply to: dhorger

Thanks for the solution! It was driving me caazy!!!

Message 5 of 6
dhorger
in reply to: cfiene

Glad to help!

Message 6 of 6
mjsmith
in reply to: dhorger

Excellent post!!!! Thanks a bunch.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost