Bentley Communities
Bentley Communities
  • Site
  • User
  • Site
  • Search
  • User
Bentley 中国优先社区
  • Welcome to Bentley Communities
  • Bentley's Communities
  • Bentley 中国优先社区
  • Cancel
Bentley 中国优先社区
技术资料库 06-简单的浏览应用
    • Sign In
    Bentley 中国优先社区 requires membership for participation - click to join
    • +Bentley 中文技术资料库
    • -iTwin 数字孪生平台
      • Connector(原名Bridge)
      • i-twin微信小课堂
      • -iModel.js
        • +01-iModel.js资源
        • -02-iModel.js初步
          • 01-开始使用iModel.js
          • 02-简介
          • 03-为何使用iModel.js
          • 04-iModel上传
          • +05-iModel.js处理CSV文件
          • 06-简单的浏览应用
          • 07-数据显示
          • 08-前端和后端
          • 09-超级URLs
          • 10-iModel项目
          • 11-系统集成应用
          • 12-部署应用
          • 13-与微软IOT集成
          • 14-BIS数据结构
          • 15-快速开始
        • +03-iModel.js专题应用
      • +iTwin工作流程
      • +iTwin技术主题
    • Bentley二次开发资料库
    • +常见问题汇总
    • Bentley-Learn 官方教学平台-使用方法
    • +中国优先社区使用指南
    • +Bentley学习资料库
    • +Bentley用户成功活动精选
    • +服务合作伙伴计划

     
     Questions about this article, topic, or product? Click here. 

    06-简单的浏览应用

    说明:

    原文刊登在Medium.com/imodeljs站点,作者: Wil Maier

    中文翻译:

    正在进行中...

    英文原文:

    As Roop mentioned in the intro, I work with him as a developer outreach specialist. When I joined this team a few months ago, I faced a daunting challenge. Not only did I need to learn all I could about the iModel.js ecosystem, but I was also expected to help create sample apps for other newbies.

    After I finished off a checklist of recommended learning materials, I dove into building and studying the Simple Viewer App.

    I guess simple is a relative term!

    What I quickly discovered is that it wasn’t simple enough for me. I made the mistake of mentioning this to my team and before I knew it, my job was to make it simpler.

    I decided to strip out everything that wasn’t absolutely necessary to view an iModel. I am calling this new version the Basic Viewport App (although I did consider Simpler Viewer App).

    I don’t know about you, but I find it deeply satisfying to eliminate all the clutter that accumulates in my garage — something about clean surfaces. Similarly, I really enjoyed deleting all the source files and functions that were not needed. I also reworked some of the code to make it easier to understand.

    Actually not my garage — but maybe someday!

    Instead of showcasing support for electron, web and mobile, it focuses just on web support. And instead of featuring a viewport, tree, table, property pane, unified selection and logging, it is limited to just the viewport and a few navigation tools.

    And there you have it!

    While it’s still not ‘simple’, it is a whole lot less confusing so I hope it will be easier for other newbies to start with. Are you ready to take a look?

    Let’s do it!

    Since we have recently consolidated all of our sample apps into a single GitHub repo, you will be pulling the Basic Viewport App along with the other samples. Just navigate to the imodeljs-samples page, click on the green button, and choose Download ZIP. After you extract the files, open a console window and set your current directory to the new folder. Then follow the directions in Development Setup.

    If there is any way I can make it even simpler for you, please leave a comment below!

    Looking forward, we plan to use this app as the basis for other focused samples. The ultimate goal is to populate an open-source library of useful sample apps so that any developer will be able to submit, study and/or use them in their projects. More details to follow soon.

    Happy coding!

    • Share
    • History
    • More
    • Cancel
    • shunnai.zhao Created by Bentley Colleague shunnai.zhao
    • When: Mon, Sep 14 2020 1:40 AM
    • shunnai.zhao Last revision by Bentley Colleague shunnai.zhao
    • When: Mon, Sep 14 2020 8:14 AM
    • Revisions: 3
    • Comments: 0
    • Sign in to reply
    Recommended
    Related
    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