Browse By Tags

  • .NET API for 'Steel - Modelling - Modify Steelwork - Compare Parts'

    Hi All, I am looking for a .NET function to replicate the GUI function of 'Steel - Modelling - Modify Steelwork - Compare Parts ' which compares two parts in the same drawing. What I am trying to achieve is to check if all parts with the same PosNum…
  • Getting the diagonal of the bounding box of a model [Microstation Connect 10.60.00.80 C#]

    Hello, I'm trying to get the diagonal of the bounding box of a model. I'm assuming that the DRange3d object is a representation of the bounding box? I'm using the following Code: DgnModel dgnModel; StatusInt statusInt = dgnModel.GetRange(out DRange3d…
  • Add Change State Approve/Revise button to ProjectWise toolbar

    Hello All, In ProjectWise Explorer CONNECT Edition, we can get Change State/Next/Previous buttons to the toolbar, but the Approve and Revise are missing. Is it possible to add via ProjectWise SDK/API? Any advice? View > Toolbar > Customize > Commands…
  • [CONNECT Update 14 C#] Getting all of the Wall Centerlines from a DGN Drawing Automatically

    Hi everyone, I have a question regarding being able to recognize individual wall elements especially the wall's centerlines in a 2D MicroStation Drawing. My end goal is to use the centerline information of each wall object to recreate the wall in…
  • [CONNECT C#] Managed Equivalents for older COM Interop Calls

    Hallo, I am converting existing add-ins that were written in C# using the COM Interop on V8i SS4 to the new CONNECT NET API and I would like to get rid of any remaining calls to the COM Interface where possible. To achieve that goal, I need to find…
  • ProjectWise api aaApi_SelectDocumentsByProp call fails with Error code:50045 No database connection is active at the moment

    Hi, I am stuck with the below issue while using ProjectWise SDK for fetching documents. Any solution or pointers would be really helpful. I am fetching documents from a given project using aaApi_SelectDocumentsByProp method call. I then extract few…
  • [V8i C# Addin] Manipulate the Tasks Panel

    Hello again, I am using V8i Select Series 4, C# addin development. Is it possible to add/remove/update tasks in the task bar from the addin? I added the below "Custom Toolbar" toolbar/task manually and would like to manipulate it from the addin. …
  • ProStructures API - ProStructuresNet.dll

    This seems like it should be easy but I'm having trouble using the ProStructures API with my C# plugin for ProStrutures on AutoCAD. I have referenced the ProStructuresNet.dll library into my project along with the usual AutoCAD libraries. I can use the…
  • 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…
  • create Linear Form by c# ,AECOsim

    using AECOsim Building Designer ,I want to add TF Linear Element to model reference ,is it possible programmatically ? TFFormRecipeLinearList formList = Program.tfApp.CreateTFFormRecipeLinear(); TFFormRecipeLinear linearForm = formList.AsTFFormRecipeLinear;…
  • V8i C# SS3 - Is it possible to extract the category of feature configured in GSA

    All, I have configured categories in GSA for all features and below is one of the example Is it possible to retrieve the category name of a feature configured in GSA using C#? I have tried IStorageImportCriteria and IClassImportCriteria but could…
  • How can I update Project Properties for a defined Project Type on a Rich Project through the SDK with C#/VB.NET?

    I have been able to find a couple of post on this topic but none that contain a solution. I am using the ProjectWise SDK through C#/VB.NET to copy a folder structure. Using the aaApi_CopyProjectWithHierarchy command, I am able to successfully copy a Rich…
  • aaAPI_CreateDocument Version String argument format?

    I just created C++ wrapper library to be called from c#. This works fine but how can I create another version of same name document in lieu of overwriting existing one? In addition, is there any API reference source I can use to figure out this kind…
  • 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…
  • COM error from c# app outside VS?

    I have a c# app developed in visual studio 2012 that references bentley.interop.microstationdgn.dll to process dgn files. When I run the app in studio it works fine but, when I try to run it outside of studio, I get the following error: Retrieving…
  • C# Feature SetProperty method problem

    Hi Everyone, I try to set property on feature like this oFeature.SetProperty("PROPERTYNAME", Value); oFeature.ApplyAttributeChanges(); oFeature.Write(true); everything is good but when i open Data Browser in Bentley the result is: Unable to…
  • C# GetPropery() from Dateticks Type Property

    Hi, I have problem when use GetProperty("INSTALLDATE") from Dateticks Type Property method is return String like this "635590796670000000". How to convert this string to DateTime type?
  • [V8i C#] TextNode WordWrap

    Hello, I would like to know if and how I can place a text node using .NET addin by using true word wrap? I need to set an area that text must fit in. I know I can set the number of characters in line like this: textNode.LineLength = 100; But this…
  • Setting document properties through API

    I have been using aaApi_GetDocumentStringProperty to obtain property values from document. That works pretty straight forward. Unfortunately I also want to assign new values to the document properties. I cannot seem to find something like "aaApi_SetDocumentStringProperty…
  • [v8i SS2 (08.11.07.443) C#] System.Runtime.InteropServices.COMException...

    I have a C# script designed to scan dgn files in a selected directory and generate a report on the files scanned. The script is written to run outside of microstation and it works fine. The problem is when clients attempt to run more than one instance…
  • 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…
  • Re: can a program in Matlab call external program WaterGEMS

    Hello, I received your private message and answering your questions here so that others can benefit. What is WaterObjects.NET API? API is Application Programming Interface. In simple terms, it’s a way to communicate with the software or to its…
  • ProjectWise SDK and C# Wrapper Classes - Heap Corruption

    Hi everyone, I've hit a bit of a brick wall and I am running out of clues on how else to debug this problem. In a nutshell, I've got C# wrapper classes written around the ProjectWise API and in turn, this library is consumed and used by an MVC3 web…
  • [V8i c#] Is there a API to merge two files

    Is there a API to merge two files Problem : Need API to merge two DGN files or alternative method without using keyins MicrostationDGNApp.CadInputQueue.SendCommand("DIALOG REFERENCE TOGGLE "); MicrostationDGNApp.CadInputQueue.SendCommand(…