Overriding name Drawing1

P

Paul Herber

We are creating drawings from a script language, in some cases several
hundred drawings. When these drawings are created, Visio gives each
drawing a name (Drawing1 etc).

This name is used, not only in the drop-down list of drawings but also
as the default Save filename.

Now, we know exactly what we want to call the drawing but we can't
find a way to override the default Drawing<n> name.

Is there any way we can do this?

The name Drawing<n> is used in English language versions of Visio.
What name is used in the various non_English version?

MTIA.
 
P

Paul Herber

Would this help?

Dim FullFileName as String

FullFileName = "C:\Test1.vsd"
docObj.SaveAs FullFileName

Unfortunately not. We don't actually want to do a save (at least not
until the user selects save). We just want to change the drawing's
name so that the drawing titles are more meaningful than Drawing-1,
Drawing-2 ... Drawing-300.
 
P

Paul Herber

Unfortunately, ActiveDocument.Name is read only.

Would doing a SaveAs to a temporary directory help? It would require a bit
of cleanup.

If I do a SaveAs, what happens when the user wants to do a real Save,
the filename and path have already been set.

Is there any perticular reason why ActiveDocument.Name is read only?
 

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