Capture a Document_ShapeAdded event from a different stencil

G

goldnhue

Is there a way to capture a document's "Document_ShapeAdded" event from a
different stencil?

I want to include all my code in the stencil, but some of the stencil code
must be triggered when a shape is added to the open document. I'm hoping to
avoid having to embed any code in the document, including the
"Document_ShapeAdded" trigger.

Thanks in advance!
 
A

Al Edlund

you might consider putting an addadvise event handler in you stencil so that
the events can be posted to you.
al
 
D

David Parker

The ShapeAdded event is also available at the application level, so you
could listen for that.
However, it does seem that you should be considering moving up to using
vb.net in Visual Studio so that you can write an add-in.
 
G

goldnhue

THANK YOU, that does it!

Al Edlund said:
you might consider putting an addadvise event handler in you stencil so that
the events can be posted to you.
al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top