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!
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)
Dim imagedictionary As DBDictionary = tx.GetObject(imagedictionaryId, OpenMode.ForWrite)
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.