Browse By Tags

  • [connect update 15 c++ ] How to solve the error of duplicate rsc?

    MicroStation Resource Librarian 03.20.02 ### Error: Duplicate: File=(C:\Users\ADMINI~1\AppData\Local\Temp\Bentley\MicroStationSDK\objects\HelloWorld.rsc), TypeId=('str#') RscId=(1) ### Error: Duplicate: File=(C:\Users\ADMINI~1\AppData\Local\Temp\Bentley…
  • [Connect Update 15 c++] Is there a way to draw a uneditable shape except through your UI dialog box?

    I want to draw a object and make it unable to be altered by other tools expect through the UI I provided. For example draw a box with a trailing line segement fixed at certain angle to the rectangle. I do not want anything including the size of the…
  • [CONNECT UPDATE13 C++] Toggle Point Cloud Snapping

    OS: Windows 10 Application: MicroStation Connect Edition update 13 - v10.13.01.01 Language of the Application: C++ Goal: Set the snapping of created point cloud entities to off by default Below is the point cloud options of imported point clouds…
  • How to implement SetFileSaveFunction callback function?

    I develop add-on for MicroStation using CONNECT Edition application with C++. Using Microstation10.15 update SDK I would like to get Save event when save triggered. extern "C" DLLEXPORT void MdlMain(int argc, WCharCP argv[]) { SystemCallback::SetFileSaveFunction…
  • [Connect C++] How to get the color of an element?

    Hello, I have a problem while retrieving the colors of the different geometric parts of an element. For parsing the geometry I'm using the IElementGraphicsProcessor to process the element and retrieve the different graphic primitives types (SolidPrimitives…
  • About control the progress bar which is already existed is the Microstation

    Hi everyone: Does anybody know how to get the api of the progress bar ,so that i can directly use it which is already existed in the MicroStation, shown in the following figure And i have a demand that will take a lot time to process, so what can…
  • [Connect C++] list with all the "class name" types of an element

    Hi, Is there a way to get all the class name types that identify elements? Typically for gathering the class name I'm using the following commands: for (DgnECInstancePtr instance : ecMgr.FindInstances(*scope, *ecQuery)) { DgnElementECInstanceP elemInst…
  • Exception being thrown at assigning string.

    [08.11.09.292 V8i SS3] [C++ Visual studio 2015] Hi all, I am reading v8i dgn file through Microstation SDK . While i am collecting the XML fragment information of element , and parsing the values , i'm greeted with an exception. The exception…
  • How to add a handler to an ElementHandle

    In V8i, I can use IElementHandlerManager to register a handler and add the handler to an element, but in Connect edition, the IElementHandlerManager was disappeared. So, if I wrote a class derived from ITransactionHandler, how can I use it?
  • I've problem with POD-file attaching.

    I use MS V8i and SDK mssdk081109357en. I make build by instruction . I have some problem with example from SDK, which name is "PointClouds". I changed the code for debuging in next way: ... case DITEM_MESSAGE_QUEUECOMMAND: { Bentley::Ustn::Element…
  • ProjectWise tool to rename file(s) using environment attributes

    Hello, I am wondering if I could get some help creating a tool to rename drawing file(s) (DGN or DWG) from their original file name to the following environment title block attributes or symbols: <Environment.SUBSTATION_NUMBER>_<Environment.DWG_N0>…
  • PowerInRoads API C++ SS2, "SCadIRD.h": number of points at specific station.

    Hi forum! we try to use functions in ScadIRD.h. We cannot get the number of points at specific station wchar_t* name = NULL; // <= Active corridor name ALGalign** pAlg = NULL; // <= Active corridor alignment double* dStartStation = 0; // <= Active corridor…
  • [V8i C C++] API JT Export

    Hi, I would like to automate the export of DGN file to the JT format. Is there an MDL or C API that I could use. May be a key in command ? I know there exists a jtexport command but it cannot be used to launch the conversion. Any help would be appreciated…
  • 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…
  • [v8i C++] ToneMappingType definition missing

    Hey all, I've been trying to play around with the C++ Rendering API in version 08.11.09.460 of the SDK, but I've run into the following compilation errors when including LxoRender.h: c:\PROGRA~2\Bentley\MICROS~2\MICROS~1\mdl\RenderingAPI\ToneMap.h…
  • VS 2003 and VS 2005

    Hi As I know Bentley application should be made by using corresponding version of Microstation and Visual Studio. When we work on the latest versions of both programs everything is correct, Unfortunately when I need to write an application for the previous…
  • Fetch document from server

    How do I control whether or not references (xrefs) also get downloaded when copying a dwg file or a dgn file, to a local folder? I’m trying to do an export to a completely independent folder. As far as I can tell there are three main paths to follow…
  • RE: Dot net application not working in multiple microstation DGN

    Hi Mr. Jon & Mr.Stack I created this using C++ inside Visual Studio 2010. It is a winform application so it will work externally. Please find the Read.h (C++ header file ), where i have written the code to draw blocks give some suggestions. Thanks…
  • RE: Create Blocks along center line and count points opened in micro station using Terra scan

    Thanks Mr. Jon Please find the Extract.rar. This is a sample C++ project to copy element made in visual studio 2008. Please can you give any suggestion to make a .ma or .dll file so that i can call it from microstation Regards Manoj
  • How to attaché(reference) an txt file to another txt or xml file?

    Hi All, I have two files(txt or xml or some other format) A and B, I want to attach A to B, which means B will reference A, and when B is export, A will be copied out to the same folder. But if A is export, B will NOT be copied out. Is it possible to…
  • 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…
  • 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…
  • How to create basic "Hello World" application for testing ProjectWise API?

    As I mentioned in http://communities.bentley.com/products/projectwise/projectwise_programming/f/342995/p/90780/259520.aspx#259520 , I'm trying to get started with a very basic application to test out the ProjectWise API. I'm going to try writing a DLL…
  • Compiling with the API in G++

    Hi, I'm currently starting to look into using the ProjectWise SDK to automate some of the more repetitive tasks we do. Having had a look around the forums I understand that driving ProjectWise explorer from C++ is much better/easier than attempting…
  • 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…