Dxf转gltf,提示不支持dxf

com.aspose aspose-3d 22.10 代码 public static void main(String[] args) throws Exception { TrialException.setSuppressTrialException(true); Scene scene = new Scene("C:\\Users\\23234\\Desktop\\dd.dxf"); scene.save("output.gltf"); } 异常 Exception in thread "main" com.aspose.threed.ImportException: Can't handle this file format at com.aspose.threed.Scene.open(SourceFile:555) at com.aspose.threed.Scene.open(SourceFile:534) at com.aspose.threed.Scene.(SourceFile:101) at com.example.asposedemo.Test01.main(Test01.java:20)

@zhousw

您能否与我们分享示例文件和代码片段,以便我们可以在我们的环境中测试该场景并相应地解决它。另外,在分享所需的详细信息之前,请尝试使用最新版本。

依赖

        <dependency>
            <groupId>com.aspose</groupId>
            <artifactId>aspose-3d</artifactId>
            <version>24.3.0</version>
        </dependency>

代码

    public static void main(String[] args) throws Exception {
        Scene scene = Scene.fromFile("C:\\Users\\23234\\Desktop\\dd.dxf");
        scene.save("Output.fbx");
    }

报错

Exception in thread "main" com.aspose.threed.ImportException: Can't handle this file format
	at com.aspose.threed.Scene.open(SourceFile:1050)
	at com.aspose.threed.Scene.fromFile(SourceFile:1343)
	at com.aspose.threed.Scene.fromFile(SourceFile:1321)
	at com.example.asposedemo.Test10.main(Test10.java:8)

dxf文件
dd.zip (874.9 KB)

@asad.ali

@zhousw

我们已在内部问题跟踪系统中打开以下新票证,并将根据 Free Support Policies 中提到的条款提供修复。

问题 ID:THREEDJAVA-336

如果您需要优先支持,以及直接联系我们的付费支持管理团队,您可以获取 Paid Support Services