Lock a Level on the pull down, via Key-in or VBA
I have a tool bar button that brings on Level 5 and sets the various colors, weight and styleSub ActiveLayerSet5()' 110413 - Changed command, removed Dim commands and the Command...
View ArticleBug caused BY the mdlState_startPrimitive function
HelloWe are a company that uses MICROSTATION software to deploy our own solution “Dkmètre” that we have developed with the C and MDL languages. One of the functionalities that Dkmètre offers is...
View ArticleScroll through named fences in a Design file
Good day,I was wondering what kind of code I would need to access MicroStation named fences.I have created a program that counts cells in a particular active cell.I have saved a number of named fences...
View ArticleHow to check dimension text height
Hi, I have to run a check on a set of drawing to check dimensions. The drawings do not have a dimension style (style:none) and some of them have the text height taken from the text style, others have...
View Article[v8i VBA] Error in finding last row in Excel using VBA
Hi All,I think this is bit of Excel related question than mvba...but any help on this will help me.what I want to do is create error report in an Excel sheet using VBA. below is the sample code which...
View Article[V8i C#] IModelChangeEvents
Hello!I have created C# .NET MicroStation Addin. I need to have some things done before model is deleted so I try to use Bentley.Interop.MicrostationDGN.IModelChangeEvents.I have written...
View ArticleDrop a LineStringElement to a series of LineElement(s)
Hi all,I have a that has lineStrings in it. I want to convert all the line strings into lineElement(s) corresponding to the constituent lineStringElement segments lengths and positions. I have done it...
View ArticleExporting Named fences and Models to new file
Good day.I have a file that I received from a third party who uses a different seed file to me, and i need to use a particular seed file with it.So I opened a new file, with the proper/desired seed...
View Article[v8i VBA] LocateCursor while ILocateCommandEvents_Dynamics
Is it possible to have the locate-cursor-style shown while the ILocateCommandEvents_Dynamics-Event is running?I would like to let the user select elements. After selecting the frist one, the...
View ArticleMicrostation XM Edition Bentley Microstation DGN 8.9 Object Library missing...
Good day all.I have access to MicroStation v8i SS3 at work, but at home I use XM editionIn SS3, the Fence object has a .GetFenceNames member, which allows you to get an array of the names of the...
View Article[V8i C++] mdlAssoc_createOrigin()
I'm looking at mdlAssoc_createOrigin() in an attempt to create an association between a line and a cell. The line is written into the model just prior to the association attempt:ElementRef...
View ArticleDe-compile old MS Basic file with NO bas file
I have an old Microstation Basic file that I am trying to decompile to fix the errors and move it forward to V8i. I don't have the bas file to go with the ba file. Can the ba file be decompiled by...
View ArticleSelect all elements with handles Microstation V8i
Hi Guys,I just want to select all elements in dgn displaying their vertices as shown in the figure.Problem is i can't able to display the (dgn)element vertices while capturing the (tool)element using...
View Article[v8i MC] mdlRefFile_beginAttachmentToModel default attachment scale setting
I am using mdlRefFile_beginAttachmentToModel and it is attaching my reference at 100:1 scale. When I interactively attach a reference it defaults to 1:1 (which is what I desire). How do I set the...
View Articledockable form question
Hi, I am trying to learn how to create addins in C# and so far I've been able to create a dockable form. The question I have is: how can I have only one instance? Because if I run the keyin command...
View ArticleMicroStation V8i re-using file positions after undo
Win7-32, uStn 8.11.05.17 and 08.05.00.64hello world,Has anyone come across different behaviour between MicroStation V8 and V8i as for Undo and file positions, like me?Example: V8:place line: filepos is...
View Article[v8i] default reference attachment scale setting
How do I set the default reference attachment scale (i.e. 1:10, 1:1, etc) without manually having to change it every attachment?
View Article[V8i C++] using FileOpenDialogPreprocess() hook to save a DWG file as DGN...
I've got a callback function for FileOpenDialogPreprocess() where I trap the "Save-As" dialog. How do I force a .DWG file (R2013) to be saved as a .DGN format file? I've tried setting...
View Article"Select by Attributes"-select by text node
I have a file with several multi lines of text - 14'(top line) CHEESE (SECOND LINE),8'(top line) CHEESE (SECOND LINE),14'(top line) FISH (SECOND LINE)How do you use Select by attributes Select by text...
View Article[V8 C++] CacheElem -- what is it for?
What is the purpose of the CacheElem class? Here's its definition from <dgncache.h>...struct CacheElem : public IElementRef {private: virtual void MakeClassAbstract() = 0; };It's an...
View Article[V8 C++] DgnCacheIterator Example?
Is there an example of using a DgnCacheIterator?I'm puzzled because the default constructor (see<dgncache.h>) sets its state to iterate non-model elements. I don't see a method to set its state...
View Articleselectseries3 variable problem
hi ,i am trying to link the workspace/users to folders inside of users forlder. eg workspace/users/bob..... workspace/users/bill ect.does anyone know the variable to set so it picks up the current...
View Article[V8i C++] Using IElementState with MstnElementSetTool class
I'm trying to use an example MstnElementSetTool posted by Brien Bastings that demonstrated the use of a IElementState derived class to hold additional info on the "picked" elements. In the original...
View Article[V8i MDL] mdlKISolid_closestPointOnBody
Hello,I want to get the smalest distance from a Point to a SmartSolidElement.In the API is the function int mdlKISolid_closestPointOnBody ( DPoint3d* pointOutP , KIENTITY** entityOutPP , double*...
View ArticleTag Extraction to Excel
Hi everyone just wondering if i can get some help on a code for extracting tag text to excel.The code I have used is out of the Book Learning Microstation VBA by Jerry Wintersthe code is listed below,...
View Article