Quantcast
Channel: MicroStation Programming Forum - Recent Threads

[MS 2023 C#] path.GetHeadElement().DgnModel.IsDgnAttachment always false?

I'm using path.GetHeadElement() to identify elements in a DgnElementSetTool.element.DgnModel.IsDgnAttachment is false eventough the element identified is a reference. Why is that?I need to get a...

View Article


Image may be NSFW.
Clik here to view.

Creating Centerline of shape block and generate linear pattern using VBA

I am using OpenCities Map Ultimate connect edition update 16.I am trying to create linear pattern programmatically (using VBA) after selecting a block shape.When i select block (left block in image...

View Article


Unable to implement DItem_IconCmdRsc attributes in CONNECT

Greeting,I am migrating v8i code to Connect. Here i am not able to generate rsc for DItem_IconCmdRsc. but in v8i it is working fine.below are the code.DItem_IconCmdRsc ICONCMDID_section = { NOHELP,...

View Article

Deleting an element by color

Hello ! I'm trying to do a simple task: select the elements, then run the script that deletes the elements with color 1 from selection, the remaining selected elements are to be grouped. Since I never...

View Article

Image may be NSFW.
Clik here to view.

Change reference: Making a combo of posts and wonders if one can tie the bag...

I have read through several posts of renaming and changing references, and they are all almost there.I am looking to get the path from the old file reference and using it as base reference for the...

View Article


Grouping elements based on properties

Hello, just received a new task: group elements in selection set as Named group if they don't have a property of Color "1".I've made my template which looks logical to me, but still it does not group...

View Article

[MicroStation, C#, Managed DLL] Unable to remove referenced schemas

Microstation CONNECT 10.17Microstation SDK 10.Net Framework 4.8.1I am attempting to code a Managed DLL (C#). When looking at the SDK API (MicroStationAPI.chm) it indicates that ECSchema has a member...

View Article

Looking for a VBA sample script to move all elements of a DGN by x,y,z (to...

Dear all, I just start to evaluate the latest Connect Edition and new to VBA in Microstation 2023. Before converting the DGNs into an Echange Format I need the DGN in an well defined coordinate and...

View Article


Image may be NSFW.
Clik here to view.

[MStn CE / 23] How to list available "text favorite providers"?

Hi,is there a way to query functions (providers), using any language/API, available to be used in Text Favorites? Or even for every available function to obtain available content?The list depends on...

View Article


Image may be NSFW.
Clik here to view.

new level creation

Hello guys,I have been trying to create a new level in OpenCities Map CONNECT edition (version 10.16.00.60) and I am unable to set the level color in section "byLevel" to a correct value, right know...

View Article

Close popup without selecting item

Within one of my MDL applications, I got a dialog with a ListBox with multiple row selection. When the user actives the mouse right button, a popup menu is shown and the user can select one of its...

View Article

Optimising VBA code that copies element multiple times

Hi, I'm writing the code that copies cells multiple times.The simplified example code below. It copies selected element 10 times.Sub copySelectedElement() Dim el As Element, ee As ElementEnumerator,...

View Article

VBA code Help "CadInputQueue"

I'm a beginner, just learning,  This may be simple but I'm not finding information on commandsI need to do code for change level, color, line type and line thickness, then place line.My current code...

View Article


Microstation 2023 C# Addin not loading key-ins

I'm attaching a small project that I for whatever reason is not loading key-ins, I have tried everything it seems but something is still keeping it from working. I also have a properly working "decent...

View Article

VBA macro run at end of session, not file

MicroStation 2023 - v23.0.1.44-MS2023 VBAI am looking for information on how to run a VBA macro at the closing of the MicroStation session. I already have the code to run at the open/close of a dgn...

View Article


Image may be NSFW.
Clik here to view.

MC Custom Line Styles can't select when place line

example: Pneumatic.The Pneumatic point  cell had the "//" at .125, the Pneumatic stroke 4.0-2.0-4.0-2.0, The Compound was the Point and  Default solid line linked. I saved and copied into the Symbol...

View Article

Excel GetObject finding the open instance of MicroStation running at the time...

I am struggling with Excel GetObject finding the open instance of MicroStation running at the time of executing a macro. I have referenced my DLL using:Declare Function mdlModelRef_loadReferenceModels...

View Article


[MicroStation 2023 23.00.02.071 C#] Question about MDL vs. C#

Hi,I am currently working on creating an addin in C#. As a basis I want to use the logic of an old MDL source code from a colleague.This MDL is only executable in Microstation V8i. However, we now need...

View Article

Need to Drop a Cell using CONNECT 2023 C++ Programming

mdlElement_read(&el, ACTIVEMODEL, filePos); mdlElmdscr_new(&el_desc, NULL, &el); DgnPlatform::ElementHandle eh(el_desc, true, false); DisplayHandlerP displayHandler =...

View Article

Image may be NSFW.
Clik here to view.

Accessing Excel sheets via Microstation Connect (on Windows 11)

Hi. Up until recently, I could access Excel sheets by using the snippet below, no problem (Windows 10). I had to change my laptop recently and it came with Windows 11 installed. And all of the sudden,...

View Article

[CONNECT] Get VBA with Dialog box to Open on the Same Screen as the...

We use many different VBA applications as part of our workspace. we also generally work with multiple monitors, but may not be using multiple MicroStation Desktops. Some of these use dialog boxes and...

View Article


[V8i, ORD] How to prompt the user to click an element, reject them from a...

If there's an easier way to pull this all off, I would absolutely love to know, but because I was looking for so long for a way to do this, I figured it's worth sharing. It was a really big hurdle to...

View Article


Image may be NSFW.
Clik here to view.

Microstation SDK - where do I find it?

I'm told that Microstation SDK is provided with Microstation (and presumably ORD), but I don't see it on my list of Bentley products. Where do I access it? What do I do once I have it?

View Article

mdlVec_subtract() vs mdlVec_subtractPoint()

What's the difference from mdlVec_subtract() / ... add()  and mdlVec_subtractPoint() / ... addPoint() ? they look like the same

View Article

Image may be NSFW.
Clik here to view.

[CONNECT] Element deletion

Hey guys,I have a problem with deletion of elements in CONNECT v10.16.0.80 when using old mdl API (I have to use this API because of the old code base...)I create a new level in connect called "TEST"...

View Article



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>