using own defined shapes

G

gast67

Visio 2007, C#

Hi,
I created a *.vss archive (stencil, template) where my shapes have user
defined cells.
How can I create these shapes via programming interface on my active page?
I tryed using the Page.Drop() method, but what argument should I pass?
The samples shows passing of predefined shapes created via
Page.DrawRectangle() or Page.DrawPolyline().

Any help would be appreciated!
Peter
 
J

JuneTheSecond

AddSection and AddRow methods might enable your wish.
Examples might be find in the Visio SDK code librarilan.
 
N

nbelyh

Hi Peter.

Suprisingly, you should pass the shape you have created to the
Page.Drop() method :)
For example:

ActivePage.Drop(
ActiveWindow.Windows
.ItemEx("Your stencil name").Document
.Masters("Your master name")
, 0, 0)

Regards, Nikolay.
 
G

gast67

Thanx Nikolay, it works!

in C# 2003:

page.Drop( application.ActiveWindow.Windows
.get_ItemEx("myLibrary").Document
.Masters.get_ItemU("Hexagon")
, 0, 0);

where "Hexagon" is one of my library entries.
 

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