Cancel
Showing results for 
Search instead for 
Did you mean: 

Thumbnail of part,assembly,subassembly

Experimenter
Experimenter

Hi,

I make app for generating BOM from assembly.In my  preview ,i want to show icon from part,assembly and subassembly.
How can i get it with C#?

Thanks.

5 REPLIES 5

Re: Thumbnail of part,assembly,subassembly

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi,

 

take a look at Jason's GitHub project SolidEdge.Community.Reader

The document class in there provides a GetThumbnail() method and may be used as follows:

 

...
using (Bitmap bitmap = document.GetThumbnail())
{
   Console.WriteLine(String.Format("Extracting thumbnail"));
   bitmap.Save(path + ".bmp");
}
...

 

Kind regards,
Wolfgang Kunert - www.wksyspro.de

Re: Thumbnail of part,assembly,subassembly

Experimenter
Experimenter

Thanks,

i've tried to do that,and i get thumbnail of the model in my assembly.

 

Actually,i have similar app  ,like standart BOM report in SolidEdge.
I want to have a small picture(icon) near Filename.
If it is assembly,it has this picture 

2.png

If it is a part,this 

1.png

 


3.png

Re: Thumbnail of part,assembly,subassembly

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Hi,

 

there exist free tools which can extract icons from exe files (copyrights!?).

I.e. https://www.vlsoftware.net/icons-from-file/

 

Kind regards,
Wolfgang Kunert - www.wksyspro.de

Re: Thumbnail of part,assembly,subassembly

Gears Honored Contributor Gears Honored Contributor
Gears Honored Contributor

Hi @Volodymyr 

 

Have a look at my tutorial on extracting the Solid Edge thumbnails of any size:

http://www.surfandcode.in/2014/12/making-of-solid-edge-screen-capture.html

 

~Tushar

www.CADVertex.com

Highlighted

Re: Thumbnail of part,assembly,subassembly

Experimenter
Experimenter

Thanks for the link.


I'll get all icons,and put them into solution.

Regards