Giter Site home page Giter Site logo

Comments (5)

xeolabs avatar xeolabs commented on June 20, 2024

You need to pass a configs into the convert2xkt call.

I just made convert2xkt treat the configs arg as optional, so you could either supply an empty map for that, or update to the latest release.

See here for how to use on node:

https://github.com/xeokit/xeokit-convert/blob/main/convert2xkt.js

from xeokit-convert.

ctrlmaniac avatar ctrlmaniac commented on June 20, 2024

Where do I get these configs? I've copied the file you provided in the src folder but now it says that Cannot read properties of undefined (reading 'IfcAPI')

from xeokit-convert.

xeolabs avatar xeolabs commented on June 20, 2024

Where do I get these configs? I've copied the file you provided in the src folder but now it says that Cannot read properties of undefined (reading 'IfcAPI')

See here for where the configs are obtained for passing into convert2xkt: https://github.com/xeokit/xeokit-convert/blob/main/convert2xkt.js#L172

This is the nodejs script that invokes the convert2xktfunction and provides the configs argument, along with the WebIFC argument required for converting IFC.

We don't have checking for missing arguments in the convert2xkt function, but the nodejs script will provide a working model for yoy to use the convert2xkt function on node.

This is the best support I can provide at the moment for your use case of calling convert2xkt function from your own nodejs script. If your enterprise needs prioritised support, please get in touch here: https://creoox.com/en/contact/

from xeokit-convert.

ctrlmaniac avatar ctrlmaniac commented on June 20, 2024

ok but I cannot spawn the commander convert2xkt command from a node.js script since it is not exported from the package.json as en entry file... so I do not know how to make the function works either!

from xeokit-convert.

xeolabs avatar xeolabs commented on June 20, 2024

Try cloning the repository and modifying the convert2xkt.js script

from xeokit-convert.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.