[Connect update 4 MDL API] Error when including <msmdlmesh.fdf>

Hi,

My system is windows 7, Connect update 4, Visual Studio 2013

I get error when including  <msmdlmesh.fdf>

When I opened msmdlmesh.fdf  I found this line:

#include <Mtg\MtgStructs.h>

However, file MtgStructs.h does not exist in Connect SDK.

----------------------------------------------------------------------------------------------------------------------------

Error 2 error C1083: Cannot open include file: 'Mtg\MtgStructs.h': No such file or director

4 IntelliSense: cannot open source file "_config-eccp.h"
----------------------------------------------------------------------------------------------------------------------------

Any ideas?

thanks

Nenad

  • If you look at "msmesh.h", you'll see this note:

    All mdlMesh functions are deprecated.   It is strongly recommended that code PolyfaceHeaders be used in their place.

     

  • In addition to Bruce's recommendation to consider using the new Polyface APIs, specific to this error:

    Defect 659004 was filed to address the missing MtgStructs.h error message, and should be corrected in MicroStation CONNECT SDK - Update 5

    HTH,
    Bob



    Answer Verified By: Nenad Poljcic 

  • Unknown said:

    If you look at "msmesh.h", you'll see this note:

    All mdlMesh functions are deprecated.   It is strongly recommended that code PolyfaceHeaders be used in their place.

    While your observation is correct, that comment didn't make it into the documentation.  Well spotted! 

    But, should we really be in the position where it's necessary to read the header files to find what is missing in the help file?  Surely the automated document generation should take care of that?  Furthermore, the recommendation is inaccurate: there is no PolyfaceHeaders (plural) class.  There is a PolyfaceHeader (singular) class, which you'll find in header file include\Geom\Polyface.h.

    Historically, MDL developers have been well-known for chewing iron filings for breakfast.  Advances in programming language sophistication don't seem to be ameliorating our dietary habits.

     
    Regards, Jon Summers
    LA Solutions