My First Plug-in Lesson 1 Code Error

My First Plug-in Lesson 1 Code Error

amarinXG8V6
Advocate Advocate
254 Views
2 Replies
Message 1 of 3

My First Plug-in Lesson 1 Code Error

amarinXG8V6
Advocate
Advocate

Folks,

 

Looking for some help with the below screen shot. When I try to go through Lesson 1 step by step, I'm getting this error when I'm trying to build the code. I can remove the DocumentTypeEnum signature but I have a feeling that's not what I'm supposed to do. The lesson doesn't mention modifying this portion of the code. I was on step 6 of Lesson 1. Excited to learn how to work within the VB.NET framework using Visual Studio 2022 but feeling a bit deflated after running into issues so early on. Help a wanna-be-nerd out! 

 

Lesson 1: The Basic Plug-in – Autodesk Inventor 

 

amarinXG8V6_0-1682631106579.png

amarinXG8V6_1-1682631178083.png

 

 

0 Likes
Accepted solutions (1)
255 Views
2 Replies
Replies (2)
Message 2 of 3

A.Acheson
Mentor
Mentor
Accepted solution

Hi @amarinXG8V6 

If I was betting that argument shouldn't be in the button click. The image in your link for button 1 doesn't have it and passing in a type argument doesn't seem right to me. I could be wrong as well as I haven't gone that far with events other than working with known working samples. 

AAcheson_0-1682646717492.png

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 3

amarinXG8V6
Advocate
Advocate

@A.Acheson ,

 

I saw that also after posting to the forum. I did end up removing the type argument for Button_1 and everything worked fine. Thank you for responding and confirming! 

 

Cheers,

Alex

0 Likes