<?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: SheetSet Manager in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8610047#M5875</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14801"&gt;@Ed__Jobe&lt;/a&gt;&amp;nbsp; for spending all this time. I really learnt good deal of VBA syntax&amp;nbsp; and VBA error trap today. I appreciate your time and help.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Feb 2019 00:07:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-21T00:07:15Z</dc:date>
    <item>
      <title>SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8593099#M5857</link>
      <description>&lt;P&gt;I am trying to find the parent sheetset using same code as shown &lt;A href="https://forums.autodesk.com/t5/visual-basic-customization/ssm-getparentsheetset/m-p/1143455#M58560" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. But it isn't working. Any advice? The &lt;A href="http://help.autodesk.com/view/OARX/2019/DEU/?guid=GUID-E319D170-4DCB-4DBC-A7AE-5C77358AD16C" target="_blank" rel="noopener"&gt;documentation&lt;/A&gt; does not provide any example. Can someone please guide or provide a working example. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 15:44:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8593099#M5857</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-13T15:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8596524#M5858</link>
      <description>&lt;P&gt;I took a look at the function and see where the API might be hanging up, but will have to do some research or have software development look at it closer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If what you are interested in is knowing which sheet set a drawing and layout is associated, you can get the value by checking the Sheet Set hint stored in the drawing.&amp;nbsp; The hint is stored in a dictionary named "AcSheetSetData".&amp;nbsp; The&amp;nbsp;AcSheetSetData dictionary contains the following values:&lt;/P&gt;
&lt;UL style="list-style-position: inside;"&gt;
&lt;LI&gt;Sheet Set Filename ("ShSetFileName")&lt;/LI&gt;
&lt;LI&gt;Sheet Set Version ("ShSetVersion")&lt;/LI&gt;
&lt;LI&gt;Drawing Filename ("SheetDwgName")&lt;/LI&gt;
&lt;LI&gt;Layout Name ("layoutName")&lt;/LI&gt;
&lt;LI&gt;Layout Handle ("LayoutHandle")&lt;/LI&gt;
&lt;LI&gt;Update Count ("UpdateCount")&lt;/LI&gt;
&lt;LI&gt;Last Updated Time ("UpdateTime")&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;To access the dictionary and its records, you could do something based on the following sample code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub GetSheetSetHint()
  On Error Resume Next
  
  Dim ssDict As AcadDictionary
  Set ssDict = ThisDrawing.Dictionaries("AcSheetSetData")
  
  If Err.Number &amp;lt;&amp;gt; 0 Then
    MsgBox "Dictionary not found"
    End
  End If
  
  Dim ssXrec As AcadXRecord
  Dim xRecVal, xRecType
  For Each ssXrec In ssDict
    ssXrec.GetXRecordData xRecType, xRecVal
    
    For nXrec = 0 To UBound(xRecType)
      MsgBox "Record: " + ssXrec.Name &amp;amp; vbLf &amp;amp; _
             "Value: " + CStr(xRecVal(nXrec))
    Next
  Next ssXrec
End Sub&lt;/PRE&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Feb 2019 17:13:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8596524#M5858</guid>
      <dc:creator>ambrosl</dc:creator>
      <dc:date>2019-02-14T17:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8598926#M5859</link>
      <description>&lt;P&gt;Thanks a ton! This is a huge help.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Feb 2019 15:54:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8598926#M5859</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-15T15:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8608754#M5860</link>
      <description>&lt;P&gt;Hi Lee, thanks agin for your last help with locating the sheetset hints. Can you also shed some light on &lt;A href="http://help.autodesk.com/view/OARX/2019/DEU/?guid=GUID-CB451FED-8FB9-4405-97D5-3CD638377332" target="_blank" rel="noopener"&gt;this&lt;/A&gt; method. I am trying following to get the sheets in each subset. There is no error that is reported, instead AutoCAD just crashes. The sheet set contains 3 subsets and each subset contains about 4 to 6 sheets. I am not sure what is causing the drawing to crash. Thank for your help.&lt;/P&gt;
&lt;PRE&gt;Public Sub Test()
Dim ssm As New AcSmSheetSetMgr
Dim db As New AcSmDatabase
Dim str1 As String
str1 = "H:\2018\Sheet set\Sheet Design 2.dst"
Set db = ssm.OpenDatabase(str1)
Dim dbEnum As IAcSmEnumPersist
Set dbEnum = db.GetEnumerator
Dim item As IAcSmPersist
Set item = dbEnum.Next
Dim shEnum As IAcSmEnumComponent
Dim csPr As AcSmSheetSet
Dim shValue As IAcSmComponent
Dim objs() As Object
Dim retObjs As Object&lt;BR /&gt;&lt;BR /&gt;    On Error Resume Next&lt;BR /&gt;    While Not item Is Nothing
        If item.GetTypeName = "AcSmSheetSet" Then
        Set csPr = item
        Set shEnum = csPr.GetSheetEnumerator
        Set shValue = shEnum.Next
        While Not shValue Is Nothing
            On Error Resume Next
            Set retObjs = shValue.GetDirectlyOwnedObjects(objs)
            Set shValue = shEnum.Next
        Wend
        End If
    Set item = dbEnum.Next
    Wend
End Sub&lt;/PRE&gt;
&lt;P&gt;EDIT: The hyperlink is not working for some reason. Here is the path&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ActiveX: Sheet Set Object Reference
	+Developer's Guide
	-Reference Guide
	 +Enums
	 -Interfaces
	  +A Interfaces
	  -I Interfaces
		-IAcSmComponent Object (SSO)
		  IAcSmComponent.Clear Method (SSO)
		  IAcSmComponent.GetCustomPropertyBag Method (SSO)
		  IAcSmComponent.GetDatabase Method (SSO)
		  IAcSmComponent.GetDesc Method (SSO)
		  IAcSmComponent.GetDirectlyOwnedObjects Method (SSO) 'need help with this method&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 15:38:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8608754#M5860</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-20T15:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8608786#M5861</link>
      <description>&lt;P&gt;The link to the method doesn't seem to work, so I am not sure which method at the moment you are referring to.&amp;nbsp; I did an AU session on the Sheet Set API several years ago, it might be helpful in trying to figure out what you are doing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a link to the posted handout, there are code samples in the handout&amp;nbsp;and&amp;nbsp;available for download:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.autodesk.com/autodesk-university/class/Harnessing-Power-AutoCAD-COM-APIs-2015#handout" target="_blank" rel="noopener"&gt;https://www.autodesk.com/autodesk-university/class/Harnessing-Power-AutoCAD-COM-APIs-2015#handout&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you don't get it figured out and what method you are referring to.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 15:44:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8608786#M5861</guid>
      <dc:creator>ambrosl</dc:creator>
      <dc:date>2019-02-20T15:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8608845#M5862</link>
      <description>&lt;P&gt;That is exactly the handout I am using and it has gotten me this far. So thanks again. Unfortunately the method I am referring to is not covered anywhere in the handout or examples I found on the web -&lt;/P&gt;
&lt;UL class="node-tree" tabindex="-1" role="group"&gt;
&lt;LI class="node" role="treeitem" data-id="GUID-CB451FED-8FB9-4405-97D5-3CD638377332" aria-selected="true"&gt;&lt;A href="http://help.autodesk.com/view/OARX/2019/DEU/?guid=GUID-CB451FED-8FB9-4405-97D5-3CD638377332" data-url="/cloudhelp/2019/ENU/AutoCAD-ActiveX-SSO/files/GUID-CB451FED-8FB9-4405-97D5-3CD638377332.htm" data-type="guid" target="_blank"&gt;&lt;SPAN class="text"&gt;IAcSmComponent.GetDirectlyOwnedObjects Method (SSO)&lt;/SPAN&gt;&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;My department works heavily with subsets and I was trying to see if there was a way to retrieve the sheets for each subset. I can certainly get all the members iterating through the database enumerator and then checking the member types. But It would be a lot easier if the above method returned the sheets contained in the subset!? Also, I wasn't sure if I am calling the method correctly&lt;/P&gt;
&lt;PRE&gt;&lt;FONT color="#999999"&gt;Public Sub Test()
.......................&lt;BR /&gt;.......................&lt;/FONT&gt;
Dim objs() As Object
Dim retObjs As Object
&lt;FONT color="#999999"&gt;....................&lt;BR /&gt;....................
            On Error Resume Next&lt;/FONT&gt;
            Set retObjs = shValue.GetDirectlyOwnedObjects(objs)
&lt;FONT color="#999999"&gt;...................&lt;BR /&gt;...................
End Sub&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 16:08:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8608845#M5862</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-20T16:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8608939#M5863</link>
      <description>&lt;P&gt;While I'm not familiar with this ssm method, you can improve your troubleshooting odds by using a structured error handler. It's a misconception that &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;On Error Resume Next&lt;/STRONG&gt;&lt;/FONT&gt; only applies to the following line. It stays in effect until you issue &lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;On Error GoTo 0&lt;/STRONG&gt;&lt;/FONT&gt;. Thus, you didn't need to use it twice. It also, masks valid errors, making them unhandled and crashing your app without warning. Notice the commented out section of the err handler. The first time running this where an error occurs, the logic will fall through to the Case Else and display the error in the MsgBox. Use this to modify the first select case and add the logic to properly handle the error. Run it again and handle any other errors that show up. This will at least tell you why acad is crashing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub Test()&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;On Error GoTo&lt;/FONT&gt; Err_Control&lt;BR /&gt;
Dim ssm As New AcSmSheetSetMgr
Dim db As New AcSmDatabase
Dim str1 As String
str1 = "H:\2018\Sheet set\Sheet Design 2.dst"
Set db = ssm.OpenDatabase(str1)
Dim dbEnum As IAcSmEnumPersist
Set dbEnum = db.GetEnumerator
Dim item As IAcSmPersist
Set item = dbEnum.Next
Dim shEnum As IAcSmEnumComponent
Dim csPr As AcSmSheetSet
Dim shValue As IAcSmComponent
Dim objs() As Object
Dim retObjs As Object&lt;BR /&gt;&lt;BR /&gt;    &lt;FONT color="#339966"&gt;'On Error Resume Next&lt;/FONT&gt;&lt;BR /&gt;    While Not item Is Nothing
        If item.GetTypeName = "AcSmSheetSet" Then
        Set csPr = item
        Set shEnum = csPr.GetSheetEnumerator
        Set shValue = shEnum.Next
        While Not shValue Is Nothing
            &lt;FONT color="#339966"&gt;'On Error Resume Next&lt;/FONT&gt;
            Set retObjs = shValue.GetDirectlyOwnedObjects(objs)
            Set shValue = shEnum.Next
        Wend
        End If
    Set item = dbEnum.Next
    Wend&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Exit_Here:&lt;BR /&gt;   &lt;FONT color="#3366FF"&gt;Exit Sub&lt;/FONT&gt;&lt;BR /&gt;Err_Control:&lt;BR /&gt;   &lt;FONT color="#3366FF"&gt;Select Case&lt;/FONT&gt; Err.Number&lt;BR /&gt;      &lt;FONT color="#339966"&gt;'Add your Case selections here&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;   'Case Is = 1000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;      'Handle error&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;      'Err.Clear&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#339966"&gt;      'Resume Exit_Here&lt;/FONT&gt;&lt;BR /&gt;   &lt;FONT color="#3366FF"&gt;Case Else&lt;/FONT&gt;&lt;BR /&gt;      &lt;FONT color="#3366FF"&gt;MsgBox&lt;/FONT&gt; Err.Number &amp;amp; ", " &amp;amp; Err.Description, , "Test"&lt;BR /&gt;      Err.Clear&lt;BR /&gt;      &lt;FONT color="#3366FF"&gt;Resume&lt;/FONT&gt; Exit_Here&lt;BR /&gt;   &lt;FONT color="#3366FF"&gt;End Select&lt;/FONT&gt;
End Sub&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 16:38:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8608939#M5863</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-02-20T16:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8608958#M5864</link>
      <description>&lt;P&gt;Thanks this is helpful. Testing it right now.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 16:42:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8608958#M5864</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-20T16:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609046#M5865</link>
      <description>&lt;P&gt;Also, notice that the Title of the MsgBox is the same as the containing method/function. This will tell you exactly where the error is being generated, for when you have multiple methods with error handlers.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 17:06:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609046#M5865</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-02-20T17:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609730#M5866</link>
      <description>&lt;P&gt;I am still getting the same error.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error.png" style="width: 903px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/605438i3FE703C758C570F6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error.png" alt="Error.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I suspect it has to do with these lines&lt;/P&gt;
&lt;PRE&gt;Dim objs() As Object
Dim retObjs As Object&lt;/PRE&gt;
&lt;P&gt;If I comment those two lines out then it does not crash but throws this error&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error_2.png" style="width: 587px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/605439iA5212C7D59E47092/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error_2.png" alt="Error_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;That tells me that I am doing something wrong with the way objs is declared. The help for that method only says&lt;/P&gt;
&lt;PRE&gt;Syntax
GetDirectlyOwnedObjects(objects As Object()) As Object
objects	                 Output SAFEARRAY of the IUnknown pointers of the directly owned objects&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 21:26:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609730#M5866</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-20T21:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609806#M5867</link>
      <description>&lt;P&gt;I would try declaring objs as a variant, not an array(). You can't directly assign to an array, you have to assign to each element of the array. So if you use a variant, the GetDirectlyOwnedObjects function can assign anything it wants to the variable. You're also calling it wrong. According to the syntax you showed, objs is the output from the GetDirectlyOwnedObjects function. You're supposed to be supplying a variable for the function to set as an argument. The call should look something like:&lt;/P&gt;
&lt;PRE&gt;Dim retObjs As Variant

shValue.GetDirectlyOwnedObjects retObjs

MsgBox "There are " &amp;amp; UBound(retObjs) &amp;amp; " sheets."&lt;/PRE&gt;
&lt;P&gt;So you don't need to declare two variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 22:03:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609806#M5867</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-02-20T22:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609889#M5868</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14801"&gt;@Ed__Jobe&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;............The call should look something like:&lt;/P&gt;
&lt;PRE&gt;Dim retObjs As Variant

shValue.GetDirectlyOwnedObjects retObjs

MsgBox "There are " &amp;amp; UBound(retObjs) &amp;amp; " sheets."&lt;/PRE&gt;
&lt;P&gt;.............&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I tried doing that. This is what I get now&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error_3.png" style="width: 806px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/605468i54C0AD7315348A7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error_3.png" alt="Error_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 22:33:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609889#M5868</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-20T22:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609914#M5869</link>
      <description>&lt;P&gt;Try declaring retObjs() As Object. At least this time you're not trying to set another variable to an instance of the array. Also, I see that Resume Next crept back in. Get rid of that. You don't need it with the error handling I gave you. When you find out the error number that results from calling this function, you can add a Select Case for it and a line lable at the point before you call the function. For example, note the line lable GetObjs:&lt;/P&gt;
&lt;PRE&gt;GetObjs:
   shValue.GetDirectlyOwnedObjects retObjs&lt;BR /&gt;   ... &lt;BR /&gt;&lt;BR /&gt;   Select ... &lt;BR /&gt;      Case = 12345 &lt;BR /&gt;         'add logic to handle error &lt;BR /&gt;         'clear the err object &lt;BR /&gt;         'go back to where the error occurred and try again. &lt;BR /&gt;         Resume GetObjs &lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 23:01:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609914#M5869</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-02-20T23:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609937#M5870</link>
      <description>&lt;P&gt;Still the same error.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error_4.png" style="width: 597px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/605476i84893755951ED9C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error_4.png" alt="Error_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 22:54:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609937#M5870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-20T22:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609944#M5871</link>
      <description>&lt;P&gt;You didn't declare it as an array. Note the parens. Also reread my prev post. I edited it before you posted your last reply.&lt;/P&gt;
&lt;P&gt;Dim retObjs() As Object&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 22:59:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609944#M5871</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2019-02-20T22:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609995#M5872</link>
      <description>&lt;P&gt;Thanks for that correction. However, now I am back to the original error&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Error_5.png" style="width: 683px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/605482iC05AEF362DB7950E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error_5.png" alt="Error_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;
Can you please try a small sample sheetset at your end and see if it works for you? At this point I am not even sure what else to look at. It's such a small piece of code.</description>
      <pubDate>Wed, 20 Feb 2019 23:31:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8609995#M5872</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-20T23:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8610014#M5873</link>
      <description>&lt;P&gt;I haven't spent much time on looking at why the method causes a fatal error with VBA specifically, but I think its problem is rooted in the return of an array of &lt;EM&gt;IUnknown&lt;/EM&gt; and possibly it shouldn't have been exposed.&amp;nbsp; With that said, you should most likely use the &lt;EM&gt;GetSheetEnumerator&lt;/EM&gt; method of the &lt;EM&gt;AcSmSubset&lt;/EM&gt; object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code iterates through the sheet set to locate the subsets and then iterates the Subsets and displays the name of each sheet in the subset:&lt;/P&gt;
&lt;PRE&gt;Public Sub SSO_Step()
  ' Get a reference to the Sheet Set Manager object
  Dim sheetSetManager As IAcSmSheetSetMgr
  Set sheetSetManager = New AcSmSheetSetMgr
  
  ' Open a Sheet Set file
  Dim sheetSetDatabase As AcSmDatabase
  Set sheetSetDatabase = sheetSetManager.OpenDatabase("H:\2018\Sheet set\Sheet Design 2.dst", False)
  
  ' Return the name and description of the sheet set
  MsgBox "Sheet Set Name: " + sheetSetDatabase.GetSheetSet().GetName() + vbCrLf + _
         "Sheet Set Description: " + sheetSetDatabase.GetSheetSet().GetDesc()

  Dim enumerator As IAcSmEnumPersist
  Dim itemSheetSet As IAcSmPersist
  
  ' Get the enumerator for the objects in the sheet set
  Set enumerator = sheetSetDatabase.GetEnumerator()
  Set itemSheetSet = enumerator.Next()
  
  ' Step through the objects in the sheet set
  Do While Not itemSheetSet Is Nothing
    ' Increment the counter of the object is a sheet
    If itemSheetSet.GetTypeName() = "AcSmSubset" Then
      Dim subset As AcSmSubset
      Set subset = itemSheetSet
      
      Dim enumSheets As IAcSmEnumComponent
      Dim itemSheet As IAcSmPersist
      Dim sheet As AcSmSheet
  
      Set enumSheets = subset.GetSheetEnumerator()
      Set itemSheet = enumSheets.Next()
      
      Do While Not itemSheet Is Nothing
        Set sheet = itemSheet
      
        MsgBox "Subset Name: " + subset.GetName() &amp;amp; vbLf &amp;amp; "Sheet Name: " + sheet.GetName()
      
        ' Get next object
        Set itemSheet = enumSheets.Next()
      Loop
      
    End If
    
    ' Get next object
    Set itemSheetSet = enumerator.Next()
  Loop
  
  ' Close the sheet set
  sheetSetManager.Close sheetSetDatabase
End Sub&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Feb 2019 23:44:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8610014#M5873</guid>
      <dc:creator>ambrosl</dc:creator>
      <dc:date>2019-02-20T23:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8610046#M5874</link>
      <description>&lt;P&gt;Thanks Lee. Again great help as before. Really appreciate your time.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 00:05:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8610046#M5874</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-21T00:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: SheetSet Manager</title>
      <link>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8610047#M5875</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14801"&gt;@Ed__Jobe&lt;/a&gt;&amp;nbsp; for spending all this time. I really learnt good deal of VBA syntax&amp;nbsp; and VBA error trap today. I appreciate your time and help.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 00:07:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/sheetset-manager/m-p/8610047#M5875</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-21T00:07:15Z</dc:date>
    </item>
  </channel>
</rss>

