Browse By Tags

  • SDK API for obtaining and setting the "Locate Tolerance".

    A user can run a key-in command: "Set Locate" to query the current "Locate Tolerance" or key-in "Set Locate = 15" to set the "Locate Tolerance" How is this accomplished problematically using the SDK? Thank you.
  • [CONNECT C++] Error LNK2001 calling function from another cpp file

    Hi, I already asked a similar question and the problem was a missing library in the *.mke file. At the moment I have my "main" .cpp file and I want to call an Initialization function from another .cpp file. I did it in a similar way to the "exampleSolids…
  • [CONNECT C++] SmartFeature Error LNK1120 while trying to compile

    Hello everyone, I'm new as a MicroStation developer and I'm trying to code an AddIn in C++ that extract the Smart feature tree from a DGN file. The problem that I have at the moment is a compiler error using bmake. This error it appears only if I'm…
  • MDL, C++,Scanning

    I have a strange problem when scanning a file. In the code below I am looking for cells with name beginning with characters " XX ". It finds all the cells which start with characters " XX " except cell: XXDWG. Now if I comment out the 3 lines above the…
  • Programming in Bentley Substation v8i

    Hi everyone, I'm looking to develop in Bentley Substation v8i. From my understanding, I would use the Microstation v8i SDK to do this, correct? All I think I will need to do is, based on input that I will be reading from text files, delete certain…
  • 关于MS connected版本的渐变色填充

    MS ce版本开发,想对一个元素使用渐变色填充,比如使用彩虹色填充,在帮助文档中找到 AddGradientFill ( EditElementHandleR eeh, GradientSymbCR symb),这个函数,但是不知道这个函数怎么使用,关于 GradientSymbCR 的描述非常少,不知道里面的函数SetKeys()等怎么用。可否提供一段样例代码学习下?
  • Point3dInPolygonXY returns error in C#

    I am trying to determine whether or not a text element (or e shape) is placed inside a shape/complexshape. No matter what I try, I get an error. Here is the code: Point3d pText = eleText.get_Origin(); Array psShape = e.AsShapeElement.GetVertices(…
  • [V8i C#] Does it exit the API for Pointools

    Hi all! I am a new programmer to MicroStation. I would like cup 'las' or 'pod' file by software. Is-it possible to do this by Point Cloud or by MicroStation ? If Yes, where can I download the document of the API ? Thank you a lot Best Regard
  • Custom Menu Item in CONNECT

    Hey everyone! So, I have a working MDL (written in C++) set up with Connect that provides functionality where I can intercept and basically override certain commands with my own functionality. In some cases, this functionality is launching an outside…
  • Learning about XFT Move Operation in Map

    HI all! I need to know how use the move operation in Bentley Map. Actually, in C# i write this code: Bentley.Interop.Xft.MoveOp op = new Bentley.Interop.Xft.MoveOp(); Bentley.Interop.Xft.CmdMgrClass mgr = new Bentley.Interop.Xft.CmdMgrClass…
  • Finding all documents in subfolders/subprojcets with a specific name, fast!

    Can anyone point me in the right direction on how to accomplish this? I need to find if there is a document in a project that already have a specific filename. I use the aaApi_SelectParentRichProject to find the current project and I want to…
  • I am having error on call of aaApi_Initialize(AAMODULE_ALL); function

    Hello, In my code when I call aaApi_Initialize(AAMODULE_ALL); method to initialize my custom console application it is giving me hooks related initialization errors. My code is working on one machine but it does not work on another machine because of…
  • what is the difference of the logical set and document set?

    Hi, I want to setup a reference relationship between two document(xml file and data file), I am not sure which kind of set(or something similar) need to be created. I checked the api document, there seems two different set, one is logical and the…
  • How to enable File Extension Filter and set the _AAOPENDOCSDLG2_PARAM::lpctstrFilter for the aaApi_DocumentSelectDlg?

    Hi All, I want to enable the File Filter control on the DocumentSelectDlg, I try to turn on the mask AAOPENDLG2_MASK_FILEEXTFILTER, and add param.lpctstrFilter = L "dwg;*.dwg" ; but I can't see the filter box on the dialog, so how to enable the…
  • Stream a text file from ProjectWise

    Is it possible to stream a text file from ProjectWise? I noticed the DocFetchFlag "AADMS_DOCFETCH_STREAM_SUPPORTED" I want to pass the streamed contents to a WinForm textbox which acts as a preview pane. Cheers
  • Compressing design changes features definition?

    Hello I have strange behavior in Bentley Map SS2 I have changed gasMain example, to use different feature display name than name: // Initialize "GasMain" root feature definition xfmFeatureDef_new (&featureDef); xfmFeatureDef_setName (featureDef…
  • About mdlKISolid_evaluateFace's input (u,v) and output.

    Hi guys, Recently I'm using mdlKISolid_evaluateFace to get the face's one point and its normal. About the input parameters u and v, I do not totally understand. I think (u, v) is the range from (0, 0) to (1, 1). As an example, I select two face, one…
  • PW New Project Wizard

    Hi, I've recently been messing around with the customprojwizard provided as part of the samples in the PW SDK. I noticed that the wizard in the sample does not extend/expose the security interface as the standard wizard does. I've created the…
  • PWISE SDK XML Functions

    Regarding document management functionality Are there any methods to get data in XML format? Ex return 1) Project list with folder structure related to it 2) Environment list in a project 3) Document list in a project/Folder 4) Document…
  • connect to a datasource and enumerate its files in a console app

    Hi, I'm new to Bentley and Project Wise. For some integration work (with other products) I need to access a Project Wise datasource and enumerate all it files of a certain types. Here is what I got so far: int main(array<System::String…
  • Reading cell library

    Hi I have a problem reading a cell library that contains cells built up by cells. And the problem only is for cells, no other element types. When I read the library my callback function from the scan critera gets these elements: From cell 1: shape…
  • Coloring solids and surfaces without using materials (C++, SS2)

    Hi, Is it possible to color solids and surfaces with rgb values calculated from custom functions without using textures? I would like to have a pipe which temperature is calculated online and shown on it. Something like this on a surface: http://en…
  • Change the design file from another thread (C++, V8i)

    I'm running a TCP server that communicates with another program in a second thread (boost). I'm trying to open a new design file from that thread by using the next command but it fails with an access violation. Opening files works from the main thread…