Skip to content

Commit

Permalink
Merge pull request #2078 from ZiyunShang/Revit2020_Test
Browse files Browse the repository at this point in the history
update the D4R Version Selector to support single Revit version
  • Loading branch information
AndyDu1985 committed Jun 25, 2018
2 parents 0072dea + 281f9bf commit 2e82cf5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .version
@@ -1 +1 @@
0.0.18
0.0.19
4 changes: 2 additions & 2 deletions src/Legacy/DynamoRevitVersionSelector/VersionSelectorApp.cs
Expand Up @@ -52,7 +52,7 @@ internal static string GetDynamoRevitPath(DynamoProduct product, string revitVer
if (product.VersionInfo < new Version(0, 7))
return string.Empty; //0.6.3 and older version not supported for Revit2015 onwards

return Path.Combine(product.InstallLocation, string.Format("Revit_{0}", revitVersion), "DynamoRevitDS.dll");
return Path.Combine(product.InstallLocation, "Revit", "DynamoRevitDS.dll");
}

public Result OnStartup(UIControlledApplication application)
Expand Down Expand Up @@ -309,7 +309,7 @@ private static IEnumerable<DynamoProduct> FindDynamoRevitInstallations(string de
}

Func<string, string> fileLocator =
p => Path.Combine(p, string.Format("Revit_{0}", revitVersion), "DynamoRevitDS.dll");
p => Path.Combine(p, "Revit", "DynamoRevitDS.dll");

var methodParams = new object[] { debugPath, fileLocator };

Expand Down

0 comments on commit 2e82cf5

Please sign in to comment.