Posts: 3
Registered: ‎08-07-2012
Message 1 of 2 (541 Views)

Insert Bitmap File as OLE Object as an Embedded with C# on AutoCAD 2010

541 Views, 1 Replies
08-09-2012 02:04 AM



We want to import bitmap file as embedded on Autocad DWG drawing with programmatically [C#]. Is it possible. Bitmap file is a small barkod symbol. And manually is possible INSERTOBJ command. But we don' t have find any source .NET code resolution for this. There seems a OLE2FRAME class but i do not see any resolution.




ADN Support Specialist
Posts: 735
Registered: ‎03-21-2011
Message 2 of 2 (502 Views)

Re: Insert Bitmap File as OLE Object as an Embedded with C# on AutoCAD 2010

08-13-2012 04:41 AM in reply to: kıeslowskı

Hi Mehmet,


It is not possible to create a OLE object throug API, but you can have a template drawing that has an ole object in it and insert it into another drawing. The path of the file can then be modified. There are several posts in this forum that have sample code for this.


Here is one such post. Try the "InsertOle" command from this thread :




Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!