Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Making an assy with differnt part colors than the part studio the parts came from
![nick_papageorge_dayjob](https://cad.onshape.com/images/placeholder-user.png)
Hello,
I want to make an assy of my product with somewhat realistic colors (but not to the level of rendering). Purpose would be to take a simple screenshot to communicate to a prototype vendor what part gets painted what color. I'd call out the parts with a pantone number, so the actual color does not need to be exact.
But, I don't want to change the appearance in the part studio. I really like all the parts being different colors. That makes it easy for me during the design process. Which brings us to the question. Can I change colors in only an assembly? I checked inside onshape, and also the help section, and did not find anything. I can make a dummy assy just for this purpose if I can find a way to change the colors.
Any ideas?
Thanks!
0
Best Answer
-
alnis Member, Developers Posts: 452 EDU
Option 1 (more parametric and automated, but a little more complex and less visual):
You can add the colors to the parts using Evan's Color Part custom feature:- Add the custom feature to your toolbar (add a custom feature, not make a copy) https://cad.onshape.com/documents/d997b0ffc30f659113b10c00/
- Refresh your project's document to have it show up
- Add the custom feature once per each color and select parts/faces/features as appropriate (you will need to convert your colors to HSL, RGB, or hex codes)
- Create configuration check box and configure suppression of part color features https://cad.onshape.com/help/Content/configurations.htm
Option 2 (less parametric and more manual, but a little easier and more visual):
You can also use the built-in configuring of part properties to set the appearance.- Make a check box configuration
- Go to the configured properties tab
- Add an extra row (+ sign in dashed box towards bottom left of grid) and uncheck the check box
- Add property dropdown -> appearance
- Select appearances for checked and unchecked config
- Switch to other parts with the top left dropdown in the table and configure their appearances
For both of these approaches, you can make an assembly-level configuration check box that controls whether the parts are "realistic" or varied in appearance, letting you have the best of both worlds with an easy toggle.
Hope this helps!Get in touch: contact@alnis.dev | My personal site: https://alnis.dev
@alnis is my personal account. @alnis_ptc is my official PTC account.1
Answers
You can add the colors to the parts using Evan's Color Part custom feature:
- Add the custom feature to your toolbar (add a custom feature, not make a copy) https://cad.onshape.com/documents/d997b0ffc30f659113b10c00/
- Refresh your project's document to have it show up
- Add the custom feature once per each color and select parts/faces/features as appropriate (you will need to convert your colors to HSL, RGB, or hex codes)
- Create configuration check box and configure suppression of part color features https://cad.onshape.com/help/Content/configurations.htm
You can then have the colored configuration in the assembly (unsuppressed color features) and the config without overridden colors in the part studio.Option 2 (less parametric and more manual, but a little easier and more visual):
You can also use the built-in configuring of part properties to set the appearance.
- Make a check box configuration
- Go to the configured properties tab
- Add an extra row (+ sign in dashed box towards bottom left of grid) and uncheck the check box
- Add property dropdown -> appearance
- Select appearances for checked and unchecked config
- Switch to other parts with the top left dropdown in the table and configure their appearances
This approach can be great for projects where you are unlikely to need many mechanical configurations of the product. Same thing--colored config for assembly, uncolored/default colors for part studio/development.For both of these approaches, you can make an assembly-level configuration check box that controls whether the parts are "realistic" or varied in appearance, letting you have the best of both worlds with an easy toggle.
Hope this helps!
@alnis is my personal account. @alnis_ptc is my official PTC account.
If you have previously manually set a part's color, then unfortunately, I believe you have to reset its properties for that to become script-able again, which means losing the metadata associated with the part (such as the name). I might be wrong, but it's a bit annoying...
Depending on when you added the colors, it might be possible to revert to that point in time in the history tree and go from there, but this can be a bit tricky.
How many parts and documents are you working with?
@alnis is my personal account. @alnis_ptc is my official PTC account.
@alnis is my personal account. @alnis_ptc is my official PTC account.