Bentley Communities
Site
Search
User
Site
Search
User
Product Communities
Developers and Programming
MicroStation Programming
Cancel
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Sign In
All tags
MicroStationAPI
.NET
Boost
C plus plus
c#
C++
Configuration Variables
Element Description
element handler
event-handling
Font Manager
FontManager
Geographic Coordinate Systems
IDrawGeom
IViewMonitor
IViewTransient
MDL
MDL programming
MDL V8i
mdlScanCriteria
MDLSYSTEMCallbacks
MicroStation V8i c
Programming
Transaction Manager
undo
ViewContext
mdlScan_xxx using C++ API?
Scott Ferwerda
I'm needing to search for certain element types in the active drawing. I see the sample code for cell libraries that uses the mdlScan_xxx routines. But I can't find an equivalent in the C++ API. Is there something newer / better / shinier than mdlScan_xxx…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
User Keyin while a Primitive Command is Active
Jon Summers
MicroStationAPI equivalent of mdlState_setFunction (STATE_KEYIN, keyinFunc) With MDL we can write mdlState_setFunction (STATE_KEYIN, keyinFunc) and in callback function keyinFunc obtain whatever text the user has keyed while our command is active…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Change the design file from another thread (C++, V8i)
Tuspe
I'm running a TCP server that communicates with another program in a second thread (boost). I'm trying to open a new design file from that thread by using the next command but it fails with an access violation. Opening files works from the main thread…
over 11 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
ElemHandle - MicroStationAPI
DanPaul
I am now little bit interested in ElementHandle class from API since I need to get some information about element as fast as I can. The main my issue is that I am processing sometimes more than one million elements - for now only for reading, but not…
over 11 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: VS 2008 & MicroStation API
Jon Summers
Ian: Does this just mean that I cannot use VS2008 MFC objects within the dll? That's my understanding. I'll be happy to be corrected — then I could use VS2008 as well. If you want a user interface, then you can use either MDL dialogs…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: Migrating toolboxes to VC++
Jon Summers
MDL & the MicroStation API Micheal: I currently have a toolbox that houses over 180 applications written in MDL. Recent comments on this site lead me to believe that I should think of porting the application over to VC++ using the MicroStationAPI…
over 14 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: Crash when getting fonts using the new C++ API
Jon Summers
Piers: I thought I'd have a go at using the new C++ API in the MicroStationAPI . We built a Viz Studio project to wrap FontManager. See attached source. Regards, Jon Summers LA Solutions
FontManagerVC2005Project.zip
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: FontNumMap::FindFontByName problem
Jon Summers
Pieter Andries Smit said: fp = fontmap->GetFont( 3 ); // works fp = fontmap->FindFontByName(&fontnr, L"ENGINEERING");); // not found The font API seems to be an evolving smörgåsbord. I ran into your problem some time ago, and concluded, with…
over 12 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: Getting ViewContext from IViewManager
Jon Summers
Arpan: void MyViewTransients::FileAddPoint (const DPoint3d& point, DgnModelRefP modelRef) { … } If you've copied the AddPoint method from the example I posted, you'll need to add code to compensate for the model's global origin…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: error C3861 : 'DrawLineString3d': Identifier not found.
Jon Summers
C++ Namespaces Unknown said: error C3861 : 'DrawLineString3d': Identifier not found. Examine the MicroStationAPI documentation carefully. Note that DrawLineString3d lives in namespace Bentley::Ustn::IDrawGeom . To use an object in a namespace…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Auto Save with no changes?
Scott Ferwerda
I'm hooking the SYSTEM_FILE_SAVE event (using mdlSystem_setFunction). I'm seeing something unexpected - frequently, when the user opens a DGN file, I'll see my callback fire immediately after opening completes. I would think there would be no changes…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: Need mdlFontMgr_isTrueTypeFont information
Jon Summers
MDL Font Manager is Deprecated: prefer the MicroStationAPI dhoang: In the MicroStation V8 MDL Function Reference help, there is a function named mdlFontMgr_isTrueTypeFont … The entire MDL Font Manager API is deprecated in MicroStation XM and…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
MstnPrimitiveTool + CBToolSettingsDialog
DanPaul
Hi MFC programmers... I'm trying to use MstnPrimitiveTool + CBToolSettingsDialog together, but always I try to unload tool while dialog is open, MicroStation falls down. Most likely I have made something wrong. Well, I have a class inherited from…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: Problem with mdlScanCriteria_setRangeTest when finding elements in cells
Jon Summers
ChildElemIter Revealed! for (ChildElemIter child (eh); child.IsValid (); child = child.ToNext ()) processChild (child.GetElementRef()); Another gold nugget that demonstrates the MicroStationAPI. Thanks, Keith! Regards, Jon Summers …
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: Fixing code for lineLength for new API
Jon Summers
MicroStation API is C++ Abeesh: TextStyleManager::GetActiveStyle()-<GetProperty (TextStyle_LineLength, linelength); What Abeesh omitted to mention is that the TextStyleManager is part of the MicroStationAPI C++ libraries. It can't…
over 14 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: 300,000+ transient elements
Jon Summers
MicroStationAPI iifuzz: How could I implement this using MDL + a DLM (C, not C++)? I'm afraid you already have the answer you don't want to read, from the horse's mouth (a turn of phrase — I don't think Mark is a horse). Mark.Anderson…
over 14 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
IViewTransient: snappable geometry
Jon Summers
Snappable Geometry with IViewTransient Brien Bastings: Sure, you can make an IViewTransient snappable. To put things in perspective, when you create a TransDescrP using the mdlTransient_api you are just using an IViewTransient that MicroStation…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: DRAW_PURPOSE_XXX combination
Jon Summers
Arpan: How should I use the combination of DRAW_PURPOSE_XXX to achieve my results? One result of our previous discussions on this topic is a View Transients Example project. This is a complete example that in many ways is similar…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: mdlFontMgr_traverseAvailableFonts gone?
Jon Summers
MicroStation API Alexander: The application is completely writen in MDL. Bentley have given a few hints over the past year or so about C++. Developers should consider moving applications to a DLL written using C++ (i.e. Visual Studio). …
over 14 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Describe Element
Jon Summers
Describe Element We've posted a brief article that shows how to obtain an element description using the MicroStationAPI Handler class. Regards, Jon Summers LA Solutions
over 12 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: IViewTransient: snappable geometry
Jon Summers
Brien: In my example the dummy element was a zero-length line at the origin. The transient I created for it specified 0 for the view flags so its transient won't get processed by the element based transient list and only my IViewTransient displays…
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: Bentley::GeoCoordinates namespace usage
Jon Summers
Bentley.MicroStation.GeoCoord.lib in V8i SS1 Daniel: The current MicroStation SDK is v08.11.07.172. Key library is missing. Note that the library is installed by the V8i SS1 SDK. It is not delivered with the first release of V8i. …
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: How to defer display of the element in MicroStation V8i ?
Jon Summers
MicroStationAPI Some view functionality seems to have moved to the MicroStationAPI in recent versions. I don't know which part of the MicroStationAPI is relevant in your case. Perhaps, for example, the IDrawGeom struct … MicroStation…
over 12 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Re: Georeferenced Reprojected reference file (attachment)
Jon Summers
You may want to take a look at the MicroStationAPI , which is the C++ interface. It provides MicroStation's Geographic Coordinate Systems technology. Regards, Jon Summers LA Solutions
over 13 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
Font Availability
Jon Summers
I've run into a problem with the availability of a font for text creation. I want to create a text element using, say, Times New Roman TTF font. If there is no current text placement that uses that font, then FontManager::FindFontByName returns…
over 14 years ago
MicroStation Programming
[Archived] MicroStation V8i Programming Forum
View related content throughout MicroStation Programming
More
Cancel
>