Bentley Communities
Site
Search
User
Site
Search
User
Welcome
Products
Support
About
More
Cancel
Browse By Tags
All tags
.NET
.NET dotNET C# CSharp
#MicrostationV8i
.dgn
.dgn V8
.Net Basic mdl
.NET Microstation Programming
[V8i VB .NET MDL]
ActiveDesignFile
addin
API
API SDK programming
Application Development
Basic .Net database mdl
beginner drawing geometry
Bentley Developer Network
bmake
C sharp
c#
C++
CSharp C# .NET dotNET
dotNET .NET C# CSharp
MicroStation
MicroStation Programming
MicroStationV8i
Programming
Visual Studio
[v8i c#.net] How to connect a specific instance of ustation.exe?
Philip Attisano
I am connecting to an instance of Microstation and processing the design file as below, but I don't understand how I can connect to a specific instance of Microstation if multiple instances of ustation.exe are running. The code below connects to an instance…
Answered
over 7 years ago
MicroStation Programming
MicroStation Programming Forum
MDL coud not Load by .cfg file
Subin ks
Hello, I have been creating a MDL addin for microstation using visual studio. I use a config file to automatically load the addin to MS while opening the DGN file. My problem is that i have already created another addin for another project and…
over 7 years ago
MicroStation Programming
MicroStation Programming Forum
[v8i vb.net] Fence.DefineFromModelPoints throws exception for incorrect parameter
Philip Attisano
I moved a piece of code from VBA to VB.Net. I have encountered a problem when attempting to define a fence. I get a run time error stating that the parameter is incorrect. This code worked perfectly in VBA, but after converting to .net it fails. I'm stumped…
Answered
over 8 years ago
MicroStation Programming
MicroStation Programming Forum
[.net addin] Infrequent problems with .id and .id64?
iifuzz
Very rarely we encounter a problem where when accessing an element by id/id64 we get an error .net exception that says "Bad element" followed by microstation crashing. I have not been able to reproduce this issue consistently on top of it being extremely…
over 8 years ago
MicroStation Programming
MicroStation 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
.NET vs MVBA
theGreg
Hi all, Sorry for the naive questions, if they have already been answered on the forum, I am unable to find answers to this question. If they are answered already, please point me to the thread. I would like to know a few things about .NET and MVBA…
Answered
over 9 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
Docktoolbar
dmoysie
Hi, does anyone have a AddIn example they could share for a docktoolbar. I can get dockpanel working fine, it docks undocks etc. but the Docktoolbar just sits there not docking at a top or bottom tool bar. TIA Dave
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
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
How to Add Reference Files Programmatically
Jedrick Juinio
Hello. I'm new to Bentley Communities Do you know of a solution on how I can attach reference files programmatically in MicroStation. I'm using Visual C# 2005 as the programming language. This question was solved in 2011 in the link -- > http:/…
Answered
over 9 years ago
MicroStation Programming
MicroStation Programming Forum
Starting Microstation V8i SelectSeries 2 from C#
Andrew_Laing
Heyas all, Just another .NET Developer moonlighting as a drafter. While in the process of validating V8i SelectSeries 2 for Deployment across my group, I noticed that the Commands I use to start Microstation up no longer seem to work the same way they…
over 12 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Visual Studio alternatives
gelswick
After getting sticker shock from reviewing the current pricing structure of VS 2010, can anyone recommend C# compiler alternatives to use with the MS SDK. Was going to go with the 2010 Pro edition until I found out it is only a one year license. Charles…
over 12 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Can you detect a missing .NET Addin (MS_DGNAPPS)?
Trevor Watling
Hello, Is there a way to detect or flag when an MDL / .NET addin cannot be loaded? I have a .NET addin that I have created in C# using VS2008. I wish to have it load automatically when a DGN file is opened and I have achieved this by including the…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
C#: Locate failed when selecting an item in an Attachment
Lele
Hi, In csharp I created a class that implements the interface ILocateCommandEvents to select items from the drawing, but I had problems when I select an item that belongs to an Attachment: Locate fails. Thanks --Lele
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
<