Skip to content

Commit

Permalink
Merge pull request architecture-building-systems#119 from PavelAltynn…
Browse files Browse the repository at this point in the history
…ikov/issues/96

Fix issue architecture-building-systems#96
  • Loading branch information
eirannejad authored Feb 1, 2022
2 parents 8b1c153 + e4e32a4 commit ce5d21b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RevitPythonShell/RevitPythonShellApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public static IEnumerable<Command> GetCommands(XDocument repository)
int i = 0;
foreach (var commandNode in repository.Root.Descendants("Command") ?? new List<XElement>())
{
var addinAssembly = typeof(RevitPythonShellApplication).Assembly;
var addinAssembly = typeof(RpsExternalApplicationBase).Assembly;
var commandName = commandNode.Attribute("name").Value;
var commandSrc = commandNode.Attribute("src").Value;
var group = commandNode.Attribute("group") == null ? "" : commandNode.Attribute("group").Value;
Expand All @@ -352,7 +352,7 @@ public static IEnumerable<Command> GetCommands(XDocument repository)
}
else
{
largeImage = GetEmbeddedPng(addinAssembly, "RevitPythonShell.Resources.PythonScript32x32.png");
largeImage = GetEmbeddedPng(addinAssembly, "RpsRuntime.Resources.PythonScript32x32.png");
}

ImageSource smallImage = null;
Expand All @@ -363,7 +363,7 @@ public static IEnumerable<Command> GetCommands(XDocument repository)
}
else
{
smallImage = GetEmbeddedPng(addinAssembly, "RevitPythonShell.Resources.PythonScript16x16.png");
smallImage = GetEmbeddedPng(addinAssembly, "RpsRuntime.Resources.PythonScript16x16.png");
}

yield return new Command {
Expand Down

0 comments on commit ce5d21b

Please sign in to comment.