Hello everyone,
I'm facing an issue while attempting to create a new DGN file directly within ProjectWise. I've successfully managed to create DGN files on my local drive using different approaches. However, I'm struggling to replicate this process…
Hi Community,
I am a beginner in Microstation API programming, I have gone through some of the resources available and am able to create my first MDLCommand in .NET C# which does a set of tasks in the Microstation.
I still have some doubts on the…
Hi I'm trying to implement a feature to "isolate" elements in drawings. (like on explorer form) my plan is next: 1. Create a display rule
foreach (var elementId in elementIdToIsolate)
{
var elementsConditions = $"element.DgnElementSchema::GraphicalElement…
Hello all,
I want to iterate over all Itemtypes in a all Libraries but I get an Memory Exception in the second iteration in following Code:
try
{
ItemTypeLibraryPtr itemTypeLibrary = ItemTypeLibrary::FindByName(libName.c_str(), *ISessionMgr…
I'm following the steps to create a new MDL addin using C# and I'm having an issue with getting the commands.xml to be recognized.
VS 2019 (recommendation says for the below version to load VS2017 or higher for .NET programming) Microstation CE 10.15…
Hello all,
I am practicing DgnElementSetTool
So far I am able to use _OnDataButton() to place a element. I have the UI box pop up with start of command and could modify the element before I place it with a click. I use _OnDynamicFrame to show effect…
Hello! I work in Microstation vi8 and trying to call an MDL function (mdlKISolid_minimumDistanceBetweenEntities function) in MVBA, but it return "0". Could you help me to solve this problem? Maybe there is a mistake in types of variables. My code below…
Actually, we are having the encryption logic at the below function,
SystemCallback::SetFileSaveFunction -->DgnSaveReason::UserInitiated -->DgnPlatform::ProcessChangesWhen::AfterProcessing
In setSavefileaction system callback function, we were not…
We need create unique menu to the other users the ribbon customization tab with group of labels. while group of labels or label button Clicked then the event connected to our custom dialog(*.rc) to load/display in the MicroStation main window.
How do…
I am facing some issues in Successful loading MDL apps on Startup.
I have modified code as below and loaded MDL app.
if (strcmp(l_str_argument.c_str(), "MS_INITAPPS") == 0)
{
mdlSystem_enterGraphics();
mdlInput_sendCommand(CMD_DIALOG_OPENFILE…
hello, i'm studying how to generate shadow of a solid exposed by solar light.
i have got the interface of the default solar, and createed a new one to adjust some parameters, while i cant find the shadow in dgn file.
i guess the shadow isnt rendered…
Hi All,
I have some legacy VBA code from v8i that I'm trying to port over to the CONNECT versions - it's using a CExpression with a pointer into the referenceFile struct for a specific reference:
Private Declare PtrSafe Function mdlRefFile_getInfo…
Hello,
I have a problem while retrieving the colors of the different geometric parts of an element.
For parsing the geometry I'm using the IElementGraphicsProcessor to process the element and retrieve the different graphic primitives types (SolidPrimitives…
Dear all, good day.
I have a cell containing an element of type Surface(18).
I cannot understand how to navigate through its subelements.
Here it is visual basic code:
Public Sub NavigateThroughSurface( ByVal oApplication As Bentley.Interop.MicroStationDGN…
Hi,
Is there a way to get all the class name types that identify elements? Typically for gathering the class name I'm using the following commands: for (DgnECInstancePtr instance : ecMgr.FindInstances(*scope, *ecQuery))
{
DgnElementECInstanceP elemInst…
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…
Hi Jon,
Coincidentally, I'm having the same strange problem today. The MsdError number given in Werner's error messagebox snapshot (repasted below) does not appear to be listed in the MsdError Enum listing in the MicroStation VBA Help file. Complicating…
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(…
Hi,
I'm currently working with mdlKISolid_getSurfaceElements() in order to split a Smart Solid. But it is throwing a stack overflow exception and finally crashes.I guess this is because of many BSpline curves present in that solid. Can someone help…
I am working on DGN V8 APIs.
Here I am stuck to fetch the corresponding .drv file record data for a DGN Element.
What are the APIs that can be used to get this data from .drv file?
Hi All,
I have a Bspline Surface with a set of boundaries whose clockwise sense is set to "Solid". Is it possible through MDL API to get the equivalent set of boundaries on the same Bspline Surface whose clockwise sense is "Hole"?
Thanks &…
Hi all,
I started doing MDL programming about 20 years ago but for the last 5 - 6 have only touched it "once in a blue moon" to update for some clients apps that still run on "old" MicroStation, pre V8. One of my clients now wants one of these apps…
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…