<?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: Connect Autocad to Smartsheet data using c# in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13153015#M1948</link>
    <description>&lt;P&gt;You must use .NET 8 with AutoCAD 2025 .NET API development.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 15:36:21 GMT</pubDate>
    <dc:creator>norman.yuan</dc:creator>
    <dc:date>2024-11-15T15:36:21Z</dc:date>
    <item>
      <title>Connect Autocad to Smartsheet data using c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13151785#M1945</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attempting to connect to a smartsheet using their API in a C# program for autocad / autocadMap3d.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i am getting the error : "could not load file or assembly 'smartsheet-csharp-sdk' or one of its dependencies.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;System.IO.FileNotFoundException: Could not load file or assembly 'smartsheet-csharp-sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File name: 'smartsheet-csharp-sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I have installed the smartsheet sdk via NuGet, not sure what i am missing?&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;     public static void InitializeSmartsheetClient()
        {
            Document doc = Application.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;
            Editor ed = doc.Editor;

            string smartsheetAccessToken = ""; // token
            long specificSheetId = ;  // Smartsheet Tracker 


            try
            {

                // Initialize Smartsheet client with the API access token using SmartsheetBuilder
                var smartsheetClient = new SmartsheetBuilder()
                                 .SetAccessToken(smartsheetAccessToken)
                                 .Build(); // This initializes the SmartsheetClient

                // Retrieve the sheet by its ID from Smartsheet
                var sheet = smartsheetClient.SheetResources.GetSheet(specificSheetId, null, null);  // Retrieve the sheet by ID

                // If the sheet is retrieved successfully, display the sheet name
                ed.WriteMessage($"\nConnected to Smartsheet! Sheet Name: {sheet.Name}\n");
            }
            catch (System.Exception ex)
            {
                // If there’s an error connecting to Smartsheet, display the error message
                ed.WriteMessage($"\nError connecting to Smartsheet: {ex.Message}\n");
            }
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 15 Nov 2024 02:12:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13151785#M1945</guid>
      <dc:creator>dwattersQJ39E</dc:creator>
      <dc:date>2024-11-15T02:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Autocad to Smartsheet data using c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13152745#M1946</link>
      <description>&lt;P&gt;You did not provide important information: What version of AutoCAD you use, AutoCAD 2025, or older versions of AutoCAD?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 14:08:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13152745#M1946</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-11-15T14:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Autocad to Smartsheet data using c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13152806#M1947</link>
      <description>&lt;P&gt;I am on 2025.&amp;nbsp;&lt;BR /&gt;with doing more digging, I am investigating issues related to .net framework miss matches. the NuGet installer for Smartsheet was installing a version that's targeted to 8.0, I am cloning a version for 4.5.2 in hopes that that fixes the issue.&amp;nbsp;&lt;BR /&gt;I've come to learn that AutoCAD doesnt support .net past 4.8?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 14:34:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13152806#M1947</guid>
      <dc:creator>dwattersQJ39E</dc:creator>
      <dc:date>2024-11-15T14:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Autocad to Smartsheet data using c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13153015#M1948</link>
      <description>&lt;P&gt;You must use .NET 8 with AutoCAD 2025 .NET API development.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 15:36:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13153015#M1948</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-11-15T15:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Autocad to Smartsheet data using c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13153049#M1949</link>
      <description>&lt;P&gt;sorry, I'm on 2024. I am upgrading to 2025 now.&amp;nbsp;&lt;BR /&gt;you think that framework issue was likely the problem?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;thank you for the help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 15:53:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13153049#M1949</guid>
      <dc:creator>dwattersQJ39E</dc:creator>
      <dc:date>2024-11-15T15:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Connect Autocad to Smartsheet data using c#</title>
      <link>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13153101#M1950</link>
      <description>&lt;P&gt;Since S&lt;SPAN&gt;martsheet-C#-sdk requires .NET 8, while pre-2024 AutoCAD versions use .NET Framework, so you cannot mix them together. If you target Acad2024 or older, you may want to try older version of SmartSheet Nuget package, such as SmartSheet.NET.Standard, which requires .NETStandard 2.0, which can be used with .NET Framework 4.5/.6/.7/.8. If you target AutoCAD 2025 (requiring .NET 8), then SmartSheet C# SDK should work. I did a quick test with my Acad2025, and yes, the&amp;nbsp;smartsheet-csharp-sdk.dll is loaded without issue.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 16:14:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/connect-autocad-to-smartsheet-data-using-c/m-p/13153101#M1950</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-11-15T16:14:11Z</dc:date>
    </item>
  </channel>
</rss>

