Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
  • Welcome
  • Products
  • Support
  • About
  • More
  • Cancel
di wu

di wu

Likes
  • Profile
  • Activity
  • Communities
  • Friends
  • Likes
  • Achievements
  • Bookmarks
  • Blog Posts
  • Questions
  • More
  • Cancel
  • RE: [C# MSCE]model 转图片

    Yongan.Fu
    Yongan.Fu
    我写了以下代码,是可以完成你的要求的。其中的坐标点转换是难点。 IndexedViewportP pViewport = IViewManager::GetActiveViewSet().GetSelectedViewport(); int viewIndex = pViewport->GetViewNumber(); RotMatrix rMatrix; mdlView_getStandard(&rMatrix, StandardView::Top); mdlView_rotateToRMatrix…
    • over 2 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
    • Andy
  • Re: How to prevent View1 to be closed ?

    Yongan.Fu
    Yongan.Fu
    I can use the below two lines to disable the "Close" button of View1. It can really prevent user to close View 1. HWND hWnd = mdlNativeWindow_getWindowHandle (mdlWindow_viewWindowGet(0)); EnableMenuItem(GetSystemMenu(hWnd, FALSE), SC_CLOSE, MF_BYCOMMAND…
    • over 9 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • RE: [MSCE C++]点云动态裁剪过程,如何隐藏点云盒子边界?

    邢 万里
    邢 万里
    下面是关于裁剪盒编辑的代码,其中包括点云裁剪功能 //编辑裁剪盒 struct TestModifyFaceTool : LocateSubEntityTool { protected: /*---------------------------------------------------------------------------------**//** * @bsimethod Bentley Systems +---------------+---------…
    • over 2 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • RE: 关于LocateSubEntityTool的交互疑问

    Xiaoqi Zhang
    Xiaoqi Zhang
    这个您可以看看: //! A data button completes the tool if at least one sub-entity is selected. Allows ctrl+data to identify additional sub-entities. DGNVIEW_EXPORT virtual bool _WantAdditionalSubEntities ( DgnButtonEventCR ev ); //! Whether to allow selection…
    • over 2 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • RE: [MSCE C++]请问各位老师:如何实现solidModify功能,

    邢 万里
    邢 万里
    经过三天以来不断的尝试,很遗憾还是没有成功,同时我发现:(1)重载_OnDynamicFrame、_OnDataButton、_OnResetButton函数时如果函数中包含实体修改内容,就会出现奇怪的结果(如之前的附图),(2)GetPlanarFaceData(&point, &normal1, *subEntity))获取的点坐标point并不在选取的平面上 ,下面是在例子上面修改的代码~~ struct TestModifyFaceTool : LocateSubEntityTool…
    • over 2 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • 如何查看元素ID,类型等

    Anna An
    Anna An
    在OpenRoads软件里,路线,廊道等都呈现出了各自的专业属性,那么如何查看它们的元素ID,类型呢,这里我们需要用到Key-In命令Analyze Element: 以廊道对象为例,执行命令后,选择元素,弹出Element Information对话框,您可以看到元素类型,元素ID等很多属性。
    • over 2 years ago
    • Bentley 中国优先社区
    • 技术资料库
  • RE: mdlElement_getEffectiveSymbology读取颜色问题

    HongQiang Guo
    HongQiang Guo
    您上边的代码是遍历Model下的元素,Model下的元素分简单元素和复杂元素,复杂元素由简单元素或者复杂元素组合起来加一个复杂元素头构成的,如果是复杂元素的话,上边的代码只会获取到这个复杂头元素,处理这个复杂头元素的时候,用我说的方法去迭代一下复杂元素的所有子元素。您原来的方法如果指的是用IElementGraphicsProcessor导出几何数据的话,这个接口后台已经对复杂元素处理好了,不会漏掉子元素的几何数据。
    • over 2 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • RE: CE C++关于布尔运算

    谢 百义
    谢 百义
    我用 mdlPop_elementDescrFromElementDescrDifference,两个Mesh无论封闭面还是网格面,得到的结果的ElementID都是0,也就是说无法有Difference的结果,到底怎么用能请教吗?谢谢。我的代码为: void CutMesh(WCharCP unparsed) { ElementId idMesh1, idMesh2; if (swscanf_s(unparsed, L"%lld %lld", &idMesh1, &idMesh2)…
    • over 4 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • RE: [MS CE MDL C++]从其他建模软件导入的模型,有没有对mesh网格进行简化的相关接口

    YongJun Zhang 张永军
    YongJun Zhang 张永军
    符老师,我翻了下论坛,找到了一个size_t LocalDecimation ( double abstol, double rangeFractionTol )接口,经过测试可以对mesh对象进行简化哈
    • over 4 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • RE: MicroStation进度条怎么调用?

    Yongan.Fu
    Yongan.Fu
    给你一段MDL调用这几个函数的代码供你参考。在C#中也类似调用即可: DialogBox *cmplDbP = mdlDialog_completionBarOpen ("Reading ASC DEM DataFile ..."); mdlDialog_completionBarUpdate (cmplDbP, NULL, 0); for (i=0; i<13; i++) { //做一些费时的工作,根据工作进度计算一个完成的百分比percent (0~100之间) mdlDialog_completionBarUpdate…
    • over 4 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • 删除插入DGN的图片后,DGN文件大小没有改变?

    Jing.Bai
    Jing.Bai
    【问题描述】 当通过MicroStation的主菜单File> Import> Image将图片插入到DGN文件中后,DGN文件的大小会随之增加,但是当将插入的图片删除后,DGN文件的大小却没有减少。 那么如何减少已经被删除了图片的DGN的文件大小? 【解决方法】 通过执行MicroStation主菜单File> Compress> Design功能,对DGN文件执行一次压缩操作,文件大小就会被更新。
    • over 6 years ago
    • Bentley 中国优先社区
    • 技术资料库
  • RE: 【C++ MSCE UPDATE 13】请问如果给一个mesh元素中某几个面片内部新增一些点,如何生成新的mesh,但保证新增点外的面片不变化?

    Xiaoqi Zhang
    Xiaoqi Zhang
    修改mesh特定点,直接用polyfaceheader里Point() 就可以修改点的坐标了,需要注意的是,修改之前,先调用一下GetelementRef() 保存一下旧的elementRef,改完再eeh.ReplaceInModel(oldRef).: bool SimpleMeshEditortool::_OnDataButton(DgnButtonEventCR ev) { PolyfaceHeaderPtr polyface = PolyfaceHeader::CreateVariableSizeIndexed…
    • over 2 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • RE: 【MS CE C++】mesh面片拖拽相关的API

    Yongan.Fu
    Yongan.Fu
    比如Drag Mesh工具会出现如下这样的画面: 这些黄色的部分你可以根据用户框选的Mesh的vertex构造这些边,然后用transient element(瞬态元素)表示它们。请查看MDL函数mdlTransient_xxx,这些瞬态元素不会添加到当前模型中,仅作为临时显示之用。
    • over 3 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • RE: 【MS CE updt13 C++】放置sharedcell的问题

    xiangeboy
    xiangeboy
    看看你的cell制作的时候是不是用了参数化实体,有参数化的cell貌似是没法创建共享单元的
    • over 2 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
  • RE: [C++ v8i]C++创建与放置共享单元

    Yongan.Fu
    Yongan.Fu
    今天抽空为您写了如下例子,请参考: void createSharedCellOnTheFly () { MSElement sharedCell; DPoint3d scale = {1.0, 1.0, 1.0}, org = {10000, 10000, 0}; MSWCharP wCellName = L"My-SharedCell"; mdlSharedCell_create (&sharedCell, NULL, &org, NULL, &scale, wCellName…
    • over 4 years ago
    • Bentley 中国优先社区
    • ◆ 二次开发(MicroStation编程, ProjectWise编程等)
    • 管华明
    • Andy
>
Communities
  • Home
  • Getting Started
  • Community Central
  • Products
  • Support
  • Secure File Upload
  • Feedback
Support and Services
  • Home
  • Product Support
  • Downloads
  • Subscription Services Portal
Training and Learning
  • Home
  • About Bentley Institute
  • My Learning History
  • Reference Books
Social Media
  •    LinkedIn
  •    Facebook
  •    Twitter
  •    YouTube
  •    RSS Feed
  •    Email

© 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies