Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

RE: [Connect C++] Porting saved named view creation code

$
0
0

Reference File

[quote user="Kari Heinola"]iStatus = mdlRefFile_attachByView(&modelRefP, filepath, viewInstName,
    viewInstName, viewName,
    scale, &center_point,
    REF_FILE_LEVEL_DISPLAY_DEFAULT,
    TRUE, TRUE);[/quote]

That function is pretty much unchanged, except for the use of Unicode (WChar) character strings.  Most of the C++ uses WChar strings.

WChar = 16-bit character.  typedef of C++ wchar_t
WCharP is a typedef for WChar*
WCharCP is a typedef for WChar const*

Views

There's quite a lot in the MicroStationAPI help about NamedViews, ViewPorts and ViewInfo.  As with much of the API, new classes supplant mdlView_xxx functions.  If you look through the SDK delivered examples you'll find one or two that deal with views.


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>