JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q47825F
  • License MIT

Simple wrapper for ifcConvert

Package Exports

  • ifc-convert

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ifc-convert) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

#Ifc converter for Node.js

A simple promised based wrapper for the IfcConvert program for node.

#Requirements

  • IfcConvert, Installation instructions and binaries can be found at the ifcOpenShell page.

#Usage

var ifcConvert = require('ifc-convert');

ifcConvert('source.ifc', 'dest.dae')
    .then(function() {
        //Now you have a Collada file;)
    });

ifcConvert('source.ifc', 'dest.obj')
    .then(function() {
        //Now you have a Wavefront OBJ file with an .mtl file
    });

ifcConvert('source.ifc', 'dest.stp')
    .then(function() {
        //Now you have a STEP file
    });

ifcConvert('source.ifc', 'dest.igs')
    .then(function() {
        //Now you have a IGES file
    });

#Options

If you do not have IfcConvert in your path you can give it in options.

ifcConvert('source.ifc', 'dest.dae', {path: 'path/to/bin'})
    .then(function() {
        //Done
    });