Error message when trying to add Reference to VB.Net form.

Anonymous

Error message when trying to add Reference to VB.Net form.

Anonymous
Not applicable

I was following a tutorial to further learn VB.Net and referencing Inventor.

https://forums.autodesk.com/autodesk/attachments/autodesk/78/593918/2/IM10601-L-How%20to%20Write%20P...

 

I got to where it instructs to add the Reference for Inventor, but I got an error message instead.

I thought I would try to create a new form and add the reference before I do anything else, but I still got the errors.

 

The first of 2 errors was, "Error HRESULT E_FAIL has been returned from a call to a COM component."

Clicked "OK",

Second error is "The operation could not be completed. No such interface supported".

 

Is this a bug or just operator error? Thanks

 

 

0 Likes
Reply
Accepted solutions (1)
1,429 Views
11 Replies
Replies (11)

dgreatice
Collaborator
Collaborator

Hi,

 

please explain you workflow, with video is better.

Please use the ACCEPT AS SOLUTION or KUDOS button if my Idea helped you to solve the problem.

Autodesk Inventor Professional Certified 2014
0 Likes

Anonymous
Not applicable

I'm afraid I don't know how to create the workflow with video, but I'll do my best to explain. (is there a program I can use for this?)

 

Using Visual Studio Community 2017 v. 4.7 I click on New Project. This opens up the dialog box to create/name new project.

Using the Visual Basic category, I select "Windows Forms App (.NET Framework)" (Framework 4.6.1)

Click OK

Expand Solution Explorer, HiLite "WindowsApp4" (in this case), RC/Add/Reference.

As soon as I select Reference, I get the first error, and when I click OK, I get the second.

0 Likes

bradeneuropeArthur
Mentor
Mentor

could you please make a screenshot of your references in Vb.net?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes

Anonymous
Not applicable

VB Ref.png

0 Likes

bradeneuropeArthur
Mentor
Mentor

what reference are you using for the Autdosk Invenot interop?

What is the path you try to use?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes

Anonymous
Not applicable

I have not been able to attach the reference yet, because the errors come up before I can select one. The reference file I'm wanting is:

Autodesk.Inventor.Interop.dll

 

and the location is:

C:\Program Files\Autodesk\Inventor 2016\Bin\Public Assemblies, and if for some reason that was not the correct location I would just do a search for the file.

0 Likes

bradeneuropeArthur
Mentor
Mentor
Accepted solution

are you using VS 2017?

Is this supported for 2016 ?

I am using VS 2015

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes

Anonymous
Not applicable

Yes, I am using VS 2017.

I also had 2012 Express, so I tried that and the references came right up, no problem. 

So it seems it's a current incompatibility between VS 2017 & Inv 2016.?.? Is there a resource available to verify that through documentation; Microsoft or Autodesk?

Thank you so much for pointing me in the right direction.

0 Likes

bradeneuropeArthur
Mentor
Mentor

Not supported I think:

 

https://forums.autodesk.com/t5/inventor-customization/visual-studio-vs-inventor-2016/td-p/6056787

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes

Anonymous
Not applicable

So you are currently using VS 2015 with no issues, correct?

If that is true, I would probably do well to download.

0 Likes

bradeneuropeArthur
Mentor
Mentor

I don't have any problems with VS 2015 at all.

So this could be solved if you would also install this version.

 

Please let me know about the status...

 

Regards,

Autodesk Software: Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018
Programming Skills: Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Dimension Component! | Partlist Export! | Derive I-properties! | Vault Prompts Via API! | Vault Handbook/Manual!
Drawing Toggle Sheets! | Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes

Type a product name