Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
ProjectWise
  • Product Communities
ProjectWise
ProjectWise Design Integration Forum C# microstation V8i
    • Sign In

    • State Not Answered
    • Replies 0 replies
    • Subscribers 59 subscribers
    • Views 357 views
    • Users 0 members are here
    • Application
    • addin
    • 64bit
    • batchprocess
    • MicroStation
    • Bentley
    • c#

    C# microstation V8i

    Vinoth Joseph
    Offline Vinoth Joseph over 4 years ago

    I'm trying to open a design file for read thru program from Visual C# as below:

    using BCOM = Bentley.Interop.MicroStationDGN;

    class Program
    {
    public static BCOM.Application MSApp = null;

    [STAThread]

    public static void Main()
    {

    MSApp = new BCOM.ApplicationClass(); // at here Microstation executing and displayed the File manager dialogue box to open the file

    // But, what i'm looking is, without opening the file manager, open and read the contents.

    MSApp.OpenDesignFileForProgram(@"D:\x\xyz.dgn",true); // this line is working fine.

    }

    }

    is there any way to avoid initialisation of MSApp and open the file for read thru program?

    • Sign in to reply
    • Cancel

    Communities
    • Home
    • Getting Started
    • Community Central
    • Products
    • Support
    • Secure File Upload
    • Feedback
    Support and Services
    • Home
    • Product Support
    • Downloads
    • Subscription Services Portal
    Training and Learning
    • Home
    • About Bentley Institute
    • My Learning History
    • Reference Books
    Social Media
    •    LinkedIn
    •    Facebook
    •    Twitter
    •    YouTube
    •    RSS Feed
    •    Email

    © 2023 Bentley Systems, Incorporated  |  Contact Us  |  Privacy |  Terms of Use  |  Cookies