I am writing an application for MicroStation and ORD under c# I plan to cache specific data to improve the application's startup speed following a session involving a file. In light of this, having access to a file hash would be extremely helpful. Does…
I want to be able to read this dgn file, but when I try to load the Bentley.DgnECPlugin3 plugin, it returns null assembly , in addition to when I try to run the code it throws me the following error
I currently have MicroStation CONNECT Edition installed…
Hi.
I need to change the display style of a element to wireframe.
My goal is that view and element have different display style.
Do anyone know how to do change display style of element in C# API?
Thank you.
Hi,
I would like to loop through all cells from one dgnfile and copy them to another dgnfile.
I now have a script that opens a seedfile, so I have two dgnfiles open. One source dgn and one target dgn. The target one is a 2D seed file, because I just…
Hello,
I need to convert ellipses with different Primary and Secondary Axis to multiple arcs with the same Primary and Secondary Axis. In Microstation I can do that using Facet tool but I need to achive the same result doing it programatically.
…
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…
I am creating a C# .Net app where I want users to be able to convert a .dgn file to .pdf. Could anyone point me towards some documentation, tutorials or code examples that could show me how to achieve this?
Which .dll's are required as references? What…
Hi
I just started with MicroStation so forgive me my ignorance. ;-). I have C# Bentley.MstnPlatformNET.AddIn with WPF form that is displayed through "mdl load xxxx" I need to be able to click on drawing (.dgn) and read element id property that is selected…
Hi All,
Looking for some advice here on creating MDL commands that allow inheritance from a base class... Reason being I plan to build out a heap of classes that inherit / override methods from a "base" class, to avoid having to manually call these…
I am working on multiple reference files where I need to get the element Ids of the elements even if that reference file is not active. I am using the below code to pick elements. I am able to get elements that are from active reference file only, when…
Hi
Someone who can help me, would be greatly appreciated. Will try to explain in my poor English
Has developed a function for sending files with metadata (attribute values) from a document system to a ProjectWise data source. The ProjectWise data…
Hi,
I am new to programming Microstation, so sorry for the basic questions.
1) How do I select an object/element (E.g. A line or circle) using the user's mouse?
2) Is there any documentation? E.g. A functions list.
Thank you very much in advance…
Hello All
Using C# I can create item types and attach them to elements, but cannot see how to attach an set of ItemType properties to a dgn model?
I can get to the model as a DgnModel and ModelInfo
I can get to my ItemTypeLibrary and ItemType
…
Hi community,
we're upgrading C# code for OPM V8 SS5 edition to OPM CE (upgrade 9). The IBMECObject.GetDoubleValue method is no longer available and there are some others the gets values in specific unit (ie GetDoubleValue InMM, GetDoubleValue InUors…
Hi,
I am trying to initialize BentleyView application in my C# Class Library using 'Bentley.Interop.MicroStationDGN'. Following is the snippet I am using:
private Application application;
public Class1()
{
ApplicationObjectConnector…
hello,
I'm trying to show an isometric view of cell element with ElementPreview control into a windows form with no success !
Nothing is shown into the ElementPreview.
Here's my c# code extracted from my Microstation CE addin.
Can you please advice…
Hi,
I want to load an existing workspace. It already works with an existing workset.
using BD = Bentley.DgnPlatformNET;
using BM = Bentley.MstnPlatformNET;
// Load Workset
BM.Internal.WorkSpaceManager.ActiveWorkSet.WorkSetInfo.Name = myWorksetName;…
Hello,
I have a question. Is it possible to make a C# DLL usable in a VBA project and if yes, how?
We already tried with the following Link:
https://www.geeksengine.com/article/create-dll.html
But in that example you have to move a file in to…
After using ElementPropertiesSetter, the respective element is locked and cannot be unlocked in the MicroStation afterwards. Did I forget something?
public bool SetElementLevel(BDE.Element element, string levelName)
{
try
{
BD.LevelId levelId…
Hello,
I am attempting to "drop" the linestyle of a LineString Element using ElementGraphicsProcessor. Unfortunately, I'm only able to extract and add 2 of the 4 lines to my model. The method I'm using extracts the correct amount of geometry (Count…
Good evening,
I am looking for a method to expand a string of the form "$(MS_PROJECTDIR)testfolder\$(USERNAME).dgnlib" to its full extent.
In VBA there is the ExpandConfigurationVariable function to do that, but I can't find its counterpart in C#…