Browse By Tags

  • [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…
  • [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…
  • Getting started with the SDK

    Hi, I need to create a PW API based application but I am struggling with the SDK documentation : from what I have seen it seems to be code generated document listing function and struct of PW module with a brief description of parameters...What I need…
  • Unable to read v8i.dgn files .

    [08.11.09.292 V8i SS3] [C++ Visual studio 2015] I am reading a v8i.dgn file using mdl API's , but for some reason , i cant open/read the read only file . Code :: //Name - File name with complete path int iOpenStatus = mdlSystem_newDesignFile…
  • [MSV8i C++]有没有mdl函数来实现修剪实体工具的操作

    类似的有mdlKISolid_booleanDisJoint可以做剪切,但用起来有点麻烦,请问一下有没有修剪实体的函数直接可用啊???
  • ProStructures API or SDK

    Does ProStructures or ProSteel provide an API ? Is the API included with the product or provided with a separate SDK ? What languages are supported? VBA C# C++ Glossary API: Application Programming Interface SDK: Software Developer…
  • RE: Clip Boundary

    https://communities.bentley.com/cfs-file/__key/communityserver-discussions-components-files/343173/basic.maHere is the final program I created that uses scanning and clipping. This program scans the file for a highlighted shape (must be a 4 point shape…
  • RE: create abstract document (document with no file) ?

    Did you try it? This works (ProjectId is set before this code with the id of the folder to create the document in): LONG lDocId = 0; LONG lStorageId = 0; LONG lFileType = 0; LONG lItemType = 0; LONG lApplicationId = 0; LONG lDepartmentId = 0; LONG lWorkspaceProfileId…
  • 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…
  • 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…
  • C++/CLI

    Hello. I have figured out how to compile DLLs in VS for Excel and create my own C++ functions. My ultimate goal is to be able to write C++ programs that operate within Excel and Microstation. My question concerns C++/CLI or the C++.net. Is one able to…
  • 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…
  • mdlKISolid_elementToBody2 doesn't work for elemDescr generated by mdlKISolid_bodyToElementD?

    Hi all, I tried to generate MSElementDescrP by KIBODY * using mdlKISolid_bodyToElementD, and all works fine. However later when I tried using the generated MSElementDescrP to generate KIBODY, it doesn't work at all. Would anyone give any hint? Thanks…
  • [V8i C++] Programming with Eclipse IDE, HowTo configure IDE

    Hello All, I read that preferred programming environment is Microsofts Visual Studio .NET and preferred language is C#. But I don't have experience in C# and I don't want to buy MS Visual Studio either. Is there a HowTo that describes how to setup a…
  • 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
  • Create Blocks along center line and count points opened in micro station using Terra scan

    Hi All, I am using Visual Studio 2010 , Microstaion V8i and C++/C#.net I loaded the laser points to microstation using terrascan. I want to create blocks along the center line having certain length and width. i want to count the number of laser…
  • 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…
  • [V8i C++]How can I disable locate by Levels

    Hello everyone! I wanna develop a new tool to disable users from selecting elements belonging to a specified level.The final effect shows below.Whenever cursor hovers over those elements,it will show forbidden.It would be very helpful if you can show…
  • [V8 C++ API] Difference between getIsDisplayedFlag() and getIsHiddenFlag() for Levels?

    Also how does one define whether Element in a Level is visible or not? Does it depend on LevelOverride flags?
  • [V8i C++] How to get Deleted Elements in V8?

    I have a V7 file with Deleted Elements. But those deleted elements cannot be identified insibe ModelTable->Graphics. How to fetch those elements?
  • [V8 V7 C++] What is Cell Extension in V7? How to get it in V8?

    Hi, What is the concept of Cell Extension in V7 Files? Is it relevant for V8 too?
  • 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…