GithubHelp home page GithubHelp logo

Comments (12)

kovacsv avatar kovacsv commented on August 30, 2024 8

Quick and dirty solution on the JavaScript side:

function DecodeIFCString (ifcString)
{
    const ifcUnicodeRegEx = /\\X2\\(.*?)\\X0\\/uig;
    let resultString = ifcString;
    let match = ifcUnicodeRegEx.exec (ifcString);
    while (match) {
        const unicodeChar = String.fromCharCode (parseInt (match[1], 16));
        resultString = resultString.replace (match[0], unicodeChar);
        match = ifcUnicodeRegEx.exec (ifcString);
    }
    return resultString;
}

from web-ifc.

yakovlevkll avatar yakovlevkll commented on August 30, 2024 1

Thank you for your reply @agviegas! I found the problem with the version of web-ifc used in hello-world repo (0.0.35 instead of 0.0.36 with the problem fixed)

from web-ifc.

agviegas avatar agviegas commented on August 30, 2024 1

Hm, that's strange. Have you asked them? If it's a different encoding, maybe we should make a flexible system that accepts all possible encodings when reading strings.

from web-ifc.

eng-luciano-julien avatar eng-luciano-julien commented on August 30, 2024

Thank you @kovacsv! It solves the problem.

from web-ifc.

agviegas avatar agviegas commented on August 30, 2024

This issue is now a bounty. Whoever solves this will get $100. More information here.

from web-ifc.

hikitan1 avatar hikitan1 commented on August 30, 2024

Hello @agviegas, is this issue already integrated in the web-ifc-viewer?
If not, will it ever be integrated there?

from web-ifc.

agviegas avatar agviegas commented on August 30, 2024

Hi @hikitan1 we are setting up the bounties for the rest of the year, and this is one of them, so yes.

from web-ifc.

yakovlevkll avatar yakovlevkll commented on August 30, 2024

Hello everyone,

Is it any possible way to use decoder from @deadman2000 with provided javascript API?

from web-ifc.

agviegas avatar agviegas commented on August 30, 2024

Hi @yakovlevkll what do you mean? This was already merged.

from web-ifc.

Tamu avatar Tamu commented on August 30, 2024

Hi everyone,
I have a new issue with the export of Revit 2022.1+ which integrates the ODA SDK exporter (ODA IFC SDK 22.8)

  1. EXPRESS Data Manager : \X2\00E9\X0\
  2. ODA IFC SDK : \X\E9

I confirm that with v1 the characters are ok, but not translated with v2.

I don't know for what obscure reason the Express Data was replaced by ODA !?
update Revit 2022.3

from web-ifc.

Tamu avatar Tamu commented on August 30, 2024

Thanks @agviegas for your answer !
I found an interesting link: Revit-IFC
This is apparently a change planned by Autodesk since 2022.1+

from web-ifc.

agviegas avatar agviegas commented on August 30, 2024

@Tamu awesome. If you find any problems with that, don't hesitate to create a new issue in this repo so that we can help you out. Cheers!

from web-ifc.

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.