C++ 2010
//遍历工作部件,把所有体移动到20层
BodyCollection *bodys = workPart->Bodies();
for (BodyCollection::iterator ite = bodys->begin();ite !=bodys->end();ite++)
{
Body *body=(*ite);
std::vector<DisplayableObject *> objectArray1(1);
objectArray1[0] = body;
workPart->Layers()->MoveDisplayableObjects(20, objectArray1);
}
怡宁塑胶模具设计