Catia二次开发源码分享:创建轴系
创建轴系
//首先初始化工厂
CATIMf3DAxisSystemFactory * pIMf3DAxisSystemFactoryOnFeatCont = spContainer;
CATMathPoint Origin (150.0,.0,.0);
CATMathVector X (1.0,.0,.0);
CATMathVector Y (0.0,1.0,.0);
CATIMf3DAxisSystem_var NewAxisSystemStd;//创建的轴系
pIMf3DAxisSystemFactoryOnFeatCont->CreateAxisSystem(Origin,X,Y,NewAxisSystemStd);
//对轴系的X、Y 方向进行修改
NewAxisSystemStd->SetAxisDirection(CATAxisSystemXNumber, pVectorX);
NewAxisSystemStd->SetAxisDirection(CATAxisSystemYNumber, pVectorY);
页:
[1]