Author Topic: How can I get\set current AcSmSheetSet in the Sheet Set Manager panel?  (Read 2857 times)

0 Members and 1 Guest are viewing this topic.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
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.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: How can I get\set current AcSmSheetSet in the Sheet Set Manager panel?
« Reply #1 on: November 14, 2013, 02:42:45 PM »
Is it impossible?

Jeff_M

  • King Gator
  • Posts: 4094
  • C3D user & customizer
Re: How can I get\set current AcSmSheetSet in the Sheet Set Manager panel?
« Reply #2 on: November 14, 2013, 03:04:35 PM »
I have never found a way to get that property directly.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: How can I get\set current AcSmSheetSet in the Sheet Set Manager panel?
« Reply #3 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?

Jeff H

  • Needs a day job
  • Posts: 6150
Re: How can I get\set current AcSmSheetSet in the Sheet Set Manager panel?
« Reply #4 on: November 15, 2013, 11:03:09 AM »
I do not think you can.

BlackBox

  • King Gator
  • Posts: 3770
Re: How can I get\set current AcSmSheetSet in the Sheet Set Manager panel?
« Reply #5 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
"How we think determines what we do, and what we do determines what we get."