• Re: 弱弱的问个问题-V8里globorg.x在哪个h文件里?

    [转载Bentley中文知识库原贴]flower:多谢,我就是改了一些语句才出现这个问题的,大于5000个点的元素在ms是什么类型? mdl那么多的fdf文件,经常编译的时候发现还有fdf没包含进来,能不能做一个hfile.h文件,#include全部这些fdf文件,然后mc里写一句#include "hfile.h"就可以了,这样做有什么弊端吗? [转载Bentley中文知识库原贴]MicroStation迷:以下是引用swp160108在2009-3…
  • Re: MDL里的角度问题

    [转载Bentley中文知识库原贴] MicroStation迷:对于二维来说,这个RotMatrix非常容易获得,就是用mdlRMatrix_fromAngle,注意,angle要用弧度值而不是角度值。所以,只要你计算清楚你的直线端的角度就能轻易获得这个RotMatrix。
  • Re: 弱弱的问个问题-V8里globorg.x在哪个h文件里?

    [转载Bentley中文知识库原贴]flower: #include #include #include #include #include #include #include #include #include #include Public void main(int argc,char *argv[]) { Dpoint3d vertex[3],origin,globalOrigin; double d_lengthUOR…
  • [下载]MDL开发资源下载

    [转载Bentley中文知识库原贴] MicroStation迷: 1. 《MDL程序设计》电子书: http://www.techpower.cn/down/BDN/Material/MDLProgramming_cn.rar 2. 《BDNzine》电子杂志(50多期的有关MS开发的技术文章): http://www.techpower.cn/down/BDN/Material/BDNzine_SimpCn.pdf 3. NativeCode开发向导…
  • [求助]MS得到当前系统时间的函数是哪个

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

    [转载Bentley中文知识库原贴] MicroStation迷: 1. 《MDL程序设计》电子书: http://www.techpower.cn/down/BDN/Material/MDLProgramming_cn.rar 2. 《BDNzine》电子杂志(50多期的有关MS开发的技术文章): http://www.techpower.cn/down/BDN/Material/BDNzine_SimpCn.pdf 3. NativeCode开发向导…
  • [求助]ms元素信息中的特性里的新建和非新建是什么意思?

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

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

    Hi, I wrote short script for longitudinal profile… and I need draw filled half of the circle. Idea is to draw line plus arc and then create complex shape. part of the code looks like this: Dim carka As LineElement Dim oblouk As ArcElement Dim vrchol…
  • 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…
  • Is element in an attachment?

    I am calling IPrimitiveCommandEvents and get the element Set ele = CommandState.LocateElement(Point, view, True) How can I determine if the element ele is in an attachment? regards Patrick Wheatley XM 08.09.04.88 Windows…
  • "Drive" Microstation Dialog box with VBA

    hi, In excel (vba) when i build a dlalogbox with text field or checkbox, i name then such as Tbox1 (for txtbox) and Chkbox3 (for checbox) so in VBA i can exploit thoses element (testing state, or modifing values) with commands like TBox1.Value…
  • Loading References (DLL, OCX, etc.)

    I realize this is a general VBA question but here goes. I'm creating a series of planned AutoRun MVBA's for our users to do a number of behind the scenes tasks. These forums have been a valuable resource for finding out how to handle some odd…
  • 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…
  • 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 …
  • If... Then... Else to check for a reference file attachment

    I have a VBA function that runs when a design file is opened and closed. However, I need to add a IF... Then... Else statement that checks to see if there is a reference file attached when the design file is opened. If the reference file is attached…
  • Using TextLine on TextNodeElement and Stacked Fractions

    I have found that if I enter a single line within Microstation into a TextNodeElement using the "Edit Text" tool that contains a stacked fraction (ex. '3#4" DEAD-END TEE' ) I find that my TextLinesCount becomes 3 and my TextLine(1), TextLine(2) and TextLine…
  • MVBA Interface

    Hi, I have an idea for a couple of MVBA Projects, but they are dependant on me being able to build suitable interfaces for them. Can anyone advise me haw I access what I believe to be standard interface objects, such as element attribute drop downs…
  • oDimension.PrimaryText(i)

    My dimension text has been over ridden with "123.456 dimension test text" but in my MVBA oDimension.PrimaryText has only 1 segment count and the value of PrimaryText is given as "*" which is clearly incorrect. Any ideas? regards Patrick…
  • 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…
  • Perpendicular Lines to ComplexStringElement (or ChainableElement)

    Hi, Could anyone give me any tips on how to draw a perpendicular line of a set length from a point on a ComplexStringElement. What I'm trying to do is place distance marks along a centreline (made up of lines, arcs and curves). Using the…
  • Help for VBA 3D

    Hi, I'm searching a good teachers who can say me how to start with VBA and mostly VBA 3D on Microstation V8 Xm version. Please answer me, I already do some 2D things but nothing in 3D. Thanks Alain
  • Private Sub ILocateCommandEvents_LocateReset() not working

    While within my MVBA class ILocateCommandEvents pressing the Reset button brings up a Pop Up window instead of running the sub Private Sub ILocateCommandEvents_LocateReset(). what is the solution? Happy New year Patrick XM 09…
  • Re: mdlElement_display

    Dear Jon, Still line element not highlighting. I am not declared msTransientElmP as global variable you suggested code has implemented. Actual problem is when i picking a first point and second point, it not drawn any line between the points.…
  • Re: Disabling Windows [x] close button

    There does not appear to be events directly tied to opening and closing of Microstation, but there are design file events for load and unload. Below is an example straight out of the help file for VBA for Microstation. (Use the little "?" button in the…