[MSCE C++]如何获取参数化实体下的子元素?

我尝试使用SmartFeature::SmartFeatureElement::ExtractTree(tree, eh);获取Cylinder #1,但并未成功。

我希望遍历Parametric Solid的所有子元素,请问我该如何处理?

感谢

Parents Reply
  • 百度dependency walker,通过depends.exe打开ms目录下的smartfeature.dll.可查看到该dll的导出函数。

    int Bentley::DgnPlatform::SmartFeature::SmartFeatureElement::ExtractDependents(class Bentley::Bstdcxx::bvector<struct Bentley::DgnPlatform::ElementHandle,class Bentley::BentleyAllocator<struct Bentley::DgnPlatform::ElementHandle> > &,struct Bentley::DgnPlatform::ElementHandle const &)
    熟悉mdl c++ api的话,可以把对应声明修改添加到头文件中就可以使用了

    ---------------------------------------------------------------

    中国市政工程西北设计研究院有限公司武汉分院


Children
No Data