【PLM之家NX二次开发自动装配项目】1.5 自动加载组件
【PLM之家NX二次开发自动装配项目】1.5 自动加载组件通过录制JA,创建自动加载组件的过程!
// ----------------------------------------------
// Menu: Assemblies->Components->Add Component...
// ----------------------------------------------
UF_initialize();
Point3d basePoint1(0.0, 0.0, 0.0);
Matrix3x3 orientation1;
orientation1.Xx = 1.0;
orientation1.Xy = 0.0;
orientation1.Xz = 0.0;
orientation1.Yx = 0.0;
orientation1.Yy = 1.0;
orientation1.Yz = 0.0;
orientation1.Zx = 0.0;
orientation1.Zy = 0.0;
orientation1.Zz = 1.0;
PartLoadStatus *partLoadStatus1;
Assemblies::Component *component1;
component1 = workPart->ComponentAssembly()->AddComponent("C:\\workspace\\NX9AdvanceDev\\Part\\blockHole.prt", "MODEL", "BLOCKHOLE", basePoint1, orientation1, -1, &partLoadStatus1, true);
delete partLoadStatus1;
多谢分享
页:
[1]