guojie123 发表于 2014-2-12 13:32:11

nx8.0中有“开发人员”这个菜单么?如何调出?

如题,我安装了nx8.0,在学习二次开发的过程中,发现自己的nx操作界面有“操作记录”及“电影”,但不知道从哪里调出开发人员这个菜单
急,求帮忙

admin 发表于 2014-2-12 14:35:01

你说的那个 菜单是NX9.0 才有的吧

只是对功能做了个归类

你要啥功能,都有的, 开发相关的不外乎就是 录制日志 和 对话框UI设计   

guojie123 发表于 2014-2-12 15:51:52

admin 发表于 2014-2-12 14:35
你说的那个 菜单是NX9.0 才有的吧

只是对功能做了个归类


谢谢老师的答疑了,我的是8.0nx,没有“开发人员”发现录制出来的程序编码多了很多其他的,如下面这些表达式等的编码记录,这些是做什么的啊?
另外,老师,为什么我用的c++编程的时候没有函数提示啊?(比如uc1601,在输入uc的时候我看你的操作视频就有一大堆提示啊,而我的却没有


    Unit *unit1;
    unit1 = cylinderBuilder1->Height()->Units();
   
    Expression *expression1;
    expression1 = workPart->Expressions()->CreateSystemExpressionWithUnits("0", unit1);
   
    Expression *expression2;
    expression2 = workPart->Expressions()->CreateSystemExpressionWithUnits("0", unit1);
   
    Expression *expression3;
    expression3 = workPart->Expressions()->CreateSystemExpressionWithUnits("0", unit1);
   
    cylinderBuilder1->BooleanOption()->SetType(GeometricUtilities::BooleanOperation::BooleanTypeCreate);
   
    std::vector<Body *> targetBodies1(1);
    Body *nullBody(NULL);
    targetBodies1 = nullBody;
    cylinderBuilder1->BooleanOption()->SetTargetBodies(targetBodies1);
   
    cylinderBuilder1->Diameter()->SetRightHandSide("50");
   
    cylinderBuilder1->Height()->SetRightHandSide("100");
   
    cylinderBuilder1->BooleanOption()->SetType(GeometricUtilities::BooleanOperation::BooleanTypeCreate);
   
    std::vector<Body *> targetBodies2(1);
    targetBodies2 = nullBody;
    cylinderBuilder1->BooleanOption()->SetTargetBodies(targetBodies2);
   
    theSession->SetUndoMarkName(markId1, NXString("Cylinder \345\257\271\350\257\235\346\241\206", NXString::UTF8));
   
    Point3d origin1(0.0, 0.0, 0.0);
    Vector3d vector1(0.0, 0.0, 1.0);
    Direction *direction1;
    direction1 = workPart->Directions()->CreateDirection(origin1, vector1, SmartObject::UpdateOptionWithinModeling);
   
    Axis *axis1;
    axis1 = cylinderBuilder1->Axis();
   
    axis1->SetDirection(direction1);
   
    axis1->SetDirection(direction1);
   
    Session::UndoMarkId markId2;
    markId2 = theSession->SetUndoMark(Session::MarkVisibilityInvisible, "Start");
   
    Expression *expression4;
    expression4 = workPart->Expressions()->CreateSystemExpressionWithUnits("0", unit1);
   
    Expression *expression5;
    expression5 = workPart->Expressions()->CreateSystemExpressionWithUnits("0", unit1);
   
    Expression *expression6;
    ............
    Expression *expression18;
    expression18 = workPart->Expressions()->CreateSystemExpressionWithUnits("p25_angle2=0.00000000000", unit2);
   
    Expression *expression19;
    expression19 = workPart->Expressions()->CreateSystemExpressionWithUnits("p26_distance=0", unit1);
   
    Expression *expression20;
    expression20 = workPart->Expressions()->CreateSystemExpressionWithUnits("p27_arclen=0", unit1);
   
    Unit *nullUnit(NULL);
    Expression *expression21;
    expression21 = workPart->Expressions()->CreateSystemExpressionWithUnits("p28_percent=0", nullUnit);
   
    expression7->SetRightHandSide("0");
   
    expression8->SetRightHandSide("0");
   
    expression9->SetRightHandSide("0");
   
    expression10->SetRightHandSide("0");
   
    expression11->SetRightHandSide("10");
   
    expression12->SetRightHandSide("0");
   
    expression19->SetRightHandSide("50");
   
    expression20->SetRightHandSide("60");
   
    theSession->SetUndoMarkName(markId2, NXString("Point \345\257\271\350\257\235\346\241\206", NXString::UTF8));
   
    expression7->SetRightHandSide("0.00000000000");
   
    expression8->SetRightHandSide("0.00000000000");
   
    expression9->SetRightHandSide("0.00000000000");
   
    expression10->SetRightHandSide("0.00000000000");
.......
      // 表达式仍然在使用中。
      workPart->Expressions()->Delete(expression15);
    }
    catch (const NXException &ex)
    {
      ex.AssertErrorCode(1050029);
    }
   
    try
    {
      // 表达式仍然在使用中。
      workPart->Expressions()->Delete(expression16);
    }
    catch (const NXException &ex)
    {
      ex.AssertErrorCode(1050029);
    }
   
    try
    {
      // 表达式仍然在使用中。
      workPart->Expressions()->Delete(expression17);
    }
    catch (const NXException &ex)
    {
      ex.AssertErrorCode(1050029);
    }
   
    try
    {
      // 表达式仍然在使用中。
      workPart->Expressions()->Delete(expression18);
    }
    catch (const NXException &ex)
    {
      ex.AssertErrorCode(1050029);
    }
   
.....
      // 表达式仍然在使用中。
      workPart->Expressions()->Delete(expression20);
    }
    catch (const NXException &ex)
    {
      ex.AssertErrorCode(1050029);
    }
   
    try
    {
      // 表达式仍然在使用中。
      workPart->Expressions()->Delete(expression21);
    }
    catch (const NXException &ex)
    {
      ex.AssertErrorCode(1050029);
    }
   
    workPart->Expressions()->Delete(expression4);
   
    workPart->Expressions()->Delete(expression5);
   
    workPart->Expressions()->Delete(expression6);
   
    theSession->DeleteUndoMark(markId2, NULL);
   
    axis1->SetPoint(point2);
   
    Session::UndoMarkId markId4;
    markId4 = theSession->SetUndoMark(Session::MarkVisibilityInvisible, "Cylinder");
   
    NXObject *nXObject1;
    nXObject1 = cylinderBuilder1->Commit();
   
    theSession->DeleteUndoMark(markId4, NULL);
   
    theSession->SetUndoMarkName(markId1, "Cylinder");
   
    Expression *expression22(cylinderBuilder1->Height());
    Expression *expression23(cylinderBuilder1->Diameter());
    cylinderBuilder1->Destroy();
   
    workPart->Expressions()->Delete(expression3);
   
    workPart->Expressions()->Delete(expression1);
   
    workPart->Expressions()->Delete(expression2);
   
    // ----------------------------------------------
    //   Menu: Tools->Journal->Stop Recording
    // ----------------------------------------------
}

admin 发表于 2014-2-12 17:31:43

guojie123 发表于 2014-2-12 07:51
谢谢老师的答疑了,我的是8.0nx,没有“开发人员”发现录制出来的程序编码多了很多其他的,如下面这些表 ...

这是级别的操作啊

提示是因为在vs软件里面的,头文件下包含,就可以有提示了

你多看看论坛视频,有问题发帖好了
页: [1]
查看完整版本: nx8.0中有“开发人员”这个菜单么?如何调出?