.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

1 REPLY 1
Reply
Message 1 of 2
kıeslowskı
2332 Views, 1 Reply

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

Hi,

 

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.

 

Thanks

Mehmet    

1 REPLY 1
Message 2 of 2
Balaji_Ram
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 :

http://forums.autodesk.com/t5/NET/How-to-embed-PDF-OLE-object/m-p/3330361/highlight/true#M27235

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost