- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to convert a VBA application to .Net.
First things first: AutoDesk's .Net implementation sucks and the lack of cohesive documentation is pathetically shameful. Why should I have to search far and wide to try and get enough information to make this crap work? This situation is unconscionable. And yet here we are, years after release, and they still don't have their crap together on this. Seems like everything about AutoCAD is steadily going downhill. It used to be a professional quality package. Now, it is rife with problems that the company ignores and it has absolutely the WORST documentation of the API of any professional product I have ever seen.
My latest go-around with this travesty:
I need to load a PictureBox with an image from a file at runtime.
PictureBox1.Image = Image.FromFile("Image.bmp")
-> Results in the error: 'FromFile' is not a member of 'Autodesk.AutoCAD.DatabaseServices.Image'.
Huh? This is how Visual Studio tells me to load an image. I guess AutoDesk thought better of it.
PictureBox1.Image.FromFile("Image.bmp")
-> Results in the error: 'Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.'
These examples were both taken directly from Visual Studio's help. Does anybody know of an approach that works?
Solved! Go to Solution.