<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Revit incompatible with Autodesk SDKs? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13801076#M84613</link>
    <description>&lt;P&gt;Ignore this reply, can't figure out how to delete it&lt;/P&gt;</description>
    <pubDate>Mon, 08 Sep 2025 13:20:53 GMT</pubDate>
    <dc:creator>kaiZQHQ4</dc:creator>
    <dc:date>2025-09-08T13:20:53Z</dc:date>
    <item>
      <title>Revit incompatible with Autodesk SDKs?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13797993#M84603</link>
      <description>&lt;P&gt;So I'm trying to integrate some APS functionality into my Revit addins, namely so I can use Parameters Service. However, It seems like the newest versions of Autodesk.Authentication and Autodesk.DataManagement are incompatible with Revit 25 and 26 (and completely incompatible with 23/24). Am I missing something, it doesn't make sense to me that the SDKs exist but I can't use them?!&amp;nbsp;I can downgrade the Authentication package to 1.0.0 and it works, but DataManagment doesn't work at all.&lt;BR /&gt;&lt;BR /&gt;The error that I get is this:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;Could not load file or assembly 'System.Text.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. Could not find or load a specific file. (0x80131621)&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Part of the root of the issue is that i'm using System.Text.Json in my code but for quite a few reasons I dont want to stop. I really do feel like i'm missing something because it seems inconceivable to me that your expected not to use the System.Text.Json library in a Revit addin.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This is my Repo:&amp;nbsp;&lt;A href="https://github.com/kaitpw/PE_Tools" target="_blank" rel="noopener"&gt;https://github.com/kaitpw/PE_Tools&lt;/A&gt;&lt;BR /&gt;The error that i pasted happens as soon as I enter the Json.cs file (if the Autodesk.Authentication package is v2+)&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 09:14:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13797993#M84603</guid>
      <dc:creator>kaiZQHQ4</dc:creator>
      <dc:date>2025-09-05T09:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Revit incompatible with Autodesk SDKs?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13799426#M84608</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;APS&amp;nbsp;Autodesk SDK&lt;/STRONG&gt; was not design to work inside Revit or other Autodesk desktop products.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;.Net Standard 2.0&amp;nbsp;&lt;/STRONG&gt;was dropped and make the libraries unsupported for NET Framework like Revit 2024-.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/autodesk-platform-services/aps-sdk-net/issues/118" target="_blank"&gt;https://github.com/autodesk-platform-services/aps-sdk-net/issues/118&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the&amp;nbsp;&lt;STRONG&gt;APS&amp;nbsp;Autodesk SDK&amp;nbsp;&lt;/STRONG&gt;is design to work with&amp;nbsp;&lt;STRONG&gt;ASP.NET&lt;/STRONG&gt;&amp;nbsp;in the web.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For desktop should work fine in a standalone application, but inside Revit you gonna have issues with dependency conflict like your error or this problem:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/plugin-for-revit-2025-could-not-load-the-latest-autodesk-forge/m-p/12976437" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/plugin-for-revit-2025-could-not-load-the-latest-autodesk-forge/m-p/12976437&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;Parameters Service&lt;/STRONG&gt; is not integrated in the main Revit API in the &lt;STRONG&gt;ParameterUtils&lt;/STRONG&gt;?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://www.revitapidocs.com/2024/6449c1fe-90af-e6d4-e852-91f6eeae5c97.htm" target="_blank"&gt;https://www.revitapidocs.com/2024/6449c1fe-90af-e6d4-e852-91f6eeae5c97.htm&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Sep 2025 14:02:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13799426#M84608</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2025-09-06T14:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Revit incompatible with Autodesk SDKs?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13801076#M84613</link>
      <description>&lt;P&gt;Ignore this reply, can't figure out how to delete it&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 13:20:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13801076#M84613</guid>
      <dc:creator>kaiZQHQ4</dc:creator>
      <dc:date>2025-09-08T13:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Revit incompatible with Autodesk SDKs?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13801088#M84614</link>
      <description>&lt;P&gt;This is very disappointing to hear but I guess not the end of the world, thanks for the suggestion about standalone app. I think I may do that or a something similar in Typescript instead. At the end of the day i feel like making web requests from the Revit thread is kinda a bad idea anyways&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am a little confused by this comment though, I can't tell if I'm misreading it or if there's a typo:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;Parameters Service&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is not integrated in the main Revit API in the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ParameterUtils&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;"""&lt;/P&gt;&lt;P&gt;To me this does look like its integrated (?). I was planning on using this at least, I haven't tested it but i found an example of its use on github:&amp;nbsp;&lt;A href="https://github.com/autodesk-platform-services/revit-parameters-export-addin" target="_blank" rel="noopener"&gt;revit-parameters-export-addin.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Did you mean that it's not directly integrated into the Revit API? I've successfully written some methods to fetch the parameter data from Parameters Service (Http client is passed down from a wrapper class):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using PeServices.Aps.Models;
using System.Net.Http;
using System.Text.Json;

namespace PeServices.Aps.Core;

public class Parameters(HttpClient httpClient) {
    private const string Suffix = "parameters/v1/accounts/";

    private static async Task&amp;lt;T&amp;gt; DeserializeToType&amp;lt;T&amp;gt;(HttpResponseMessage res) =&amp;gt;
        JsonSerializer.Deserialize&amp;lt;T&amp;gt;(
            await res.Content.ReadAsStringAsync(),
            new JsonSerializerOptions { PropertyNameCaseInsensitive = true }
        );

    private static string Clean(string v) =&amp;gt; v.Replace("b.", "").Replace("-", "");

    public async Task&amp;lt;ParametersApi.Groups&amp;gt; GetGroups(string hubId) {
        var response = await httpClient.GetAsync(Suffix + Clean(hubId) + "/groups");
        return response.IsSuccessStatusCode
            ? await DeserializeToType&amp;lt;ParametersApi.Groups&amp;gt;(response)
            : new ParametersApi.Groups();
    }

    public async Task&amp;lt;ParametersApi.Collections&amp;gt; GetCollections(string hubId, string grpId) {
        var response = await httpClient.GetAsync(
            Suffix + Clean(hubId) + "/groups/" + Clean(grpId) + "/collections?offset=0&amp;amp;limit=10"
        );
        return response.IsSuccessStatusCode
            ? await DeserializeToType&amp;lt;ParametersApi.Collections&amp;gt;(response)
            : new ParametersApi.Collections();
    }

    public async Task&amp;lt;ParametersApi.Parameters&amp;gt; GetParameters(string hubId, string grpId, string colId) {
        var response = await httpClient.GetAsync(
            Suffix + Clean(hubId) + "/groups/" + Clean(grpId) + "/collections/" + Clean(colId) + "/parameters"
        );
        return response.IsSuccessStatusCode
            ? await DeserializeToType&amp;lt;ParametersApi.Parameters&amp;gt;(response)
            : new ParametersApi.Parameters();
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 13:19:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13801088#M84614</guid>
      <dc:creator>kaiZQHQ4</dc:creator>
      <dc:date>2025-09-08T13:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Revit incompatible with Autodesk SDKs?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13801260#M84615</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15868682"&gt;@kaiZQHQ4&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;&lt;SPAN&gt;I am a little confused by this comment though, I can't tell if I'm misreading it or if there's a typo:&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I mean&amp;nbsp;&lt;STRONG&gt;ParameterUtils&lt;/STRONG&gt;&amp;nbsp;have some methods to download shared parameters from the&amp;nbsp;&lt;STRONG&gt;Parameters Service.&amp;nbsp;&lt;/STRONG&gt;I guess you want other stuff.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15868682"&gt;@kaiZQHQ4&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;This is very disappointing to hear but I guess not the end of the world, thanks for the suggestion about standalone app. I think I may do that or a something similar in Typescript instead. At the end of the day i feel like making web requests from the Revit thread is kinda a bad idea anyways&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Usually is easier to recreate your&amp;nbsp;&lt;STRONG&gt;HttpClient&lt;/STRONG&gt; implementation for the&amp;nbsp;&lt;STRONG&gt;Parameters Service API&lt;/STRONG&gt;&amp;nbsp;inside Revit, you can run async methods inside the main Revit thread but need to be careful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In genera you can force any Task method to wait using&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;task.GetAwaiter().GetResult(),&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a full sample.&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;using Autodesk.Revit.Attributes;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
using System.Threading.Tasks;

namespace RevitAddin
{
    [Transaction(TransactionMode.Manual)]
    public class CommandTodos : IExternalCommand
    {
        public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elementSet)
        {
            UIApplication uiapp = commandData.Application;

            var task = Task.Run(async () =&amp;gt;
            {
                using (var httpClient = new System.Net.Http.HttpClient())
                {
                    var response = await httpClient.GetAsync("https://jsonplaceholder.typicode.com/todos/1");
                    return await response.Content.ReadAsStringAsync();
                }
            });
            var content = task.GetAwaiter().GetResult();
            TaskDialog.Show("todos", content);

            return Result.Succeeded;
        }
    }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 14:56:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13801260#M84615</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2025-09-08T14:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Revit incompatible with Autodesk SDKs?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13801271#M84616</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/15868682"&gt;@kaiZQHQ4&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I've successfully written some methods to fetch the parameter data from Parameters Service (Http client is passed down from a wrapper class):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Nice! I probably would change the&amp;nbsp;&lt;STRONG&gt;System.Text.Json&amp;nbsp;&lt;/STRONG&gt;to&amp;nbsp;&lt;STRONG&gt;Newtonsoft.Json&lt;/STRONG&gt;, to prevent dependency problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revit already ship&amp;nbsp;&lt;STRONG&gt;Newtonsoft.Json&lt;/STRONG&gt; in basically all Revit version, so you don't need to ship the dll.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I usually use this in my RevitAddin code to have the &lt;STRONG&gt;Newtonsoft.Json&lt;/STRONG&gt;&amp;nbsp;reference.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;PackageReference Include="Newtonsoft.Json" Version="9.*" IncludeAssets="build; compile" PrivateAssets="All"&amp;gt;
      &amp;lt;NoWarn&amp;gt;NU1903&amp;lt;/NoWarn&amp;gt;
    &amp;lt;/PackageReference&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 15:03:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-incompatible-with-autodesk-sdks/m-p/13801271#M84616</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2025-09-08T15:03:46Z</dc:date>
    </item>
  </channel>
</rss>

