jiangshuai
2023-11-15 5992b42c9e1cd8a2b2dce5bb447387c73757d9f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package cmd
 
import (
    "os/exec"
    "wms/pkg/logx"
)
 
func ParseDwgFile(filePath string) ([]byte, error) {
    //cmd := exec.Command("./dwgboms", "gs0.dwg")
    cmd := exec.Command("./dwgboms", filePath)
    output, err := cmd.CombinedOutput()
    logx.Infof("ParseDwgFile output:%+v, err:%v", string(output), err)
    return output, err
}