<?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 Sheet Set API - Project Number in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/sheet-set-api-project-number/m-p/8993297#M21420</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having difficulty understanding the Sheet Set manager API as it pertains to programming in Visual Studio 2019 with .Net 4.7.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the sample (from Object ARX API package) and was able to 'monkey see monkey do', but the API Object browser shows access to a AcSmSheetSetClass that has direct access to Get/Set Project (Name, Number, Phase, etc.)&amp;nbsp; I am not able to instantiate an instance of that class, only the IAcSmSheetSet interface, which does not have access to the project properties (not even in the custom property bag).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can somebody show me how to get this &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;AcSmSheetSetClass &lt;/SPAN&gt;object so I can use its methods?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2019 16:03:21 GMT</pubDate>
    <dc:creator>JamieVJohnson2</dc:creator>
    <dc:date>2019-08-28T16:03:21Z</dc:date>
    <item>
      <title>Sheet Set API - Project Number</title>
      <link>https://forums.autodesk.com/t5/net-forum/sheet-set-api-project-number/m-p/8993297#M21420</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having difficulty understanding the Sheet Set manager API as it pertains to programming in Visual Studio 2019 with .Net 4.7.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the sample (from Object ARX API package) and was able to 'monkey see monkey do', but the API Object browser shows access to a AcSmSheetSetClass that has direct access to Get/Set Project (Name, Number, Phase, etc.)&amp;nbsp; I am not able to instantiate an instance of that class, only the IAcSmSheetSet interface, which does not have access to the project properties (not even in the custom property bag).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can somebody show me how to get this &lt;SPAN style="display: inline !important; float: none; background-color: #ffffff; color: #666666; cursor: text; font-family: inherit; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 1.7142; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;AcSmSheetSetClass &lt;/SPAN&gt;object so I can use its methods?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 16:03:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/sheet-set-api-project-number/m-p/8993297#M21420</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2019-08-28T16:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet Set API - Project Number</title>
      <link>https://forums.autodesk.com/t5/net-forum/sheet-set-api-project-number/m-p/8993692#M21421</link>
      <description>&lt;P&gt;I also notice there is an IAcSmSheetSet2 that has the properties, but how to I get an instance of that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 19:16:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/sheet-set-api-project-number/m-p/8993692#M21421</guid>
      <dc:creator>JamieVJohnson2</dc:creator>
      <dc:date>2019-08-28T19:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sheet Set API - Project Number</title>
      <link>https://forums.autodesk.com/t5/net-forum/sheet-set-api-project-number/m-p/9010374#M21422</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;AcSmSheetClass is implementation of two interface IAcSmSheet, IAcSmSheet2, so to get the properties you may need to use both IAcSmSheet and IAcSmSheet2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    public void DispSheetDetails()
    {
        string dstFile;
        dstFile = @"D:\SSRN_2018_Test\TSheets\CaseTest.dst";
        AcSmSheetSetMgr mgr = new AcSmSheetSetMgr();
        AcSmDatabase db = new AcSmDatabase();
        db = mgr.OpenDatabase(dstFile, false);
        AcSmSheetSet ss = db.GetSheetSet();
        IAcSmEnumComponent EnumSheets = ss.GetSheetEnumerator();
        IAcSmComponent smComponent;
        IAcSmSheet sheet;
        IAcSmSheet2 sheet2;

        
        //  Get the first sheet
        smComponent = EnumSheets.Next();
        while (true)
        {
            if ((smComponent == null))
            {
                break;
            }


            sheet = smComponent as AcSmSheetClass;


            sheet = smComponent as IAcSmSheet;
            if (sheet == null) return;
            //  To access the revision number,
            //  Revision date, Purpose and Category,
            //  cast it as IAcSmSheet2
            sheet2 = smComponent as IAcSmSheet2;
            if (sheet2 != null)
            {
                // Revision Number
                string revNumber;
                revNumber = sheet2.GetRevisionNumber();
                // Revision Date
                string revDate;
                revDate = sheet2.GetRevisionDate();
                // Purpose
                string purpose;
                purpose = sheet2.GetIssuePurpose();
                // Category
                string cat;
                cat = sheet2.GetCategory();
            }

            smComponent = EnumSheets.Next();
        }

        mgr.Close(db);
    }&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Sep 2019 13:10:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/sheet-set-api-project-number/m-p/9010374#M21422</guid>
      <dc:creator>moogalm</dc:creator>
      <dc:date>2019-09-06T13:10:05Z</dc:date>
    </item>
  </channel>
</rss>

