Hi all,
I am new to MicroStation programming and need assistance with a specific task. I want to retrieve a text element from a provided point and use its value as a tag value. I have included the code that I have prepared, but it is generating a "Compile…
Using Microstation VBA, I am trying to read text at specific location. I have text placed in specific locations in dgn file that I now need to read. I do not want to read text at other locations. I defined a variable "dTxtLoc" as double and assigned a…
Hi, I can not figure out how to place a fence in C# on another model.
This is with Bentley Map 08.11.09.864
The process is :
1) Read the current fence information 2) Switch to another model 3) Place the fence in this model - same place as it was…
I am using microstation v8i ss4. I have created keyframes for animating (making the man model walk). After setting the keyframes, when I am defining the Actor path and orientation it is showing the following error. Can anybody help me out?
I have a very simple macro below that appears to be correct but for some reason the BorderMargins.X and .Y values do not change when the macro is run. Why is that?
Sub Macro1() Dim otext As TextStyle Set otext = ActiveSettings.TextStyle otext.BorderColor…
Micristation took a crash after which my Key-in scripts for setting the design file color quit working, both the VBA and Key-in's I think it is an MDL file needs loading
but unable to figure it out.
Examples of what did work:
1:25 PM 10/7/2018 Hili…
All,
I am using the below macro code to drop complex on cells in my dgn file. After running nothing is changed except the color of the cell. New to this object model and just hacking my way through. Any direction is greatly appreciated.
regards…
I want to get the user's Toggle AccuDraw coordinate system ( Toggle AccuDraw coordinate system through the shortcut keys such as T, F, V, S, etc. is not the ACS auxiliary coordinate system), change the Toggle AccuDraw coordinate system, and then change…
Hi All,
I am trying to use the below MDL API to get the data from a face. I have got this face with a smart solid using the API mdlKISolid_getFaceList(). I use C++ language.
mdlKISolid_faceData( KILOOP** loop , KIFACE** next , void** surfacePP …
Hello,
I currently am able to find and replace text using the following code in Notepad, utilizing the batch process command in utilities, version V8i:
MDL SILENTLOAD FINDREPLACETEXT,CHNGTXT CHANGE DIALOGTEXT
FIND DIALOG SEARCHSTRING OLD TEXT HERE…
Win 7 V8i, I have searched found the following but do not seem to understand
ActiveDesignFile.levels("Kerb Invert").UsingOverrideColor=False
And make sure you update the design file with:
ActiveDesignFile.RewriteLevels
Same thing with .UsingOverrideLineStyle…
I found the mvba command for opening the Element Information (CadInputQueue.SendCommand "MDL KEYIN ELEMENTINFO ELEMENT INFO DIALOG")
would like to have key-in do this for me or somehow use the activate it via the vba command like this (vba execute ActiveSettings…
Hi all,
I'm new to microstation VBA coding and would like everyones input on my problem. My VBA code in Excel does the following
1. Opens and creates a microstation DGN file named "DrawPoints" 2. Iterates through coordinate values in excel sheet and…
I am trying to write what I thought was a simple program to add elements to a named group if they meet the criteria I designated. However when I go to add an element that is in an attachment to a named group I get an error (Error Number -2147219301, Error…
Dear All,
I want to stretch the existing linear dimension element between two points. How to accomplish this by using C#?
For line element, we have 'modify vertex' method. Similarly, is there any inbuilt method/option is available to modify linear…
I use a Key-in in script file when it runs the element selection tool (powersel) is gone so I have to reload. In the VBA routines you can have it reloaded automatically
SCRIPT:
set weight toggle selview all update all
Works fine, but have to reload…
Hi Experts,
I am new to Microstation Application(C++) development, and i have no experience about the make file configuration, and would like to write, compile and link code with just Visual studio, so my question is whether we can avoid to use Miscrostation…
Hi all,
I am new to Microstation development, and recently i want to develop an extension which is to "read" DGN file data(geometry, properties, reference...), i am not familiar with the MDL development environment( especially about the make file…
Hi Everyone,
I am trying to write an MDL in C/C++ that should attach Meta-Data to Elements in an external MDB-Database.
I wrote already Code to make sure that the correct Database (DB) is attached, but now I have Problems how to attach the created…
This may be the wrong group but I figured you guys would know the answer.
My office is involved in some litigation over an old project.
The Lawyers are asking us to give them the "metadata" for the project in question...
Is it even possible to export…
I have a vba that attaches a reference with a logical name as "BORDER". The reference dialog box shows the attached reference with logical name as "BORDER". I will then run a second vba that looks for reference logical name as "BORDER". The second vba…
Hi Jan/Jon,
Thanks for the responses, I should have been more clear originally, but here is more information. I'm having some difficulty with the quoting, so I hope this comes across formatted ok.
I recommend to read and follow MicroStation Programming…