CDE Self-Host NPD

BienDichXKT

@echo off
set IFC_PATH=F:\IFC_Tem\B2.ifc
set OUTPUT_DIR=F:\IFC_Tem\B2\

echo --- 1. Trich xuat hinh hoc (IFC to GLB) ---
".\IfcConvert.exe" "%IFC_PATH%" "temp.glb" -y

echo --- 2. Trich xuat du lieu cau truc (IFC to XML) ---

".\IfcConvert.exe" "%IFC_PATH%" "temp.xml" -y

echo --- 3. Chuyen doi hinh hoc sang Xeokit (GLB to XKT) ---

node ".\xeokit-convert-main\convert2xkt.js" -s "temp.glb" -o "%OUTPUT_DIR%geometry.xkt"

echo --- 4. Chuyen doi Metadata sang JSON (XML to JSON) ---

if exist "temp.xml" (
    node ".\xml2json.js" "temp.xml" "%OUTPUT_DIR%metadata.json"
) else (
    echo [LOI] Khong tim thay file temp.xml de chuyen doi!
)
echo --- DONE ---
if exist temp.glb del temp.glb
if exist temp.xml del temp.xml
echo --- HOAN TAT ---
pause

2.2 Cấp quyền cho AppPool chạy Node

Mở PowerShell Run as Admin:


 

icacls "C:\Program Files\nodejs" /grant "IIS AppPool\NPD_BIM19650_CDE:(RX)" /T