Problems with Shape Data Sets

J

JessicaRose

I posted awhile back with something similar, but have run into a new problem.
I have about 30 stencil files, making up about 1700 masters. What I am
trying to do is go in and update the whole stencil file by taking out two
custom properties (list price and discount code), and updating one field with
today's date (revision date).

What I am using is shape data sets to do this. For the first two files,
this worked perfectly. When I got to my third file and applied my new shape
data sets, only the date changed. I told the shape data sets to delete the
two rows, but once applied, the two rows remain. Is there something I'm
missing? I don't know why this function would work for some files, and then
not work for others. I really need a simple solution for this. It would
take entirely too long to go in and edit each shape data field individually.
Is this something that I will eventually have to create VBA code for?
 
B

Barb Way

I can see the same thing in my own testing - when the Shape Data on the
existing masters was not originally assigned through a Shape Data Set. In
other words, if the master had individual assigned Shape Data, versus
having it's original properties assigned to it through Shape Data Sets.

In that case, it will require 'walking' the shapes (manually or
programmatically) to remove the extra fields. If you have data in the
fields that you need to preserve, then you will need to remove fields that
aren't known to exist in the desired data set. If not, you could try
blasting off all existing shape data, then assigning the data sets again to
all shapes in the stencil. Unfortunately, there isn't a 'delete all shape
data' type of command or API that will work across the whole stencil, for
instance.


Barb Way
Product Support - Visio
Microsoft Corporation
[This posting is provided "As Is" with no warranties, and confers no
rights.]
--------------------
Thread-Topic: Problems with Shape Data Sets

I posted awhile back with something similar, but have run into a new
problem.
I have about 30 stencil files, making up about 1700 masters. What I am
trying to do is go in and update the whole stencil file by taking out two
custom properties (list price and discount code), and updating one field
with
today's date (revision date).

What I am using is shape data sets to do this. For the first two files,
this worked perfectly. When I got to my third file and applied my new
shape
data sets, only the date changed. I told the shape data sets to delete the
two rows, but once applied, the two rows remain. Is there something I'm
missing? I don't know why this function would work for some files, and
then
not work for others. I really need a simple solution for this. It would
take entirely too long to go in and edit each shape data field
individually.
Is this something that I will eventually have to create VBA code for?
 

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