Bentley Communities
Site
Search
User
Site
Search
User
Welcome
Products
Support
About
More
Cancel
Browse By Tags
All tags
c#
.NET dotNET C# CSharp
.dgn
.NET
2004 Edition
API
Application Development
ApplicationObjectConnector
Bentley Developer Network
Building applications
C sharp
C++
CadInputQueue.Sendcommand
COM
CONNECT Edition
CSharp C# .NET dotNET
development
DGN
MicroStation
MicroStation Programming
MicroStation V8i
MicroStationAPI
programmer
Programming
SDK
v8i
Visual Studio
Learning about XFT Move Operation in Map
Renato Cartesio
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…
over 8 years ago
Geospatial Programming
Geospatial Programming Forum
COM error from c# app outside VS?
TMA
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…
over 8 years ago
MicroStation Programming
MicroStation Programming Forum
[v8i c#] Linkage
Sebastian Hallmann
Hello Community, i could use some help with Linkage in c#. I am searching for a function that is equivalent to the MDL function 'mdlLinkage_extractUsingDescr', or a way to get the same functionality or the same information in a c# Add-In. I didn't…
over 8 years ago
MicroStation Programming
MicroStation Programming Forum
Entity Framework in v8i AddIn
TMA
I am attempting to create an AddIn that writes data from a dgn file into a sql database via a .net 3.5 compatible version of Entity Framework. When loading and executing the addin, I get the following error: System.ArgumentException: The specified…
Answered
over 9 years ago
MicroStation Programming
MicroStation Programming Forum
RE: Dot net application not working in multiple microstation DGN
Manoj_Pal
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…
Read.rar
over 9 years ago
MicroStation Programming
MicroStation Programming Forum
Dot net application not working in multiple microstation DGN
Manoj_Pal
Hi Everyone, I have written one application to create blocks in microstation. Its working fine if one .dgn file is open. If i will open multiple dgn file , its only working in the dgn which was opened first. I used visual studio 2010, C++.net…
over 9 years ago
MicroStation Programming
MicroStation Programming Forum
[v8i SS2 (08.11.07.443) C#] System.Runtime.InteropServices.COMException...
TMA
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…
over 9 years ago
MicroStation Programming
MicroStation Programming Forum
Create Blocks along center line and count points opened in micro station using Terra scan
Manoj_Pal
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…
over 9 years ago
MicroStation Programming
MicroStation Programming Forum
Draw Sections along center line and offset to centerline (C# Programming for microstation V8 2004)
Manoj_Pal
Hii All, I am new to microstation development. I am using C#.net and Visual Studio 2010. I want to do offset of a center line in both side and draw sections in a certain interval to the centerline. Would anyone help me to do this without using cadinputque…
over 9 years ago
MicroStation Programming
MicroStation Programming Forum
[C# Addins]How to Save <view.DisplaysFill>settings in dgn file
DongLee
Here is the Code: Application app = Utilities.ComApp; View view = app.ActiveDesignFile.Views[1]; view.DisplaysFill = true; ....... EllipseElement elipse= app.CreateEllipseElement1(); elipse.IsFilled = true; elipse.FillMode = MsdFillMode.Filled;…
Answered
over 9 years ago
MicroStation Programming
MicroStation Programming Forum
Extract information in Bentley Microstation design file
praveen kp
Not sure if this is the right place to ask. How can i extract information in design file to a text file? The information involves all the elements in the file with its properties. I need to extract these information, without opening the file in Bentley…
over 9 years ago
Geospatial Programming
Geospatial Programming Forum
MicroStation Add-in for saving Excel file
Jedrick Juinio
Hello Guys, I'm trying to save an Excel File using a Key-in in MicroStation. I'm revising the codes created by someone and I want to know how this dialog box appears? I want to know also on how I could catch the user's response for this. I'm…
Answered
over 9 years ago
MicroStation Programming
MicroStation Programming Forum
How to add user-defined Line in Microstation addins development?
DongLee
Hi I'm new to Bentley Communities,Does anyone know of a solution on how I can draw user-defined line with C# in VS2008,I can set the line style in Menu ElEMENT->LINE STYLE->CUSTO M.But I have no idea how to draw it with C# code. I t ried to call <CreateLineElement…
Answered
over 9 years ago
MicroStation Programming
MicroStation Programming Forum
[V8i C#] Bentley.Inroads.SDK HorizontalAlignments.Active
Marty Robbins
in an out-of-box C# application the following lines of code crashes my application at SdkManager.Projects.Active.HorizontalAlignments.Active = horizontalAlignment; I am using Microstation V8i SS2 and InRoads V8i SS2, using the assembly Bentley.InRoads…
over 9 years ago
MicroStation Programming
MicroStation Programming Forum
[V8i C#] Cancelling XFT LocateOperation on mouse Right-Click
Nikemundo
Hello! I am developing Addin that uses XFT LocateOperation like this: using XFT = Bentley.Interop.Xft; TextIdentifyFeatureLocateOperation oo = new TextIdentifyFeatureLocateOperation(); XFT.locateOp oLocateOp = new XFT.locateOp(); XFT.InputValue…
over 9 years ago
Geospatial Programming
Geospatial Programming Forum
Accessing materials that are attached by level and/or color
Alex Hazanov
In Microstation materials can be attached directly to element or by level or by color. When material is attached by element I can access it via the API , however when it's attached by level or color I can't find where this information is stored...…
over 10 years ago
MicroStation Programming
MicroStation Programming Forum
V8i C# MX com controls
markgardiner
Hi, Bentley MX ships with com controls for model, string, and point selection, As soon as I include one of these controls on my form and build my project, I get the following error. Could not load file or assembly 'file:///C:/Program Files (x86…
Answered
over 9 years ago
MicroStation Programming
MicroStation Programming Forum
sample MDL application using c++ in vs2010
uma mageswari
Hi, can anyone help me to create a sample MDL application using c++ in vs2010 for microstation Regards, Uma mageswari
over 11 years ago
MicroStation Programming
MicroStation Programming Forum
[V8i c#] Open design file needs delay
thangaraju s
Open design file needs delay Problem : Application is visible & after opening the Design file, immediately tool bar, menu bar will not display the GUI. If we use Delay for 3 seconds GUI gets displayed. Need to know we are Opening the design…
over 10 years ago
MicroStation Programming
MicroStation Programming Forum
[V8 C#] Odd behaviour of event handling with IViewUpdateEvents
dgutierrez
Hello, it has been said in this forum that a standalone application could not successfully add a IViewUpdateEvents handler to the running MicroStation instance, since both applications would not share the same memory space. This issue has been commented…
over 11 years ago
MicroStation Programming
MicroStation Programming Forum
Setting TagElement Values c#
Chris Fraser
Hi, I am writing a addin with C#, I have been able to add tags to elements with code with : Bentley.Interop.MicroStationDGN.TagSet newGenTagSet = app.ActiveDesignFile.TagSets.Add("SomeTagSetName"); and then //add the tag set to a element someElement.AddTags…
over 10 years ago
MicroStation Programming
MicroStation Programming Forum
[V8i c#] Is there a API to import the level library
thangaraju s
Is there a API to import the level library Problem: Is there a API to import the level library which is correspond to the below key-ins?? MicrostationDGNApp.CadInputQueue.SendCommand("LEVELMANAGER DIALOG OPEN"); MicrostationDGNApp.CadInputQueue…
over 10 years ago
MicroStation Programming
MicroStation Programming Forum
Re: Access all the opened design files in c#
Robert Hook
As Jon indicated, the MicroStation VBA environment and help are a great resource to get familiar with and utilize for testing/prototyping your code. Doing so provides you documentation, a fair number of samples to get started, and an environment that…
over 10 years ago
MicroStation Programming
MicroStation Programming Forum
[V8i C#] C# code to .ma
Anne Vomm
Hi. I would like to know if it is possible to compile C# code to .ma files. I can compile and use the .dll files but can't seem to find anything about .ma files. If it is possible, could someone post steps for it. Thanks
Answered
over 10 years ago
MicroStation Programming
MicroStation Programming Forum
[V8i c#] Issue with the text font change using API
thangaraju s
Problem : 1. If we change the font using api 'currentElement.AsTextElement().TextStyle.Font' , Redraw & Rewrite the element. There is a displacement in the text location. if we use the key-ins, or open manually and change the font. There is no…
over 10 years ago
MicroStation Programming
MicroStation Programming Forum
<
>