C++
//创建圆柱
Features::Feature *nullFeatures_Feature(NULL);
Features::CylinderBuilder *cylinderbuilder1;
cylinderbuilder1 = workPart->Features()->CreateCylinderBuilder(nullFeatures_Feature);
Point3d orgin2(0.0,0.0,0.0);
cylinderbuilder1->SetOrigin(orgin2);
cylinderbuilder1->Diameter()->SetRightHandSide("30");
cylinderbuilder1->Height()->SetRightHandSide("100");
Vector3d vec(0,0,1);
cylinderbuilder1->SetDirection(vec);
Features::Feature *Feature2;
Feature2 = cylinderbuilder1->CommitFeature();
cylinderbuilder1->Destroy();
怡宁塑胶模具设计