• [CE MDL/C++] Problems with mdlElmdscr_stroke

    EvanH
    EvanH
    Hi I want to stroke a complex chain element and into an array of points. In V8i I used the function mdlElmdscr_stroke: #define SCALE (mdlModelRef_getUorPerMaster(MASTERFILE)) if (mdlElmdscr_stroke(&pptdPts, &iVertices, pedCurve, 2.0 * SCALE) == SUCCESS…
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Load MDL app on Application Startup (MS_INITAPPS)

    Rajesh Varatharajan
    Rajesh Varatharajan
    I am facing some issues in Successful loading MDL apps on Startup. I have modified code as below and loaded MDL app. if (strcmp(l_str_argument.c_str(), "MS_INITAPPS") == 0) { mdlSystem_enterGraphics(); mdlInput_sendCommand(CMD_DIALOG_OPENFILE…
    • over 2 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Detecting a Cached Saved View Attachment in MicroStation CONNECT

    Peter Jones
    Peter Jones
    Hi All, I have some legacy VBA code from v8i that I'm trying to port over to the CONNECT versions - it's using a CExpression with a pointer into the referenceFile struct for a specific reference: Private Declare PtrSafe Function mdlRefFile_getInfo…
    • over 3 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • [V8i C++] Text Style Data Extraction

    Jon Summers
    Jon Summers
    MdlTextStyle vs. DgnTextStyle First, which is preferable: the MdlTextStyle API or the DgnTextStyle API? Is the MicroStationAPI DgnTextStyle just a wrapper around the mdlTextStyle_api ? Why does the MicroStationAPI use those DgnTextStyle.GetProperty…
    • over 8 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Draw Sections along center line and offset to centerline (C# Programming for microstation V8 2004)

    Manoj_Pal
    Manoj_Pal
    Hii All, I am new to microstation development. I am using C#.net and Visual Studio 2010. I want to do offset of a center line in both side and draw sections in a certain interval to the centerline. Would anyone help me to do this without using cadinputque…
    • over 9 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • CSearchTypes class simplifies Locate and Scan Initialisation

    Jon Summers
    Jon Summers
    We often need to work with a given set of MIcroStation element types when writing an application for locating and scanning elements. For example, we may want to work with lines and line-strings, and therefore want our users to be able to... Locate…
    • over 10 years ago
    • MicroStation Programming
    • MicroStation Programming Blog
  • mdlKISolid_getSurfaceElements() crashes for a particular element, throwing a stack overflow exception

    Ronn Greer
    Ronn Greer
    Hi, I'm currently working with mdlKISolid_getSurfaceElements() in order to split a Smart Solid. But it is throwing a stack overflow exception and finally crashes.I guess this is because of many BSpline curves present in that solid. Can someone help…
    • over 10 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • KISolids API - Draw on Solids

    Trevor Watling
    Trevor Watling
    Hello, I was wondering which functions in the KISolids API replicate the behaviour of the keyin PUSHPULL DRAW. For example, suppose I wish to project a line or a circle onto the face of a solid such as a cylinder and make this edge part of the solid…
    • over 10 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Re: Is there access to Point Cloud tools from VBA?

    Jon Summers
    Jon Summers
    Unknown said: I guess it's time to get jump back into the MDL and the newer MicroStationAPI It's hard getting to grips with the MicroStationAPI because the documentation is terse and there are few examples. If you've grown up with the C-language procedural…
    • over 11 years ago
    • MicroStation Programming
    • [Archived] MicroStation V8i VBA Forum
  • Re: VS 2008 & MicroStation API

    Jon Summers
    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
    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: Getting ViewContext from IViewManager

    Jon Summers
    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
  • IViewTransient: snappable geometry

    Jon Summers
    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: mdlFontMgr_traverseAvailableFonts gone?

    Jon Summers
    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
    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
  • is there a mdl api to publish the dgn file to i-model file?

    Gang
    Gang
    Hi there, Is there any api to publish a dgn file to the i-model file?either native or managed api? Thanks in advance. Gang
    • over 12 years ago
    • MicroStation Programming
    • [Archived] MicroStation V8i Programming Forum
  • Re: Trouble Compiling MDL to V8i

    Jon Summers
    Jon Summers
    C++ does not require you to use Visual Studio Marcos: I will keep using the original MicroStation tools for years to come, apart of Visual Studio ... For many reasons it's worthwhile moving to C++ for MicroStation application development…
    • over 13 years ago
    • MicroStation Programming
    • [Archived] MicroStation V8i Programming Forum
  • Re: how to use mdlMeasure_closestPointOnElement()

    Jon Summers
    Jon Summers
    Obfuscation by Macro Martin: I want to use the function mdlXxx. But I don't know how to get the ElemHandleCP pHandle , which I need for this function. In the excitement of moving towards C++ in V8i, documentation and cross-referencing have…
    • over 14 years ago
    • MicroStation Programming
    • [Archived] MicroStation V8i Programming Forum
  • Re: how to use ustation.dll in c#

    Mark.Anderson
    Mark.Anderson
    Since using C# with the ustation.dll and getting started with the MicroStationAPI classes are really two seperate subjects I would suggest that you start a new thread. In this new thread it would help if you provided some information on what you need…
    • over 14 years ago
    • MicroStation Programming
    • [Archived] MicroStation V8 XM Edition Programming Forum
  • Re: MDL-Unicode Support

    Jon Summers
    Jon Summers
    Jan: Am I correct that this will only work in XM or later? Can I decisively conclude from this that V8 2004 will not support Unicode? Neither. MicroStation V8.0 and later support Unicode and multibyte characters. Unfortunately, for…
    • over 13 years ago
    • MicroStation Programming
    • [Archived] MicroStation V8 XM Edition Programming Forum