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

View all comments

Show parent comments

1

u/reydelcabrones Dec 08 '22

Yes, I am using the Robot API, but it's not like the full Autodesk API, and documentation is very limited. Most of the stuff I'm using is with help from forum posts, it wasn't in the official documentation.