I have this customer that has thousands of DWG files. They don’t want to redraw all of these. They’d rather take the profile view in the DWG file and convert to SOLIDWORKS part file. Luckily this can be done very easily.
Open a DWG file in SOLIDWORKS and you will get this dialog box.
Select Import to a new part and 2D sketch, then click next.
This dialog box gives you the options to change units, add constraints, and import dimensions. You also have the option to import layers. For this we want to remove layers except the profile view. The selected layers option allows you to pick which layers you want to import. Be careful, one layer could control views, border and title block. This depends on how the layers were set up in AutoCAD. In my case, layer 0 controls everything so no worries removing entities. Click next.
This is were we can remove entities that are not needed. Do a box selection on entities you want to remove. You will not see a selection box, however, they will turn red. Click Remove Entities.
To double check and make sure no entities are way out in space, click zoom to fit. You also have options to merge points, overlapping entities and more. You could also define sketch origin if you want. Play around with these options to see what results you get. Notice the tick box to Run Repair Sketch. You can run it here or in sketch mode once the SOLIDWORKS part file is created. Check out that blog for more info: Check Sketch for Feature and Repair Sketch.
Click Finish. You will get this message. Click yes so all blocks are exploded.
You have just created the SOLIDWORKS part file and are in edit sketch mode.
The first thing I did was move the sketch entities to the origin. I added a center-line to help me with this. I like to do this so my primary planes are down the center of the part.
Now let’s get the sketch fully defined. You can do this a couple ways:
- Manually create dimension by using Smart Dimension.
- Use Fully Define Sketch. This will apply dimensions to every sketch entity. Here’s a blog for more info: How to Quickly Fully Define Your SOLIDWORKS Sketch.
- Make all sketch entities fixed.
I chose to fix all sketch entities. Box select all entities, click Show Selection then fix and hit the green check mark.
I chose to use Fixed so I can add the dimensions I want in the drawing.
There you have it! Now you can complete the part file by creating a Boss Extrude.
Stay healthy and safe, practice good hygiene and have a blessed day.
Roger G. Ruffin
Senior Application Engineer
Computer Aided Technology, Inc.