C++ Example

Hello again,

Can you point me in the right direction for creating a simple C++ app for microstation?  I know there are examples in the SDK, I just don't know what they are called.  Which place in the SDK should I look at for the basics of creating a C++ app.  

I am comfortable with C++, I just do not know where to start off.  Is bookstore, gasmain, propviewer, and webstore what I should look at?  They are not .ma files, so I was unsure if  I could load them into Microstation.

Thank you again for your time, help, and patience.

Parents
  • Hi Chad,

    Unknown said:
    Which place in the SDK should I look at...

    You did not tell what version of MicroStation and MicroStation SDK do you use. In V8i, the default SDK examples folder is MDLProjects V8i (SELECTseries 3) in your Documents.

    Unknown said:
    ...for the basics of creating a C++ app.

    You can choose nearly any from the delivered examples, because they all are "basic" in terms they demonstrate one specific are of MicroStation API. For sure you can start with the example called basic.

    Unknown said:
    Is bookstore, gasmain, propviewer, and webstore what I should look at?

    These examples are Bentley Map examples, not MicroStation (and as such they cannot be treated as basic). Can you confirm you have installed and use MicroStation or Bentley Map?

    With regards,

      Jan

  • I am not sure which Microstation SDK I use. I do not have any microstation files under my Library Documents.

    What I do have is under Program Files (x86) a folder called Bentley with the following folders:

    Bentley Class Editor V8i 08.26
    Microstation
    Documentation
    Inroads Group V8.11
    ProjectWise
    Microstation V8i (SELECT series)
    GEOPAK
    DgnODBCDriver
    Workspace
    Program
    Home

    I use Microstation V8i (SELECT series 3).

    I downloaded the microstation SDK from this site:
    www.bentley.com/.../MicroStation+SDK.htm

    I also have access to MicroStationAPI.chm.

    I am not sure if this means I am looking at the right documents? I searched and was unable to find anything called basic. I only found a file called basics under 'C:\Program Files (x86)\Bentley\GEOPAK\V8.11\Samples\road\superComputation\projects\basics'
  • Hi Chad,

    Unknown said:
    I am not sure which Microstation SDK I use.

    It's not easy to provide an advice, to know versions is pretty important when any development is done, because proper versions of MicroStation + SDK + Visual Studio have to be used together. The version of SDK can be checked in Add / remove programs (if you select SDK item, details are displayed) or in readme (readme_microstationsdk.chm). The same for MicroStation.

    Unknown said:
    I do not have any microstation files under my Library Documents.

    I didn't write anything about Library Documents, I mentioned Documents folder, which is by default located at C:\Users\<user name>\Documents\, so the full path to SDK examples should be C:\Users\<user name>\Documents\MDLProjects V8i (SELECTseries 3)\.

    If you have no examples in the mentioned folder, you should reinstall MicroStation SDK. Should take short time.

    Unknown said:
    I found those under "C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\Map\mdl\examples"

    These examples belong to Bentley Map, not to MicroStation SDK.

    With regards,

      Jan

Reply
  • Hi Chad,

    Unknown said:
    I am not sure which Microstation SDK I use.

    It's not easy to provide an advice, to know versions is pretty important when any development is done, because proper versions of MicroStation + SDK + Visual Studio have to be used together. The version of SDK can be checked in Add / remove programs (if you select SDK item, details are displayed) or in readme (readme_microstationsdk.chm). The same for MicroStation.

    Unknown said:
    I do not have any microstation files under my Library Documents.

    I didn't write anything about Library Documents, I mentioned Documents folder, which is by default located at C:\Users\<user name>\Documents\, so the full path to SDK examples should be C:\Users\<user name>\Documents\MDLProjects V8i (SELECTseries 3)\.

    If you have no examples in the mentioned folder, you should reinstall MicroStation SDK. Should take short time.

    Unknown said:
    I found those under "C:\Program Files (x86)\Bentley\MicroStation V8i (SELECTseries)\Map\mdl\examples"

    These examples belong to Bentley Map, not to MicroStation SDK.

    With regards,

      Jan

Children