Document Stencil growing fast!

G

Guy007

I read a thread here about Master In Multiple Stencils. It is related to my
problem, but it doesn't answer my question...

I have 2 separate VDX files, each one with its own document stencil. I am
NOT using external stencils in my drawing. Instead, I am programatically
populating a number of masters in the document stencil, so that when the user
opens the document, he gets the stencil incorporated with the drawing file
itself.

If I drag a shape from the Document Stencil of file A, onto drawing B, then
no new entry is created in the document stencil of B. This is because I have
the MatchByName value enabled on the masters.

However, if i drag a shape from the Document Stencil of drawing A onto
drawing A itself, then COPY and Paste the dragged shape into drawing B, then
a new master is created in the Document Stencil of file B. The master is
named something like "MyShape.23".

How can I avoid this problem? I do not want any new document stencil
masters to be created when copying shapes from one drawing to another. After
all, the masters have the same ID and Name!

PS unfortunately, using an external stencil file is not an option in my
case...
 
J

JuneTheSecond

Did you change any property including MatchByName value?
In my quick test, the drawing master is not added, if I did not change any
property.
 
P

Paul Herber

I read a thread here about Master In Multiple Stencils. It is related to my
problem, but it doesn't answer my question...

I have 2 separate VDX files, each one with its own document stencil. I am
NOT using external stencils in my drawing. Instead, I am programatically
populating a number of masters in the document stencil, so that when the user
opens the document, he gets the stencil incorporated with the drawing file
itself.

If I drag a shape from the Document Stencil of file A, onto drawing B, then
no new entry is created in the document stencil of B. This is because I have
the MatchByName value enabled on the masters.

However, if i drag a shape from the Document Stencil of drawing A onto
drawing A itself, then COPY and Paste the dragged shape into drawing B, then
a new master is created in the Document Stencil of file B. The master is
named something like "MyShape.23".

How can I avoid this problem? I do not want any new document stencil
masters to be created when copying shapes from one drawing to another. After
all, the masters have the same ID and Name!

PS unfortunately, using an external stencil file is not an option in my
case...

They are individual and separate documents, that is currently the way
Visio works. I don't think there is anything that can be done about
it. Why is it a problem?
 
G

Guy007

Basically, I have drawings which use custom stencils. I want to give out the
drawing to several users so that they can edit them. However, I do not want
to give the stencil as a separate file since this causes confusion. Also,
there is not central location where I can place the stencil for everyone to
access.

So I thought of including my custom shapes in the document stencil masters,
for them to use. The problem is that the users can copy shapes from one
drawing to another, to avoid having to redraw everything. Now, if when they
copy-paste, the document stencil they are using to actually draw their
drawings with, changes and constantly increases in size, then there is a
problem! Users will get confused if instead of one "MyShape" on the stencil
they start seeing 5 or 10 different ones! :S
 
P

Paul Herber

Basically, I have drawings which use custom stencils. I want to give out the
drawing to several users so that they can edit them. However, I do not want
to give the stencil as a separate file since this causes confusion. Also,
there is not central location where I can place the stencil for everyone to
access.

I honestly think you are trying to fix a "non-problem" with something
that will cause many problems. Just ensure the stencil is attached to
the template/document.
If having a separate stencil with your shapes is going to cause
problems for your users then there are going to be many, many more
problematical areas.
 

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