Export symbol block image without backgroud using ObjectARX (Autocad P&ID)

Export symbol block image without backgroud using ObjectARX (Autocad P&ID)

Anonymous
Not applicable
1,774 Views
0 Replies
Message 1 of 1

Export symbol block image without backgroud using ObjectARX (Autocad P&ID)

Anonymous
Not applicable
 

Hello,

 

I want to implement a custom tools palette similar to the standard ones in Autocad P&ID and I need to extract the images for the symbols show in the palette.

 

The post here shows a method to export the image of a block using .NET C#:

http://through-the-interface.typepad.com/through_the_interface/2013/11/generating-larger-preview-ima...

 

However, the .NET approach has some limitations. First of all, the exported images also have a background color (the dark grey one), which is not visible on a standard Autocad palette. Secondly, the image size is hardcoded to 190 x 120 px in the CMLContentSearchPreviews.GetBlockTRThumbnail() method.

 

What I would like to know is if it is possible to export the block images using C++ / ObjectARX, but without the background color, i.e. with transparent backgroud. The size does not really matter as long as it is above 96 x 96 px.

 

I attached an image with the standard Autocad palette, to make it clear what I want to achieve.

 

Thanks,

 

Mihail

 

 

Palette.png

 

 

0 Likes
1,775 Views
0 Replies
Replies (0)