Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Browsing all 7260 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

[CONNECT C++] Report Linear Elements

When I write code using the MicroStationAPI I can analyse any linear element using the ICurveVector API.  If I want to measure the length of, say, a line-string or a complex string I can obtain it...

View Article


Connectivity of Microstation to Access Database

HelloAbout 10 years ago I developed code embedded in Microsoft Access Database using the instruction shown below which effectively made Microstation a subset of Microsoft Access Database. I used the...

View Article


Image may be NSFW.
Clik here to view.

[CONNECT C++] Report Column displays 'TotalLength' from Complex String, Line...

The following code adds two columns to a Report.  The first shows the Total Length property of Complex String elements, the second shows the Total Length property of Line String and Line...

View Article

[CONNECT C++] mdlElmdscr_intersectShapes

mdlElmdscr_intersectShapes returns ERROR instead of MDLERR_NULLSOLUTIONS when the two shapes are disjoint in CE5.Regards,Patrice

View Article

Image may be NSFW.
Clik here to view.

VBA Interface Error

Don't know if this is the correct forum for this.  If it isn't maybe someone can point me in the right direction.  I do work for GDOT and they have a menu bar that references VBA macros.  Getting the...

View Article


[CONNECT Update 6] SDK is Available

I see that the SDK for MicroStation CONNECT is available, only 8 days after publication of Update 6.

View Article

[CONNECT C++] Item Type custom data

An Item Type property can take several data types, including custom...Data types for CustomProperty::Type: Boolean = 0, DateTime = 1, Double = 2, Integer = 3, Point = 4, String = 5, Custom = 6Can the...

View Article

[CONNECT] EC Schemas Cell Info

BaseElementSchema contains class MstnCellProperties that has several properties including CellName.  However, I don't see property CellDescription.  Is there such a property?

View Article


[CONNECT C++] How to avoid auto-loading of a buggy dll/ma ?

When MicroStation crashes due to a buggy dll/ma it always tries to reload the same program after restart.This is very time consuming and can end up in a constant crash loop.The only way i found is to...

View Article


[mVBA] Scale setting with OpenDesignFileForProgram

HelloI am checking  .dgn files with OpenDesignFileForProgram. One of the information i need to drag out is Scale Setting and check if its 1,1,1 or not (just need to read it). It seems I am only allowed...

View Article

Ribbon Sync event triggered by MDL LOAD key-in?

Hi,is there any sync event (similar to SYNCITEM_SystemEvent_ActiveModelChanged etc.) that is broadcasted when an application is (un)loaded?An idea behind this question is to have Visibility condition...

View Article

Ribbon search behaves weird for custom tools?

Hi,based on this discussion how ribbon search tool works with custom ribbon item or whether it's bug.Scenario / conditions:There is workflow with visibility condition defined, e.g. to evaluate whether...

View Article

Image may be NSFW.
Clik here to view.

[CONNECT C++] ReadAndLoadDgnAttachments() takes much time if reference file...

Hi,I have a model which references to many other files, but these files are all missing. (see the picture below) It surpreised me that ReadAndLoadDgnAttachments() takes almost 15 seconds.bool...

View Article


[V8i C++] Checking For Levels of Cell Elements

I want to iterate a cell element and return TRUE if a cell contains a certain level. Once I start iterating the cell and find a "hit" for the level, there is no reason to continue and iterate the...

View Article

[MVBA] Using Key Ins with OpenDesignFileForProgram

I need to process a dgn file using OpenDesignFileForProgram and need to use SendCommand or SendKeyIn to the file. (I am forced to use keyins as there is no VBA equivalent for keyin: ITEM DUMP)  Is this...

View Article


Attaching Database OLEDB in MDL-Code

Hi Everyone,I am trying to write an MDL that creates and attaches certain Attributes to new created graphic Elements into an Access MDB-Database. Therefore I want to make sure, before the creation of...

View Article

Image may be NSFW.
Clik here to view.

[CONNECT C++] How get level "Turn off" status?

Dear experts,I want to know how to get the level "Turn off" status by C++ API(non-MDL prefix API).LevelHandle::GetDisplay() seems not for this status.

View Article


Image may be NSFW.
Clik here to view.

GPArray::add() returns ERROR when reading a complex chain

HiI have a model with a complex chain. And it will go into following code when reading the model.case ICurvePrimitive::CURVE_PRIMITIVE_TYPE_InterpolationCurve: case...

View Article

[CONNECT C++] ChildElemIter not working on ElementDescriptor from ScanCriteria

I am porting my old v8i code to Connect and suddenly the code below is not working anymore. The code below will scan a certain level for element descriptors and I check if the type is a complex shape....

View Article

Image may be NSFW.
Clik here to view.

[MVBA SS3] .Range get 10 times of coordinates value

I'm going to zoom to selected element, I used the codes below:Sub ZoomTo(MyElement As Element) Dim MyView As View Dim TempPnt As Point3d Dim TempDistance As Double Set MyView = CommandState.LastView...

View Article
Browsing all 7260 articles
Browse latest View live


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