马上注册登录,享用更多网站功能!
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
CATI2DWFFactory_var spWF2DFactOnSketch(spSketch);
// Creates the elements of the sketch
double pt1[2] = {10., 5.},
pt2[2] = {-10., 5.},
pt3[2] = {-10., -5.},
pt4[2] = {10., -5.};
// Edits the sketch and draws the lines and the endpoints.
spSketch->OpenEdition();
CATISpecObject_var spLine1 = spWF2DFactOnSketch->CreateLine(pt1,pt2);
CATISpecObject_var spLine2 = spWF2DFactOnSketch->CreateLine(pt2,pt3);
CATISpecObject_var spLine3 = spWF2DFactOnSketch->CreateLine(pt3,pt4);
CATISpecObject_var spLine4 = spWF2DFactOnSketch->CreateLine(pt4,pt1);
CATISpecObject_var spCircle = spWF2DFactOnSketch->CreateCircle(pt4,50,0,3.14);
如上 我打算创建一个矩形框 并以Pt4为圆心创建圆弧 。但是,由于没有约束,这些线条与圆在草图中都是活动的,并没有固定下来。
求帮助 谢谢! |