Browse By Tags

  • [MSCE U13 c++] 元素没法转成mesh元素

    都是用同样的loft方法构建出来的,但是方体可以转成mesh元素,而梯形体不行?
  • 【MSCE UPDATE 17】安装最新的MS 以及SDK以后,我之前编译的程序加载的时候都提示不信任

    排查发现目前MS update17版本的BentleyGeom5.dll中的ExtractBoundaryString函数跟update 17 的SDK 中BentleyGeom.lib文件导出的ExtractBoundaryString函数不一致。导致我们如果引用这个文件的话,会出现自己编译的dll不能加载到MS中。如下图所示 ...
  • [MSCE U13 c++] 为什么地形和mesh体相减总是只有mesh体内部的部分?

    用代码创建一个网格体,让体去切地面网格,结果是地面网格消失,只留下网格体内部的部分 手动也是同样的结果。
  • 【MSCE U13 c++】 三个点和半径确定制作一个Arc?

    如何通过弧的始末两个端点和一个中心点以及半径制作一个这样的圆弧?
  • 【MSCE U13 c++】 横截面loft成体崩溃?

    需要把曲线和直线连成一个正常的元素做成用于loft的横截面组。 然而加入模型后发现却是一个cell?导致没法其他同样变成cell的截面没法loft成功。
  • [MSCE U13 c++] 为什么CurveVector Assemble 之后是一个cell?

    需要把曲线和直线连成一个正常的元素做成用于loft的横截面组。 然而加入模型后发现却是一个cell?其他同样变成cell的截面貌似导致SolidUtil::Create::BodyFromLoft崩溃。 CurveVectorPtr p = CurveVector::Create(CurveVector::BoundaryType::BOUNDARY_TYPE_Outer); p->Add(curve1); p->Add(line1); p->Add(curve2); p…
  • [MSCE C++] C++项目编译疑问

    我现在正在尝试学习 学习Microstation交互式工具开发 - 中国BDN社区-威客 - 中国BDN社区 - Bentley Communities 中的内容,但是进展不顺利。我想确认的是,C++项目是不是需要使用SDK安装后提供的一个控制台(黑窗口)才能编译为.dll文件使用? 因为我使用Windows下的控制台执行bmake命令是有问题的。
  • [MSCE U13 c++] 如何让线段变成无限长的线条?

    如题
  • [MSCE U13 c++] 使用 mdlElmdscr_copyParallel 结果为 SUCCESS 但是descriptor返回空指针?

    ee1 是有效的直线元素,偏移点也是合理的,但是返回的却是空指针。 StatusInt status = mdlElmdscr_copyParallel ( &ShiftedLine1, ee1.GetElementDescrP(), &p1, 0, /* => distance to offset */ NULL /* => normal of plane in which to offset */ ); wprintf(L">1> status of making parallel…
  • 【MSCE u13 c++】 ItemTypeLibrary::FindByName 找不到itemtype?

    ECValue ReadItemTypeInDgnFile() { DgnFileP dgnfilePtr = Bentley::MstnPlatform::ISessionMgr::GetActiveDgnFile(); ItemTypeLibraryPtr libPtr = ItemTypeLibrary::FindByName(L"Road Lines", *dgnfilePtr); wprintf(L">Road> Find RoadLine\n"); if (libPtr…
  • 【MSCE u13 c++】 instancePtr->SetValue() 返回 PropertyNotFound?

    存在这个itemtype 但是在给元素加上属性时,总是找不到这个。 StatusInt AttachItemTypeToElement(ElementHandleCR eh, double slopeDL = 1, double slopeDR = 1) { wprintf(L"attach model to Dgn File\n"); ItemTypeLibraryPtr libPtr = ItemTypeLibrary::FindByName(L"RoadLine", *ISessionMgr…
  • MicroStation CE SDK编译C++程序的兼容性?

    请问不同版本之间的MS CE SDK编译程序的兼容性如何,使用update 15编译的C++ MDL程序不能在MS CE Update17加载,请问是兼容性的问题吗?能否说明下update 15和update 17 SDK编译的C++程序各自兼容哪些版本的MS?
  • [msce u13 c++] CurveVectorPtr如何修改点?

    如题
  • [MSCE U13 c++] 怎么做曲线之间的布尔运算?

    一个平面上的闭合曲线之间进行布尔差和交
  • 【MSCE U13 c++】 GetCustomItem 进行NULL判断总是导致程序崩溃?

    wprintf(L"created item host of lib %s and name %s\n", lib, name); DgnECInstancePtr instancePtr = itemHost.GetCustomItem(lib, name); wprintf(L"get custom item\n"); if (instancePtr != NULL) // crashes here { wprintf(L"got instancePtr from element…
  • [MSCE U13 c++] 网格函数返回的元素无法添加到文件里?

    if (ehf.IsValid()) { wprintf(L"created mesh element\n"); MSElementDescrP ccp = mdlPop_elementDescrFromElementDescrBoolOp(eeh.GetElementDescrCP(), ehf.GetElementDescrCP(), NULL, 2, false, false, false, false, false); EditElementHandle eef(ccp, false…
  • [MSCE U13 c++] CurveVectorPtr Add 导致程序崩溃?

    wprintf(L"adding profiles\n"); CurveVectorPtr p_profiles; p_profiles->Add(curve0); p_profiles->Add(curve1); p_profiles->Add(curve2); ISolidKernelEntityPtr p_solid; wprintf(L"profile curve number %d\n", p_profiles->size()); SolidUtil::Create…
  • 【MSCE U13 c++】读取不了元素的EC值?

    如题
  • 【MSCE U13 c++】CurveVectorPtr Clone返回的Ptr会指向原本元素吗?

    如题
  • 【MSCE c++ U13】通过横截面组构成实体是什么函数?

    如题
  • [msce c++ u13 ] ItemType的 SetValue 不起作用?

    如题
  • [MSCE C++ U13] std::string 转 WString 失败?

    如题 string building_info = "建筑"; ECValue( WString(building_info.c_str()).GetWCharCP() ) ECValue 的字符串为空。
  • 【MSCE C++ U13】 GetHandler.ApplyTransform不起作用?

    在 _OnDynamic 里面使用 eeh的handler 的 apply transform 会导致物体无法显示。 DraftingElementSchema::ToElement(eeh, *rect, nullptr, ACTIVEMODEL->Is3d(), *ACTIVEMODEL); // rotate the obj to orientation RotMatrix r_Rot = RotMatrix::From1Vector(DVec3d::FromStartEnd…
  • 【ORDCE C++】标注点数有数量限值?

    EditElementHandle dimEeh; IDimensionEdit* iDimEdit = dynamic_cast<IDimensionEdit*>(&dimEeh.GetHandler()); if (iDimEdit==nullptr) { return false; } int index = 0; //printf("总点数:%d", num); for (bvector <DPoint3d>::const_iterator iter = dimPoint.begin();…
  • 【MSCE U13 c++】使用 CopyContext 怎么获取拷贝生成的元素?

    如题