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

RE: Develop C# code(Visual Studio 2013) for Microstation

$
0
0

Hi saravana,

[quote user="saravana kumar"]C# example for microstation[/quote]

Maury's answer is correct: You should start with C# examples delivered with MicroStation V8i SDK.

[quote user="saravana kumar"]I have to migrate from C code to C#(visual studio 2013) for microstation.[/quote]

May I ask why the code should be migrated to C#? C/C++ is primary API for MicroStation, so the code written in native language will be typically better (faster, less memory consuming) than managed code. Also "API richness" is far better for native code than in very limited VBA/COM API, that is (as Maury wrote) used through interop in managed languages (like C# or VB.NET).

Probably the only exceptions, where NET addin is better than native code, are GUI (WinForms) and seamless access to many 3rd party libraries. But even if better GUI is required, it can be better to leave existing functionality in native code, create addin in C# and access native code using C++/CLI.

[quote user="saravana kumar"]I dont have any idea about this[/quote]

  1. Learn C#
  2. Learn MicroStation VBA
  3. Study NET examples delivered with MicroStation SDK
  4. Search Programming Forum for similar topics (there are plenty of them).
  5. Read tutorial written by Yongan.Fu (but I am not sure if it's accessible publicly)

With regards,

  Jan


Viewing all articles
Browse latest Browse all 7260

Trending Articles



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