zoukankan      html  css  js  c++  java
  • java读取IFC文件

    The IFC JAVA Toolbox can read IFC STEP files and IFCZIP files from any data source that implements
    java.io.InputStream (e.g. a local file from the file system, a remote file on a web server or a
    file stored in a database). After calling one of the following read-methods, the toolbox loads the IFC
    file and initializes the described IFC entities. Those objects can be accessed and manipulated using
    the IfcModel’s methods. The following lines of code demonstrate how to read IFC STEP files from
    different data sources:

    //create a new instance of IfcModel
    IfcModel ifcModel = new IfcModel();
    //load an IFC STEP file from the file system
    File stepFile = new File("C:\myfile.ifc");
    ifcModel.readStepFile(stepFile);
    //... or load an IFC STEP file from a web server
    URL stepURL = new URL("http://www.myifchomepage.com/myifcstepfile");
    ifcModel.readStepFile(stepURL);
    //... or load an IFC STEP file from any other data source,
    //that implements java.io.InputStream (e.g. database connection)
    InputStream stepStream = myDBconnection.getStepFile("1234");
    ifcModel.readStepFile(stepStream);

    Copyright: CC BY-NC-SA 3.0 DE (cc) 2013 Eike Tauscher and Michael Theiler
    All provided material including the provided software packages are licensed under:
    Creative Commons Attribution-Non-Commercial-Share Alike 3.0 Germany
    If you are using the package or parts of it in any commercial way, a commercial license is required.
    Visit http://www.ifctoolsproject.com for more information or contact us directly: info@ifctoolsproject.com

  • 相关阅读:
    win7下64位系统memcache/memcached安装教程
    支付宝接口使用文档说明 支付宝异步通知(notify_url)与return_url.
    PHP使用DES进行加密解密
    使用PHP对文件进行压缩解压(zip)
    发一个天气预报接口
    使用php发送电子邮件(phpmailer)
    在线支付接口详解
    php 操作数组 (合并,拆分,追加,查找,删除等)
    PHP5中魔术方法
    Ehlib 学习
  • 原文地址:https://www.cnblogs.com/herd/p/11970799.html
Copyright © 2011-2022 走看看