Closed eisaac-gs closed 11 months ago
@jmcouffin - that is helpful - would this suggest that RevitAddons.cs should also support both AddInId & ClientId (since both are accepted in the manifest)?
It seems to expect AddInId, and error if it finds ClientId.
@MYu1Gpzumr if you feel up to the task of understanding and fixing the thing, please have a go and make a PR against the develop branch
Describe the bug Visual Studio fails to launch Revit 2023 when pyRevit is installed, hitting an error in the following class:
where
AddInId = xmlDocument.DocumentElement.SelectSingleNode("/RevitAddins/Addin/AddinId").InnerText;
reports a System.NullReferenceException, determined via inspection, for plugins that have aClientId
, but not anAddInId
. One such addin is the Autodesk.BatchPrint.addin, found @ C:\ProgramData\Autodesk\Revit\Addins\2020 for me.Autodesk.BatchPrint.addin
Revit 2023 launches normally when PyRevit is installed. Visual Studio can launch Revit for testing .NET plugins when pyRevit isn't installed. Previously, I was able to launch Revit via Visual Studio w/ pyRevit installed, but currently trying to launch Revit via Visual Studio when pyRevit is installed fails.
To Reproduce Steps to reproduce the behavior:
Expected behavior Visual Studio should be able to launch Revit for testing .NET plugins while pyRevit is installed.
Screenshots N/A
Desktop (please complete the following information):
pyRevit version 4.8.13.23182 installed via installer Visual Studio Professional, version 17.7.1 Revit, version 23.1.10.4, 20221122_1550(x64), 2023.1.1
pyrevit env
some information about my employer's internal setup was ommitted
Additional context I've asked on Autodesk's forum, and checked the docs, but haven't found any info to narrow down which of the three programs, if any, is making an incorrect assumption.