zoukankan      html  css  js  c++  java
  • 全参创建点

    void create_point_full_parameter()

    {  

    Session *theSession = Session::GetSession();   

      Part *workPart(theSession->Parts()->Work());  

       Part *displayPart(theSession->Parts()->Display());       

          Unit *unit1(dynamic_cast<Unit *>(workPart->UnitCollection()->FindObject("MilliMeter")));    

        Expression *expression29;   

      expression29 = workPart->Expressions()->CreateSystemExpressionWithUnits("x", unit1);       

      Scalar *scalar13;    

    scalar13 = workPart->Scalars()->CreateScalarExpression(expression29, Scalar::DimensionalityTypeNone, SmartObject::UpdateOptionWithinModeling);         Expression *expression30;  

       expression30 = workPart->Expressions()->CreateSystemExpressionWithUnits("x", unit1);      

       Scalar *scalar14;    

    scalar14 = workPart->Scalars()->CreateScalarExpression(expression30, Scalar::DimensionalityTypeNone, SmartObject::UpdateOptionWithinModeling);         Expression *expression31;

        expression31 = workPart->Expressions()->CreateSystemExpressionWithUnits("x", unit1);       

      Scalar *scalar15;    

    scalar15 = workPart->Scalars()->CreateScalarExpression(expression31, Scalar::DimensionalityTypeNone, SmartObject::UpdateOptionWithinModeling);         Point *point5;  

       point5 = workPart->Points()->CreatePoint(scalar13, scalar14, scalar15, SmartObject::UpdateOptionWithinModeling);

            point5->SetVisibility(SmartObject::VisibilityOptionVisible);    

        Features::Feature *nullFeatures_Feature(NULL);      

    Features::PointFeatureBuilder *pointFeatureBuilder1;  

       pointFeatureBuilder1 = workPart->BaseFeatures()->CreatePointFeatureBuilder(nullFeatures_Feature);        

    pointFeatureBuilder1->SetPoint(point5);   

          NXObject *nXObject1;    

    nXObject1 = pointFeatureBuilder1->Commit();      

       pointFeatureBuilder1->Destroy();

    }

  • 相关阅读:
    常吃二十种降血脂食物,三高不再缠身
    员工能力要从“人海战术”转向“精兵强将”
    企业家必备的4项核心能力
    优秀管理者在哪些方面超乎常人
    高血压 降压方法
    教育视频
    吉他和弦 学习
    spoj 375 QTREE
    hihocoder #1260 : String Problem I
    codeforces 282E. Sausage Maximization Trie
  • 原文地址:https://www.cnblogs.com/whiteIcrow/p/4938631.html
Copyright © 2011-2022 走看看