StartUserInteraction for AutoCAD 2013

StartUserInteraction for AutoCAD 2013

Anonymous
Not applicable
2,582 Views
5 Replies
Message 1 of 6

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
Accepted solutions (1)
2,583 Views
5 Replies
Replies (5)
Message 2 of 6

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
Message 3 of 6

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
Message 4 of 6

cfiene
Contributor
Contributor

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

0 Likes
Message 5 of 6

Anonymous
Not applicable

Glad to help!

0 Likes
Message 6 of 6

Anonymous
Not applicable

Excellent post!!!! Thanks a bunch.

0 Likes