How many times have you thought to yourself "Man, I can't believe nobody has used Revit to model a workable Rubik's Cube, my building depends on it!"
Probably just as many times as you have thought "I wish I had some mustard for this ice cream sandwich"
Regardless, I did it anyways (while eating an ice cream sandwich covered in mustard note* not really)
Anyways, if you are not into Rubik's Cubes, but are interested in learning how to paramaterize the rotation of an object in all three directions than you may still be interested.
I started out by modeling a single cubelet of the Rubik's Cube and giving it the appropriate parameters to control its dimensions. Instead of using a simple square extrusion, I chose to use six sweeps (one for each side) and joined their geometry to create the rounded edges. I then filled in each segment with an extrusion, each with a different color.