.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Attach image from VB.NET to AutoCad
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello!
I have just started to programming VB.NET with AutoCad but can´t find any information about how to attach a image from a userform commandbuton into AutoCad. I have programming in VBA before but can´t find any solution for inserting pictures in VB.NET. Is it possible to use the "imageattach" with attributes? or -image command? Or should I use Rasterimage?
I want a image (*.jpg*) file to appear in AutoCad when I press the Commandbutton in my Form.
I hope you understand what I mean. And excuse,if my english is bad!
Thanks
Re: Attach image from VB.NET to AutoCad
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
search for RasterImage in http://through-the-interface.typepad.com
Re: Attach image from VB.NET to AutoCad
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi! Thanks for the link. Have looked there and can only find codes for C#. What library do I need to import for doing rasterimage?
Re: Attach image from VB.NET to AutoCad
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
http://www.developerfusion.com/tools/convert/cshar

“We don’t have a snowball’s chance in a blast furnace of surviving this attack unless every one of our units gets into the fight right now!”
Re: Attach image from VB.NET to AutoCad
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Reference library is acdbmgd. Rasterimagedef is a member of Autodesk.AutoCAD.DatabaseServices.
My code samples are limited. You should search here for more.
ObjectID of dictionary is
Dim imagedictionaryId As ObjectId = RasterImageDef.GetImageDictionary(db)
Dictionary is
Dim imagedictionary As DBDictionary = tx.GetObject(imagedictionaryId, OpenMode.ForWrite)
