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.
change composite part color with FS?
EvanReese
Member, Mentor Posts: 2,135 ✭✭✭✭✭
I've tried setProperty() with the composite and it says only bodies and faces are allowed. I've tried qContainedInCompositeParts() to get the bodies inside of it, and it still doesn't do much. How do I change the color of a closed composite part?
Evan Reese
0
Best Answer
-
_anton Member, Onshape Employees Posts: 410Because of the way it's implemented, the composite body contains a vertex. I'd get just the composite body like so:
colorBodies = qCreatedBy(id + "compositePart1", EntityType.BODY);
0
Answers
I was able to get it working like this, but where did the vertex come from? The only inputs to the composite part were 4 solid bodies.