<?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: Referencing AcSmComponents.dll error in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12861599#M9440</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;&amp;nbsp;By any chance, do you know&amp;nbsp; how can we achieve the same using powershell?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jun 2024 05:03:42 GMT</pubDate>
    <dc:creator>chandrakantakorat002</dc:creator>
    <dc:date>2024-06-26T05:03:42Z</dc:date>
    <item>
      <title>Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/11846171#M9427</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;I am building a .NET solution for AutoCAD in C#.&lt;BR /&gt;I want to access the Sheet Set Manager through the API, however I am unable to reference the AcSMComponents.dll file to begin creating a SheetSet object.&lt;/P&gt;&lt;P&gt;I am using AutoCAD 2019.&lt;BR /&gt;I am writing my code in Visual Studio.&lt;/P&gt;&lt;P&gt;When I go to the Solution Explorer, and I use the reference manager to add the&amp;nbsp;AcSMComponents.dll file, it gives me an error message:&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;A reference to 'C:\Program Files\Autodesk\AutoCAD2019\AcSmComponents.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I go about adding this reference.&lt;/P&gt;&lt;P&gt;My ultimate goal would be to access the sheets within the SheetSetManager from a document and access the data from those sheets. Data such as the Number, File Name, and LayoutName would ultimately be exported to a database. I would also like to access blocks within the sheets to modify certain aspect of them.&lt;/P&gt;&lt;P&gt;However, none of this can be started without the reference working correctly.&lt;BR /&gt;Any advice would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2023 22:31:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/11846171#M9427</guid>
      <dc:creator>Poncho_Slim</dc:creator>
      <dc:date>2023-03-24T22:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/11846375#M9428</link>
      <description>&lt;P&gt;Have you tried adding from COM tab?&lt;/P&gt;&lt;P&gt;2019 would be&amp;nbsp;AcSmComponents20 I think.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jeffHGCE_0-1679708143630.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1193282iDF76AC96CE5CC127/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jeffHGCE_0-1679708143630.png" alt="jeffHGCE_0-1679708143630.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Mar 2023 01:35:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/11846375#M9428</guid>
      <dc:creator>jeffHGCE</dc:creator>
      <dc:date>2023-03-25T01:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/11851185#M9429</link>
      <description>&lt;P&gt;I was able to successfully reference that file. The version that was accessible for me was ACSMCOMPONENTS23Lib. However, that file got me nowhere. I was trying to follow along with it, but it was unable to access the document on its own. The syntax was also very different than the syntax that came with the three files I originally referenced.&lt;BR /&gt;I have been using accoremgd, acdbmgd, and acmgd. I was expecting to be able to use the SheetSet object with the AcSMComponent.dll. The syntax for the ACSMCOMPONENTS23Lib was very different and did not synergize with the three references I have listed above. I was able to create an AcSmSheetSet object but I am unsure on how I would instantiate the document, access the database/SheetSet file, and move forward.&lt;BR /&gt;&lt;BR /&gt;I guess what I am saying is that I would like to find a way to reference the AcSmComponents.dll file in hopes that it will synergize with the other three files I referenced. Since I already have a lot of code built around those references, I would like to continue using that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 16:21:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/11851185#M9429</guid>
      <dc:creator>Poncho_Slim</dc:creator>
      <dc:date>2023-03-27T16:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/11851227#M9430</link>
      <description>&lt;P&gt;You should read &lt;A href="https://adndevblog.typepad.com/autocad/2013/09/using-sheetset-manager-api-in-vbnet.html" target="_blank" rel="noopener"&gt;this blog post&lt;/A&gt; before going any farther.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On a side note, you can go to &lt;A href="https://profile.autodesk.com/security" target="_blank" rel="noopener"&gt;this page&lt;/A&gt; to edit your forum name so that it doesn't have the extraneous letters that got added when you signed up.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 16:42:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/11851227#M9430</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-03-27T16:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/11851418#M9431</link>
      <description>&lt;P&gt;Thank you for your recommendation.&lt;/P&gt;&lt;P&gt;I have quickly run into another issue. Following down the rabbit hole of the ACSMCOMPONENTS23Lib, I would need the file that points to the SheetSet. I have trouble understanding how I would automate this. Is the SheetSet not tied to a document? Would the SheetSet not be accessible through a document? or is it a completely separate entity. I was imagining that the SheetSet could be accessed through a document or a document's database. If it is its own file, and I could not access it through a document, I would obviously need a file name, but then I have trouble imagining how I could automate a process of handling and parsing all sheets in a SheetSet via a document open on an AutoCAD instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also thank you for helping me change my name haha&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 17:44:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/11851418#M9431</guid>
      <dc:creator>Poncho_Slim</dc:creator>
      <dc:date>2023-03-27T17:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/11851436#M9432</link>
      <description>&lt;P&gt;No, the sheetset is a dst file. Maybe you should play around with the SHEETSET command to get familiar with it.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 17:52:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/11851436#M9432</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2023-03-27T17:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12853172#M9433</link>
      <description>&lt;P&gt;Could anyone please update on the original issue of "&lt;SPAN&gt;unable to reference the AcSMComponents.dll file to begin creating a SheetSet object", I am trying to use the APIs with Python and not able to reference the interface.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So far, i have generated modules using tlb file which is from AcSm*.tlb file, I am able to reference&amp;nbsp;ACSMCOMPONENTS24Lib.py file but while accessing the&amp;nbsp;AcSmSheetSetMgr using interface object it gives error "Problem in loading application"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have correct entry in registry as well. I am able to use&amp;nbsp;AcCmColor but not&amp;nbsp;AcSmSheetSetMgr. I have tried to register the DLL but it fails with error that "entry point DllServerRegisterServer was not found"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here's the python code i am trying.&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;win32com.client&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;os&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;glob&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import &lt;/SPAN&gt;comtypes.client&lt;BR /&gt;&lt;SPAN&gt;# generate modules &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;for &lt;/SPAN&gt;pattern &lt;SPAN&gt;in &lt;/SPAN&gt;(&lt;SPAN&gt;"acax*enu.tlb"&lt;/SPAN&gt;, &lt;SPAN&gt;"axdb*enu.tlb"&lt;/SPAN&gt;,&lt;SPAN&gt;"AcSm*.tlb"&lt;/SPAN&gt;):&lt;BR /&gt;    pattern = os.path.join(&lt;BR /&gt;        &lt;SPAN&gt;r"C:\Program Files\Common Files\Autodesk Shared"&lt;/SPAN&gt;,&lt;BR /&gt;        pattern&lt;BR /&gt;    )&lt;BR /&gt;    tlib = glob.glob(pattern)[&lt;SPAN&gt;0&lt;/SPAN&gt;]&lt;BR /&gt;    comtypes.client.GetModule(tlib)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;def &lt;/SPAN&gt;&lt;SPAN&gt;get_sheet_set_manager&lt;/SPAN&gt;():&lt;BR /&gt;    &lt;SPAN&gt;acad &lt;/SPAN&gt;= win32com.client.Dispatch(&lt;SPAN&gt;"AutoCAD.Application.24"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;    &lt;SPAN&gt;sm_components &lt;/SPAN&gt;= &lt;SPAN&gt;acad&lt;/SPAN&gt;.GetInterfaceObject(&lt;SPAN&gt;"AcSmComponents.AcSmSheetSetMgr.24"&lt;/SPAN&gt;)&lt;BR /&gt;    &lt;SPAN&gt;# sm_components = acad.GetInterfaceObject("AutoCAD.AcCmColor.24") # This is working&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;if &lt;/SPAN&gt;&lt;SPAN&gt;sm_components&lt;/SPAN&gt;:&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Sheet Set Manager object retrieved successfully."&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;return &lt;/SPAN&gt;&lt;SPAN&gt;sm_components&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;else&lt;/SPAN&gt;:&lt;BR /&gt;        &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Failed to retrieve Sheet Set Manager object."&lt;/SPAN&gt;)&lt;BR /&gt;        &lt;SPAN&gt;return None&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;# Example usage&lt;BR /&gt;&lt;/SPAN&gt;sheet_set_manager = get_sheet_set_manager()&lt;/PRE&gt;&lt;P&gt;Attaching error screenshot for dll registration.&amp;nbsp; Any input/suggestion on this will be truly helpful.&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 21 Jun 2024 08:03:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12853172#M9433</guid>
      <dc:creator>chandrakantakorat002</dc:creator>
      <dc:date>2024-06-21T08:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12853267#M9434</link>
      <description>&lt;P&gt;I was just trying the same thing earlier today&lt;/P&gt;&lt;P&gt;watching with interest&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 09:18:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12853267#M9434</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-06-21T09:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12853703#M9435</link>
      <description>&lt;P&gt;I think one DOES NOT call AcadApplication.GetInterfaceObject() to get AcSmSheetManager. The method GetInterfaceObject() is commonly used for AutoCAD verticals to get vertical-specific COM objects that HAVE BEEN INSTANTIATED when the verticals run. That is, they are live instances of COM objects, the custom code we write do not create them, we only need to reach them via GetInterfaceObject().&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, in the case of Sheet Manager, it does not automatically exist in a running AutoCAD session, you need to "new" it (create an instance with your own code). Not sure python syntax, but if it is C#:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;var sheetManager=new AsCmSheetManager();&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 13:16:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12853703#M9435</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2024-06-21T13:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12853818#M9436</link>
      <description>&lt;P data-unlink="true"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt; is correct. Further, a sheetset object is created when you read the contents of a dst file into memory. Fenton Webb gives you some sample VB.Net code in the &lt;A href="https://adndevblog.typepad.com/autocad/2013/09/using-sheetset-manager-api-in-vbnet.html" target="_blank" rel="noopener"&gt;blog post&lt;/A&gt; I linked to&amp;nbsp; in post 4. Look at the first code sample on how to open a dst file.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 14:05:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12853818#M9436</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2024-06-21T14:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12853898#M9437</link>
      <description>&lt;P&gt;Try adding a reference to &lt;STRONG&gt;AcSmComponents.Interop.dll&lt;/STRONG&gt; to your project.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 14:37:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12853898#M9437</guid>
      <dc:creator>ActivistInvestor</dc:creator>
      <dc:date>2024-06-21T14:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12853927#M9438</link>
      <description>&lt;P&gt;Since its python&lt;/P&gt;&lt;P&gt;win32com.client makepy with acsmcomponents24.tlb (ARX SDK)&amp;nbsp; will give you a hint.&lt;/P&gt;&lt;P&gt;Normally it will generate all if the interface classes, but it doesn’t with AcSmSheetManager&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to create an instance or AcSmSheetManager by creating an interface with the IIDs makepy generated&lt;/P&gt;&lt;P&gt;But it would be a long slog to do this if you wanted to generate wrappers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to generate wrappers for my project, but I may switch to C++, &amp;nbsp;C++ and COM are also fun, so a big ‘YAY’&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 14:54:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12853927#M9438</guid>
      <dc:creator>daniel_cadext</dc:creator>
      <dc:date>2024-06-21T14:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12857347#M9439</link>
      <description>&lt;P&gt;Thanks Daniel for your inputs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please give some code example on how you have&amp;nbsp;&lt;SPAN&gt;created an instance or AcSmSheetManager by creating an interface with the IIDs makepy generated using python/powershell?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And as a part of note, I am trying this with trial version. I hope that is not the issue here.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2024 06:42:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12857347#M9439</guid>
      <dc:creator>chandrakantakorat002</dc:creator>
      <dc:date>2024-06-25T06:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing AcSmComponents.dll error</title>
      <link>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12861599#M9440</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/543921"&gt;@norman.yuan&lt;/a&gt;&amp;nbsp;By any chance, do you know&amp;nbsp; how can we achieve the same using powershell?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2024 05:03:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/referencing-acsmcomponents-dll-error/m-p/12861599#M9440</guid>
      <dc:creator>chandrakantakorat002</dc:creator>
      <dc:date>2024-06-26T05:03:42Z</dc:date>
    </item>
  </channel>
</rss>

