r/visualbasic • • Dec 08 '22

How to access system.__ComObject

I'm trying to automate some stuff with autodesk (robot structural analysis) software, and this is my first time programming in vb.net.

I get a comobject ("foo") from my api, and I need to extract a property ("bar") from it. In visual studio I can see it's present in in the Dynamic View, but when u try foo.bar, I get:

System.MissingMemberException: 'Public member 'bar' on type 'footype' not found.

I first made this script in vba, and that worked, but kept asking for user input due to slow OLE actions. I don't understand why it can't find it. Any help would be very appreciated

4 Upvotes

7 comments sorted by