Remove generated artifacts and machine-specific paths
This commit is contained in:
@@ -326,7 +326,7 @@ sealed class DwgSheetFrameAligner
|
||||
var command = string.IsNullOrWhiteSpace(clsid) ? "" : ReadDefaultValue($@"CLSID\{clsid}\LocalServer32");
|
||||
var exe = ExtractExePath(command);
|
||||
if (string.IsNullOrWhiteSpace(exe) || !File.Exists(exe))
|
||||
exe = @"D:\Program Files\Autodesk\AutoCAD 2020\acad.exe";
|
||||
exe = Environment.GetEnvironmentVariable("AUTOCAD_EXE") ?? "";
|
||||
if (!File.Exists(exe))
|
||||
throw new FileNotFoundException($"找不到 acad.exe。ProgID={progId}, LocalServer32={command}");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user