Create a block from an image

Hello everyone,

 

I'm coming to you to find out if anyone had a solution to create a block from a JPG image (or bmp...).

 

Thanks in advance, and see you soon! 

 

 

Hello 

For the moment I make a surface corresponding to the size of the desired object and I paste my image on this surface to then extrude. 

I do this mainly to reproduce electronic boards in order to have their volume in my integrations

 

Otherwise there was a post that talked about inkscape to vectorize in dwg. What to see 

 Hi @ BATCH123

 

There is a tutorial on the FOFO

 

http://www.lynkoa.com/tutos/solidworks/vectorisation-d-une-image-2d-pour-creer-une-piece-3d

 

@+ ;-D

No, I absolutely need my original image...

Hello

 

What does the image represent?

If it's easily resumable with splines and lines, it shouldn't pose any particular pb so I think it's quite complicated.

 

There was a post about that, I'll look it up.

What is your original image

You can post this image to see the complexity

it's to make a layer or to be able to extrude

if it's to extrude you won't miss the splines

 

It's a signature, difficult to reproduce...

 

That's why I absolutely need a block, or a macro...

I don't understand Picasso's signature or other is reproducible

You have to take your time and adjust the splines on the contour and of course constrain as you go

@+

Good evening

As I am curious by nature I tried the technique I write in the tturbo for my part I advise the processing of the image before inserting it in SLDWRKS

 

1-So I took a 72dpi image with 3 colors and the Line was catastrophic. You might as well redraw it by hand. 

2-The same image processed under professional graphics software sampled at 300dpi and grayscale

    Well the result was superb. No retouching. 

 

I think that the more complex the image is, the more important the resolution must be

 

Here's the solution with a macro:

 

Dim swApp As Object
Sub main()
Dim swApp As SldWorks.SldWorks
Dim Part As ModelDoc2
Dim SkPicture As SketchPicture

Set swApp = Application.SldWorks
Set Part = swApp.ActiveDoc
Set SkPicture = Part.SketchManager.InsertSketchPicture("C:\monimage.jpg")
SkPicture.SetOrigin 0.5, 0.1

End Sub

Hi @ BATCH123

 

you give a macro solution

 

Is it possible for you to make us a TUTORIAL that allows us to

 to see first-hand  and implement this solution

 

A little video of how you do it will be great

 

Thank you @+

Hello,

 

Personally, I would have vectorized your image. Especially if it's a simple signature. 

 

@+

Hi after boss tests on a projected material elevation

The boss was created by reworking the removed faces and shifting it

 

See attachment

 

 

http://img46.imageshack.us/img46/9019/0nr0.png

 

@+

 


capture_marquage_poignet_bossage_enlevement.png

Hello

 

I just tested, it is possible to save as a library (lib feat part) a sketch containing an image.

This can be a solution.

 

@+

 

Elsalam a la man Itba3 Elhouda

You can see this tutorial

http://www.lynkoa.com/tutos/solidworks/vectorisation-d-une-image-2d-pour-creer-une-piece-3d