StartUserInteraction for AutoCAD 2013

This widget could not be displayed.

StartUserInteraction for AutoCAD 2013

Anonymous
Not applicable

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.

0 Likes
Reply
Accepted solutions (1)
1,787 Views
5 Replies
Replies (5)

Anonymous
Not applicable
Accepted solution

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

 

Hope this helps someone else!

0 Likes

andrewpuller3811
Advisor
Advisor

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 11
Intel core i7 11800 @ 2.30 GHz with 32GB Ram
Civil 3d 2023
0 Likes

cfiene
Contributor
Contributor

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

0 Likes

Anonymous
Not applicable

Glad to help!

0 Likes

Anonymous
Not applicable

Excellent post!!!! Thanks a bunch.

0 Likes