In a part file, how do I fix invalid geometry?
You attach the *.sldprt file here so that someone can tell you what is causing the error and how to fix it.
I don't know how to do that.
Use the advanced editor.
Here it is.
If you intend extruding your sketch, then you would have to remove the diagonal lines between the two splines. I suggest you start by using the repair sketch tool. Start - Sketch tools - Repair sketch. Also you could check the sketch for feature by going to Tools - Sketch tools - check sketch for feature. I used these tools to clean up the sketch and extrude it.
So I can't extrude an object if there are multiple objects?
There is a problem with the sketch, but you can extrude it using contour select.
change the lines Feroz is mentioning to construction lines. Then it will be easier to find what is really wrong with the sketch.
Tools > sketch tools > repair sketch
Then you will find these two spots, if you zoom in on them and delete the red crap from it, everything will be fine.
Then you can change the lines back from construction if you want and use the contour select tool Tony is mentioning for it.
So I deleted the lines, and I don't see any of the red stuff. But, after that how do I make it all one object?
Please post your file for me to check.
Be more specific ? Do you want to extrude it ?
The file I first posted is the same, except I deleted all of the little lines on the inside. I want to color it and extrude it.
If you want to extrude it, use the feature "extruded boss/base"
If you want to color the sketch you can rmc on the sketch and select sketch color.
If you want to color the part, e.g. just rmc on the part in the top of the "feature manager design tree" , select the appearance icon and click the icon that is now orange on my image. There you can assign the color you want to it.
The part is attached, Hope this helps.
It finally let me extrude it but it didn't add the color to the inside.
Click on the little globe looking thing on the Heads Up Toolbar and click on the color icon. That should let you edit the color of the part. To add it to the inside you need to fill in the part
Do a boss extrude instead of the thin extrude to fill it in and then add the color
Ok, something is clearly wrong with my solidworks, because I've tried that before and nothing happened. Both with the extruding, and the coloring.
I'll reinstall SW and let you know if I have any more problems.
SOLIDWORKS RX > Diagnostics
to see if there is anything wrong there
Retrieving data ...