How to update multiple stencils when linked with Excel database

J

JessicaRose

I am working on a project that uses multiple stencil files. I am able to
export to an excel database, and refresh each symbol by dragging to the
drawing, but am wondering how I could update multiple symbols at one time in
the actual stencil file from the excel database? The ONLY updates I can find
update one at a time and I am needing a quicker way to update my symbols'
custom properties all at once, rather than editing each individual custom
property. I am using visio 2003 standard.
Is this possible with Visio and excel?
 
J

John Marshall, MVP

Do you mean drawings rather than stencils? A stencil is a collection of
shapes. When a drawing is created the shapes are copied from a stencil to a
local stencil that is part of the drawing. It is possible to update the
masters in the local stencil and have all the appearances of those shapes on
the drawings automatically updated.

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm
 
J

JessicaRose

I mean stencils. What we have is a collection of various symbols with about
11 custom properties field attached. Several people use these symbols to
design cable systems. Sometimes, something such as price may change, and we
wanted to be able to go into a spreadsheet, change let's say, 100 symbol's
pricing, then have it automatically update within the stencil file, so future
drawings can pull the symbol with updated information. It would be so much
quicker to update within a database, rather than going into each master and
editing the cusom properties individually
 
J

John Marshall, MVP

So I guess one key feature is that you do not want already created drawings
to update to the new prices.

So it is possible to search a stencil and change the value of a custom
property. You can write code that loops through all stencils in a directory,
find all shapes using a specific custom property and then update that value
from a data source line Excel or Access.

John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm
 
A

AlEdlund

John,
I just tried it and it works from here ? In any case it's the network demo
from msdn library (office development) that shows how to do the database
lookup for BOM.

Visio 2000 Technical Articles
Custom Visio Solution: Network Configuration Example (Visio, Access, and
Excel Integration)

al
 
A

AlEdlund

Just cleared the cache and it still works here. I'm at ie7. If you add the
missing characters does it still go to the wrong url?
al
 
J

JessicaRose

What I need more than anything for this project is a code to go in and delete
the "List Price" and the "Discount Code" fields for every single stencil in
the directory. I think linking the database to the stencils works okay for
me going in and changing information, b/c the information varies per stencil
(descriptions, model numbers, etc.)
 

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