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.
Colors in Featurescript
marcus_bernstein
Member, User Group Leader Posts: 35 EDU
Hey Onshape people-
I'm working on a project for competitive robotics and it would be pretty sweet if I could set the color of a part/extrude in featurescript. The standard documentation doesn't seem to have functionality for it and a quick search didn't turn up anything, but any help that you can provide would be much appreciated!
I'm new to the forums so sorry if I missed anything big or didn't catch a previous answer to this question.
I'm working on a project for competitive robotics and it would be pretty sweet if I could set the color of a part/extrude in featurescript. The standard documentation doesn't seem to have functionality for it and a quick search didn't turn up anything, but any help that you can provide would be much appreciated!
I'm new to the forums so sorry if I missed anything big or didn't catch a previous answer to this question.
Any chance Onshape is looking for interns?
Philadelphia User Group Leader
Philadelphia User Group Leader
Tagged:
0
Comments
HWM-Water Ltd
HWM-Water Ltd
I've even looked over if there is something about it in the vanilla forums, which I think is the one used here... but without results
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común
This is possible through the new `setProperty(...)` call:
https://cad.onshape.com/FsDoc/library.html#setProperty-Context-map
HWM-Water Ltd
D'oh! Thanks
There is currently no way to change the color of an edge in Onshape (in FeatureScript or from the UI). If you would like to see this functionality implemented please add an improvement request on the Improvement Requests section of this forum.
Something that may be helpful in the meantime:
https://cad.onshape.com/FsDoc/library.html#debug-Context-
If you call `debug(context, edgeQuery)` in FeatureScript it will turn the edge red. The red will only appear when the feature dialog for your feature is open though. Once the user presses the green check mark, the red will go away and the edge will be black again.