Colors of imported file - part versus body

Use this space to ask how to do whatever you're trying to use SolidWorks to do.
aaronh
Posts: 8
Joined: Tue Jun 01, 2021 8:46 am
Answers: 0
x 1
x 4

Colors of imported file - part versus body

Unread post by aaronh »

All,

I have step files that were generated from an outside source. I needed to import them and create a drawing to export dwg views. I was having difficulty getting the color wireframe to export to the dwg properly. The problem that I have encountered is that the colors of the parts are at the body level not part level. The part level color is whatever the default is for the part template that I choose (in this case grey, or gray if you prefer). The issue here is that the part level color overrides the body level color so the wireframe ends up being all grey. Is there a way to change the behavior of the import such that the color will be established at the part level instead? Alternatively, is there a batch process to copy the body color to the part level for all of the components? Manually addressing a handful of parts isn't terrible, but it's not practical when dealing with 10's, hundreds, or more of parts.

Thanks,
Aaron

p.s. I got a good look at the new "forum" at the old stomping ground, quickly realized it amounted to swymming upstream, and swam over here instead.
User avatar
Arthur NY
Posts: 198
Joined: Sat Mar 27, 2021 12:32 pm
Answers: 1
x 40
x 175

Re: Colors of imported file - part versus body

Unread post by Arthur NY »

In general the material/texture/color hierarchy goes in this order when it comes to a Part file...which is non negotiable....

Part
Body
Feature
Face

In this order whatever is applied to the Part will be overridden by the Body which is overridden by the Feature and finally whatever is applied to the Face will win.

Now if this is an Assembly there is an additional layer here which is that you can apply a material/texture/color that is only applied to the Part file IN the assembly or you can have it propagate and push down to the Part file. So where you are generating the drawing from will make a difference in terms of how the creation of the colors of the lines will appear.

My suggestion would be to strip all colors out of the file and then just apply it to the Part file and call it a day.
aaronh
Posts: 8
Joined: Tue Jun 01, 2021 8:46 am
Answers: 0
x 1
x 4

Re: Colors of imported file - part versus body

Unread post by aaronh »

Yeah, see that's the issue. When importing the step the colors that come across are established at the body level. The color that's in the default template overrides the body color that came from the step. I want to make 2D dwg files that maintain the imported colors. The components all have various colors that I want to keep as-is. I would need to either find a way to batch copy the body color to the part color for every component or better yet, have the import map the color to the part level rather than the body. Unfortunately, I think I am out of luck in that regard.
User avatar
SPerman
Posts: 2056
Joined: Wed Mar 17, 2021 4:24 pm
Answers: 14
x 2227
x 1878
Contact:

Re: Colors of imported file - part versus body

Unread post by SPerman »

Can't you use the layers in drafting to determine the wireframe color?
-
I may not have gone where I intended to go, but I think I have ended up where I needed to be. -Douglas Adams
Post Reply