Visio Guy

Visio Discussions => ShapeSheet & Smart Shapes => Topic started by: MacGyver on April 30, 2013, 06:19:05 PM

Title: Adding user cell to pagesheet on drop?
Post by: MacGyver on April 30, 2013, 06:19:05 PM
I have a shape I got from some stencil somewhere that when dropped onto a page, it automatically adds a user defined cell to the page sheet, "User.ShowU".  How does it do that? 

The shape also has an action row that either allows you to "Show U Sizes" or "Hide U Sizes" which hides or displays the text for all of these like shapes on the page.

I understand the actions and how that is done but no clue on how to add user defined cells to the page sheet without using the Eventdrop cell. Would love some insight on how this is done.
Title: Re: Adding user cell to pagesheet on drop?
Post by: Surrogate on April 30, 2013, 06:59:01 PM
in Document Stencil double click by master named "Rack". And look at page's shapesheet - there you can see cell User.ShowU
When you drop master "Rack" to new page, it add cell User.ShowU to that Page's ShapeSheet
Title: Re: Adding user cell to pagesheet on drop?
Post by: MacGyver on April 30, 2013, 07:07:38 PM
Wow, can't tell you how much time I've wasted trying to figure this out and such a simple answer.  Much appreciated!!
Title: Re: Adding user cell to pagesheet on drop?
Post by: aledlund on April 30, 2013, 08:17:56 PM
another cell that probably has more to do about what happens when the shape is dropped is the "user.solsh" cell which identifies which add-in the shape applies to. Short answer when the shape is dropped it is recognized as having code associated with it, and the custom code is being called.

al