Sheet Sets: What Subset is a Sheet part of?

Sheet Sets: What Subset is a Sheet part of?

MarkSanchezSPEC
Advocate Advocate
578 Views
2 Replies
Message 1 of 3

Sheet Sets: What Subset is a Sheet part of?

MarkSanchezSPEC
Advocate
Advocate

I have existing VB.NET code (Thanks Lee Ambrosius)  that iterates though a Sheet Set and returns all Sheets and Subsets (see attached).  This is what I want except, when I find a Sheet, how would I go about finding what Subset it is part of (if any)?

 

In my test Sheet Set, some drawings are in Subsets and others are not, but the attached code returns all sheets regardless if they are in a Subset or not.  Like I said, this is fine, but I need to know what Subset any particualr sheet is a part of (if any).

 

TIA

 

spanqy

0 Likes
579 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

You calll the GetOwner() method of the Sheet and it returns either the SubSet or the SheetSet that owns the sheet.

0 Likes
Message 3 of 3

MarkSanchezSPEC
Advocate
Advocate

Thanks Tony - you are a legend!

 

I was just messing with that method when I got your response.  BASEDWG4 and BASEDWG4B are the one's in theSubsets:

 

?sheet.GetTitle
"BASEDWG4B - Layout1"
?sheet.GetOwner
{System.__ComObject}
    System.__ComObject: {System.__ComObject}


?sheet.GetTitle
"BASEDWG5 - Layout1"
?sheet.GetOwner
{ACSMCOMPONENTS17Lib.AcSmSheetSetClass}

 

?sheet.GetTitle
"BASEDWG4 - Layout1"
?sheet.GetOwner
{System.__ComObject}
    System.__ComObject: {System.__ComObject}


?sheet.GetTitle
"BASEDWG6A - Layout1"
?sheet.GetOwner
{ACSMCOMPONENTS17Lib.AcSmSheetSetClass}

0 Likes