system3d/ifc2json 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

system3d/ifc2json

Composer 安装命令:

composer require system3d/ifc2json

包简介

Convert IFC files into JSON

README 文档

README

Installation / Usage

  1. Download and install IFC2JSON via Composer

    composer require system3d/ifc2json
  2. Include the IFC2JSON class and set your IFC file

    use System3D\IFC2JSON\IFC2JSON;
    
    $ifcFile 	= "your-file.ifc";
    $IFC2JSON 	= new IFC2JSON( $ifcFile );
  3. Get your JSON

    echo $IFC2JSON->getJson();

Advanced mode

Advanced mode will return all the related objects intead of just an ref ID, and will filter the results to return only needed objects.

Pass TRUE as second argument to enable the Advanced mode

$IFC2JSON   = new IFC2JSON( $ifcFile, true );

Levels density

By defaul, IFC2JSON will load in all the related objects for 3 levels only.

1 level:

2 levels:

3 levels:

To get the related objects for bigger than 3 levels, pass an Integer as a third paramenter:

$IFC2JSON   = new IFC2JSON( $ifcFile, true, 5 );

BE CAREFUL! Higher levels of loading will results in a bigger outputs json file.

统计信息

  • 总下载量: 184
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2016-06-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固