TheSwamp

Code Red => .NET => Topic started by: Andrey Bushman on November 13, 2013, 05:27:38 AM

Title: How can I get\set current AcSmSheetSet in the Sheet Set Manager panel?
Post by: Andrey Bushman on November 13, 2013, 05:27:38 AM
Hi all.

I opened some Sheet Sets in the Sheet Set Manager panel. How can I get\set the current Sheet Set (i. e. AcSmSheetSet instance) in the Sheet Set Manager panel?

Thank you.
Title: Re: How can I get\set current AcSmSheetSet in the Sheet Set Manager panel?
Post by: Andrey Bushman on November 14, 2013, 02:42:45 PM
Is it impossible?
Title: Re: How can I get\set current AcSmSheetSet in the Sheet Set Manager panel?
Post by: Jeff_M on November 14, 2013, 03:04:35 PM
I have never found a way to get that property directly.
Title: Re: How can I get\set current AcSmSheetSet in the Sheet Set Manager panel?
Post by: Andrey Bushman on November 15, 2013, 01:31:47 AM
I have never found a way to get that property directly.
Maybe I can to do it via the current instance of the Sheet Sett Manager palette (this is my assumption)... I. e. through the current value of its combobox... How can I get this object?
Title: Re: How can I get\set current AcSmSheetSet in the Sheet Set Manager panel?
Post by: Jeff H on November 15, 2013, 11:03:09 AM
I do not think you can.
Title: Re: How can I get\set current AcSmSheetSet in the Sheet Set Manager panel?
Post by: BlackBox on November 15, 2013, 03:38:58 PM
The only way I know of doing this:

Code - C#: [Select]
  1. doc.SendStringToExecute("._-opensheetset " + yourSheetSetFilePath + "\n", false, false, true);
  2.  

... And this will either open and set the target sheet set current (if not already open), or set the target sheet set current (if already open).

You may need to hook the CommandEnded event, filtering for OpenSheetSet Command of course, in order to resume your code (once the target sheet set has been made current), but something along this line should work for you, no?

HTH