• Re: [分享][原创]V8i下用代码实现Mesh from Points的功能

    [转载Bentley中文知识库原贴] 快乐小乞丐:这个功能所产生的数据和地理信息中的DEM很相似,也就是不规则三角网,将地面上高程三维数据构成格网,用来表示地表的起伏状况,DEM数据是一种最基础的地理信息数据,可以用来进行通视分析、坡度分析、淹没分析和土方量分析,是一种非常有用的数据。 [转载Bentley中文知识库原贴] geotri:能不能不生成Mesh,只用来某点的求值(已知XY坐标,求Z坐标值)? [转载Bentley中文知识库原贴…
  • [求助]ms元素信息中的特性里的新建和非新建是什么意思?

    [转载Bentley中文知识库原贴] 快乐小乞丐:点"i"图标,可以查看一个元素的信息,信息可分为属性和特性,特性里有一个新建和非新建的选项,通常情况下元素都是新建,不知道"新建"和"非新建"有什么区别吗?特性里还有一项是修改和未修改,这个可够用 mdlElement_setProperties()函数修改呢,我照着例子修改,将modify那个参数改为FALSE,发现元素的这个特性还是没有被修改,不知道是不是还有其他的办法呢? [转载Bentley中文知识库原贴…
  • [求助]MS得到当前系统时间的函数是哪个

    [转载Bentley中文知识库原贴] 快乐小乞丐:ms7.0里,哪个函数是取得系统时间的啊,有没有谁用过! [转载Bentley中文知识库原贴] MicroStation迷:MDL支持几乎所有标准的C函数。所以,直接调用C的time函数就能得到当前系统时间。
  • Re: MDL里的角度问题

    [转载Bentley中文知识库原贴] MicroStation迷:对于二维来说,这个RotMatrix非常容易获得,就是用mdlRMatrix_fromAngle,注意,angle要用弧度值而不是角度值。所以,只要你计算清楚你的直线端的角度就能轻易获得这个RotMatrix。
  • Re: 有关MicroStation开发的基本问题

    [转载Bentley中文知识库原贴] MicroStation迷:给一个最简单的HelloWorld例子,该例子有两个文件组成: 一个是制造文件HelloWorld.mke,一个是执行源文件HelloWorld.mc。 注意:该制作文件只支持含有单个.mc源程序的工程(或叫项目,反正英文就是Project那个词儿): 对于MKE文件,您只需要将appName这个宏定义指定正确即可,其他行不需要改动。 #---------------------…
  • 请教斑竹,调试的时候,出现“故障 144”

    [转载Bentley中文知识库原贴] hypolong:尊敬的斑竹同志: 我用的纯文本式的开发,版本还是J版本的,公司需要。 在我调试的时候,会报"故障144,故障5"等错误,而且,我在递归函数中,继续递归前,加一个MSGBOX的话,程序一直会运行正常,但是如果去除,就会报错,由于初学,不明白错误是什么,怀疑指针之类的变量没释放,但是不知道为什么加一个MGSBOX就可以了。 请教了,将非常期待你的回答。 [转载Bentley中文知识库原贴] MicroStation迷…
  • mdlLinkage_deleteElement()这个函数怎么用

    [转载Bentley中文知识库原贴] 快乐小乞丐:mdlLinkage_deleteElement()这个函数若用在删除一个元素中的用户属性数据,该如何使用呢?元素的用户属性数据具体代表什么也不清楚,只是在在元素信息中查到一个元素中有很多16进制的数字,请高手指教。 [转载Bentley中文知识库原贴] MicroStation迷:如果你对这段用户属性不清楚,最好还是不要随意的删除它。因为有些就是MicroStation自己加上去的。一般这个函数仅用来删除自己添加的用户属性…
  • 有关MicroStation开发的基本问题

    [转载Bentley中文知识库原贴] MicroStation迷: 【问1】:MicroStation目前支持哪几种开发方式? 【答】:主要有VBA、MDL(C/C++)、Addins(.NET)。还有旧式的MicroStation BASIC等。 【问2】:什么是MDL ? 【答】:MDL是MicroStation Development Language的缩写,翻译过来就是"MicroStation开发语言"。现在正逐渐变为MicroStation Development…
  • Re: [分享]microstation一启动就调用Addins的方法

    [转载Bentley中文知识库原贴] MicroStation迷:.UCF = User Configuration File(用户配置文件)。 在MicroStation启动时有一个User/Project/Interface的选择界面。不同的User会对应不同的UCF文件。缺省情况下,User名是Untitled,所以,在你的...\Workspace\users目录下就会有一个untitled.ucf文件,该文件是文本格式的。可以手动编辑修改它。
  • [分享]在VS2005(VS2008)下直接编写和编译Addins程序

    [转载Bentley中文知识库原贴] gjgj1976: 本论坛上尽是关于MDL和VBA编程的话题,没有关于Addins的,现我就近期开发Addins程序的一些体会写出来,希望能和大家共同学习提高: 看了论坛上"MDL开发视频"的最后一期关于用DOTNET开发Addins应用程序后,收获很大,然后自己实验着编了几个小程序,居然成功了。感觉用DOTNET开发Addins有以下优点: 1.直接在VS2005(VS2008)下直接编写和调试,界面友好。 2.无需MDL编译环境…
  • 如何设置LineParams?

    [转载Bentley中文知识库原贴] sphinxo: 在v8i中,使用place line constrained命令,可以在画线的时候设置线的角度。 目前我在Map下开发,使用XFT下的对象,如何设置LineParams,能实现画特定角度的线? 从XFT.LineParams对象看,只提供了设置长度的方法,没有设置角度的。不知道有没有人回答? [转载Bentley中文知识库原贴] liujun: LineParams没有设置角度的属性和方法…
  • [分享]microstation一启动就调用Addins的方法

    [转载Bentley中文知识库原贴] gjgj1976:我发现,如果在.ucf文件中加入 "MS_DGNAPPS > aaaa",(aaaa为您开发的addins生成的.dll文件,不加文件后缀),且将.dll放到mdlapps目录下,只要您一启动microstation XM,您开发的addins就能像.ma文件一样自动运行。 [转载Bentley中文知识库原贴] smartflyer:.ucf是在什么目录下的什么文件? 说清楚一点吧。
  • Capturing an Element with ILocateCommandEvents and passing it back

    I want to write a module that processes a Mesh Surface and cuts some contours through it at variable intervals. In order to get the Mesh Surface to start with I am creating an AnalyzeMeshSurface Class Module (Implements ILocateCommandEvents …
  • Dimension Style Names

    Previous versions of MS allowed for a blank space in the Dimension Style names i.e. 60_FOOT SCALE. However it seems in our current setup using MS Version 08.09.04.51 it no longer allows this space. Our identically named Text Styles still allow for a space…
  • Re: Using TextLine on TextNodeElement and Stacked Fractions

    I have spoken with select support on this issue. It appears that there is no API to access the stacked fractions attributes. Only the word processor has the internal code to access the element data structure that indicates what is a stacked fraction and…
  • Re: element.redraw does not work in XM?

    Hi Krister, I think you should use IsHighlighted element property, it does all work for you. There is a limitation, but it depends what exactly you want to achieve: If you set IsHighlighted property, the used color is always the highlight color…
  • Re: mdlElement_display

    Hi, I know that mdlElement_display are deprecated in Microstation XM Edition. you suggest to use mdlTransient_xxx function to highlighting the element Code snippet : ============== int draw_line( DPoint3d pnt[]) { TransDescrP…
  • Notification of dynamic elements being added/erased, mdlView_setSubstituteElemFunc

    Hello, I'm porting an application which has a native window which tracks a MicroStation view. When dynamics (for example a smart line segment) is added to the MicroStation view, my aplication needs to be notified of those changes, and mirror them…
  • Disabling Windows [x] close button

    Is it possible to actutally remove the windows [x] (close) button in XM so a users has to close down microstation using a custom button? Thanks John
  • no performance improvement seen after costly hardware update

    In my company GIS applications are very important. To improve performance some 6000 Euro have been spent on a new PC (2x4 core XEONS with 12 MB L2 Cache, Raid Controller, fast memory, etc.). Theoretically the new PC should be at least twice as powerful…
  • Extracting <SHIFT>ed carriage returns from text nodes

    Hi folks, I have an old problem with text nodes that's been around since I ported to v8. In MicroStation v8.0-v8.9 (have not tested with V8i yet) there seems to be a distinct difference between text nodes created by hitting <RETURN> between lines…
  • MDL compiler include file logic

    Dear all, I have a problem understanding the logic of the way include files are loaded by the MDL compiler. According to the documentation, the -i switch should be interpreted as follows: -i<dir> Add the specified directory to the list of directories…
  • Re: mdlElement_display

    Hi all, From still i will not get the solution for displaying element. I have attached zip file on this mail. This mdl project line displaying in V7 version but not in V8 XM Edition. Please modify this attached code give to me. Without using …
  • Re: mdlElement_display

    Dear Jon, I am really sorry say still line element not displaying after adding mdlTransient_addElement function. Updated code attached on this mail. Thanks & Regards, V.Sathish
  • Re: Programming dimension driven cell with mdl

    Mark, Do you have a definition file for the consLGroup_... functions? I can't seem to find them anywhere. I only have a definition for my (not working) consLGroup_readCellfuntion. Regards. Wim Aerts 4D select