[V8i MDL] Element Range Tree
Range TreeThere's a comment in the MDL overview of ElementRef: another table of ElementRefs is the range tree, so you can also "look up" elements by range.Is the range tree attainable by published V8i...
View Article[CONNECT C++] Viewport::GetRotMatrix()
In DgnViewport.h there is this note by GetRotMatrix()://! Get the Rotation Matrix for this Viewport. The concept of a Viewport's Rotation Matrix is somewhat limiting since it does not//! support...
View Articleis there a guide for creating custom tools?
V8i SS4Subject line says it all. I need a beginner's guide to creating custom tools and task panes.thanks
View Article[CONNECT U7] Icons for Ribbon Customizations
I'm performing some ribbon customization and I've added in a new Workflow with a few Tabs. In the Tab I've added a Group, and to that group I've added a Button. Once I set the various parameters for...
View Article[CONNECT C#] Load(String[] commandTail, IntPtr mdlDesc) NullReferenceException
Microstation Connect Edition update 6Windows 7 SP1Visual Studion 2015target framework: 4.6.1Hello Everyone,I have developed testing C# AddIn but met a problem loading it. I have been searching through...
View Article[CONNECT U7] Retrieve text string representing Drawing Scale
Is there any "built-in" way to retrieve the current Drawing Scale as a string? For example, I'd like to be able to get "Full Size 1 = 1" when AnnotationScale is 1. I know I can write a function to...
View Article[CONNECT C++ U7] Unloading a Native App
I've been developing a Native Code C++ tool. I code a little, then test a little. My workflow is to use the Keyin Browser to "mdl load test" (to load the tool); "test dosomthing" (to execute the tool);...
View Article[CONNECT C++] How to Determine Distance of a Point on an Element to it's Ends
Working with a DgnElementSetTool tool, I'd like to determine which end of a linear element (line, lineString) is nearest to the element's identifying datapoint. I'm using CurverVectorPtr to ensure the...
View Article[v8i MDL] Can I use 'new' instead dlmSystem_mdlMalloc to dynamically allocate...
Hi AllI've been using the 'new' operator to allocate vectors as follows: DPoint3d *pnts = new DPoint3d[_size_]; ...........
View Article[v8i MDL] Can I use 'new' instead dlmSystem_mdlMalloc to dynamically allocate...
Hi All!I've been using the 'new'operator to allocate vectors as follows: DPoint3d *pnts = new DPoint3d[_size_]; ...........
View ArticleKey-in for Element Selection or Powerselector
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 automaticallySCRIPT:set weight toggleselview...
View Article[MS CE] How to check if model has any graphics elements?
I want to check if the model has any visible entities but can't find good and correct methods.
View ArticleCompilation Error
Dear Firends,When compile the example code (basic). i got the following error. Please kindly help me to solve the error.Regards,Saravanan
View ArticleBentley or CAD specific databases?
Noticed over the years that there seems to be a lot of different 'databases' or data structures or engines that are used within the Bentley verticals.For example:Aecosim has 2-3 main 'databases' :Parts...
View ArticleEdit Dimension Element
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...
View Article[CONNECT C++] Resetting Active SnapMode in DgnElementSetTool
My tool requires the use of either KeyPoint or Intersection SnapOverides. I save the current SnapOverride in _OnInstall(). change it to either KeyPoint or Intersection (based on other tool settings)...
View Article[CONNECT C++] FractionToPoint()
I am attempting to find the tangent of a linear element at it's intersection with another element in a DgnElementSetTool. I can retrieve a CurveVectorPtr of the picked location, but I cannot figure out...
View ArticleMDL Syntax
Hello. New guy here...well, old new guy :DWas a MicroStation user for many years (many years ago) and took the one and only MDL programming course that was available at the time. Getting sucked back...
View Article[V8i C#] Setting model scale when attaching to sheet
Hi All,I'm generating an A1 sheet view of a model and having difficulties setting the scale. After running the below code and open the model in Microstation it is 1:1, not 1:250 as I want it. If I...
View ArticleToggle visibility of reference of a reference in reference manager (V8i)
Hi,I need to react on the toggle visibility event when I turn the visibilty of a reference within a reference on or off. I do so by catching the event "mdlSystem_setFunction(SYSTEM_REFERENCE_MODIFIED,...
View Article