Bentley Communities
Site
Search
User
Site
Search
User
Welcome
Products
Support
About
More
Cancel
Browse By Tags
All tags
.NET
.dgn
.Net Basic mdl
.NET dotNET C# CSharp
.NET Microstation Programming
[V8i VB .NET MDL]
addin
API
API SDK programming
Bentley
Bentley Developer Network
C sharp
c#
C++
connect
CONNECT Edition
MDL
MicroStation
MicroStation Programming
MicroStationV8i
Programming
ProjectWise
ProStructures
VB.NET
VBA
Visual Studio
[CONNECT C++ and .NET] UnitDefinition.GetName ()
Jon Summers
Both C++ and .NET provide method UnitDefinition.GetName (bool singular, bool alsoStandard) . What is the purpose of arg alsoStandard ?
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT .NET] Disable 'No Workset Alert'
Jon Summers
My AddIn processes a list of DGN files. For each file, it uses Session.NewDesignFile() . In many cases, that pops modal dialog No Workspace Alert ... I want to eliminate that dialog so the list can be processed with no human intervention. In another…
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT UPDATE 15 C#] NotificationAdministrator
Damian Holubowski
Hello, I wanted to catch messages from notification panel of microstation. I can catch messages with green underline with AddIn.MessageCenterWriteEvent. But I can't catch message with red underline. I found NotificationAdministrator with description…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[C#, VB.net CONNECT Update 13] CreateDesignFile method causes an exception
Paolo Cherubini
Gents, I’m looking for solve an issue that occur in the following conditions: a WPF Microstation Connect AddIn developed in C# is running an external application (developed in vb.net) call the method Application.CreateDesignFile as follows: …
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT .NET] FindInstancesScope
Jon Summers
SDK example DgnECManagedEvents has this... public DgnECInstanceCollection FindInstances (ECQuery query) { FindInstancesScope scope = FindInstancesScope.CreateScope (GetDefaultModel(), new FindInstancesScopeOption ( DgnECHostType.All & ~DgnECHostType…
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT .NET] Get In-Memory Element from COM Impossible
Jon Summers
I want to get a .NET Element from a COM Element ... using Bentley.DgnPlatformNET; using Bentley.DgnPlatformNET.Elements; using Bentley.MstnPlatformNET; using BCOM = Bentley.Interop.MicroStationDGN; Element GetElementFromComElement (BCOM.Element oElement…
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
Hints for troubleshooting machine-specific issues / errors
Jesse Dringoli
Product(s): WaterCAD, StormCAD, WaterGEMS, SewerCAD, Hammer, CivilStorm, SewerGEMS, PondPack, Flowmaster, Culvertmaster Version(s): V8i, Connect Edition Area: Installation Problem What things should I check in case I understand…
over 1 year ago
OpenFlows | Water Infrastructure
OpenFlows | Water Infrastructure Wiki
[CONNECT .NET] CurveLocationDetail
Jon Summers
Using MicroStation CONNECT Update 15, I'm attempting to convert this C++ function to C#... size_t GetCloseVertex (CurveLocationDetailCR location) const { size_t nSegments = 1; if (ICurvePrimitive::CURVE_PRIMITIVE_TYPE_LineString == location.curve…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
Microstation V8I .NET exception after undoing dropped element
Lubo B
Hello! I´m getting .NET exception on Microstation V8I Selectseries 4 (08.11.09.867) [using bentley map 08.11.09.862] with strange behavior. It happens when I try to drop my complex elements (features). Of course to accept the drop operation, a window…
over 2 years ago
OpenCities Map
OpenCities Map Forum
[CONNECT .NET] Convert between DRange3d and ScanRange
Jon Summers
The MicroStationAPI provides functions that convert between a ScanRange and a DRange3d ... mdlCnv_dRange3dToScanRange() mdlCnv_scanRangeToDRange() I can't see an equivalent conversion method in the .NET API. Have I missed something?
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT .NET] How do I use DEllipse3d.TryCircularFilletBetweenRays?
Jon Summers
I'm writing C# code for MicroStation CONNECT Update 14. I would like to emulate MicroStation's Construct Circular Fillet command. How do I use DEllipse3d.TryCircularFilletBetweenRays ? Or, more accurately, how do I persuade it to behave as the documentation…
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT .NET] How do I use CurveVector.CloneWithFillets?
Jon Summers
How does CurveVector.CloneWithFillets work? Both the MicroStationAPI and DgnPlatformNet documentation are, as usual, enigmatic. There is no example delivered with the SDK. I wrote this test code. It creates a pair of intersecting lines... Then attempts…
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT .NET] CurveChain Conundrum
Jon Summers
I am using MicroStation CONNECT Update 14.2. I am coding a tool using the DgnPlatformNet and BentleyGeometryNET APIs. Wanting to experiment with the CurveChain class, I wrote this... CurveChain chain = new CurveChain (); To my astonishment, Viz…
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
C#.net - Fillet between 2 Dsegment3D
Manh Tran
how to create Fillet between 2 DSegment3d? and How do can I Chain all of them together inC#.net?
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT .NET] how do I Add a TextStyle to a DgnFile?
Jon Summers
DgnFile.GetTextStyles() returns a collection of text styles. How can I add new styles to that list and then assign the list to the active DGN file? There's no method like DgnFile.SetTextStyles(TextStyleCollection styles) that I can see.
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[MicroStation 10.14 C#] Create Note dimension element text
Mike Robertson
Referencing a previous post about creating dimension elements in C#: https://communities.bentley.com/products/programming/microstation_programming/f/microstation-programming---forum/112608/c-connect-how-to-create-dimension-elements I've been trying…
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT .NET] Create TextTable from Seed part 2
Jon Summers
Despite advice received elsewhere , I have been unsuccessful in my attempt to clone Paul Connelly wrote: Given your stated goal, CloneAsSeed() is what you want . I'm struggling. Here's a C# method that is supposed to clone a table seed... TextTable…
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT .NET] DgnElementSetTool.DoLocate
Jon Summers
DgnElementSetTool::DoLocate Method has three arguments. The third argument is int complexComponent . complexComponent is not well-documented. Does it take the same values as ComponentMode found in the MicroStationAPI?
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT .NET] MdlApplicationClass
Jon Summers
The MicroStationAPI provides mdlSystem_getMdlAppClass/mdlSystem_setMdlAppClass that inform how the app was loaded (USER, DGNAPP, etc) in one of the MdlApplicationClass enum values. I can't see a .NET equivalent in the MstnPlatformNET.
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT .NET] Problem starting .NET AddIn on earlier version of MicroStation
Jon Summers
I developed an AddIn using the .NET API delivered with MicroStation CONNECT Update 14.2. The AddIn works fine on my computer. When customer attempts to load the AddIn using MicroStation CONNECT Update 10, it fails. The full error dump is attached, but…
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
[CONNECT .NET] SelectionSetManager Events
Jon Summers
The MicroStationAPI provides event handlers for the SelectionSetManager class... void AddListener (ISelectionEvents *selectionListener); void DropListener (ISelectionEvents *selectionListener); The .NET API omits those handlers. Can I request that…
Answered
over 2 years ago
MicroStation Programming
MicroStation Programming Forum
"Accessing to the Path "c:\..." is denied"...unhandled exception - Microsoft .NT Framework message appeared when reviewing the Results grids in AutoPIPE, why?
Mike Dattilio
Applies To Product(s): AutoPIPE Version(s): ALL; Area: Grids Date Logged & Current Version Sept 2020 12.04.00.13 Problem: When trying to review the results grids, the following message appears: Why and how…
over 2 years ago
AutoPIPE
AutoPIPE Wiki
"Object reference not set to an instance of an object" - Microsoft .NET Framework message appears when using OPIM and AutoPIPE
Mike Dattilio
Applies To Product(s): AutoPIPE Version(s): ALL; Area: licensing Date Logged & Current Version Sept 2020 12.04.00.13 Problem: The following appears when trying to use AutoPIPE and OPIM to modify a stress isometric…
over 1 year ago
AutoPIPE
AutoPIPE Wiki
"Microsoft .NET Framework".. messages displayed in AutoPIPE
Mike Dattilio
issues related with similar dialog headings: Unhanded exception... Accessing to the Path "c:\..." is denied Unhandled exception... Object reference not set to an instance of an object Unhandled exception... Exception of type "System…
over 2 years ago
AutoPIPE
AutoPIPE Wiki
[CONNECT .NET] How does MicroStation find assemblies?
Jon Summers
My .NET AddIn uses a third-party assembly Newtonsoft.Json . If you need to read or write JSON files, it's a very useful addition to your toolkit. If I build my app as usual, then load and run it in MicroStation, I get an error: 'Cannot load Newtonsoft…
Answered
over 3 years ago
MicroStation Programming
MicroStation Programming Forum
<
>