Data does not refresh to drawing.

K

Ken

I extracted data from a Visio Drawing that was from a converted CAD DWG file.
I then linked it back to Visio from Access.
It will refresh the linked table but not the data on the shape in my
drawing!?!
Any sugestions?
 
A

AlEdlund

which drawing are you referring to (the cad or the visio)? Are you using
v2007 pro? Does the shape have a shapedata/property with the same name as
the access datafield? If you 'drag' the external datarecord field from the
external data table to the shape, does it apply?
al
 
K

Ken N

I am working with a Visio drawing created with 2007 Pro, the columns in
Access are the same as what they are labeled in Visio. (The Data came from
the drawing.) The table in Visio will update to the Access Databse but the
shape will not! I selected automaticaly link to do the whole page. I have
also linked a single record and it will not update.
 
A

AlEdlund

How are you linking the data to Access (the data linking is a read only
process, the database wizard round trips but the fields have to have been in
the shapes when you started)?
If you select from the menu bar view => external data window, how many
tables show up?

al
 
K

Ken N

I used the wizard, the access table was built from the drawing so all data
and column names were the same at the start. There is only the one table in
the external data window. When I refresh that table, it will update, but not
the shape. I have done this before and had no problems on shapes that I built.
 
K

Ken N

I used the wizard, the access table was built from the drawing so all data
and column names were the same at the start. There is only the one table in
the external data window. When I refresh that table, it will update, but not
the shape. I have done this before and had no problems on shapes that I built.
 
A

AlEdlund

In the left hand column of the table in the external data window, is there a
little chain link displayed? This shows that the record and the shape are
linked. If I remember correctly, if you edit a shape manually the link will
be broken and you will have to relink the shape to the record.
al
 
K

Ken N

I have reworded the question in a new thread dated today 6/25/09. The problem
is linking to the existing shape without creating a new datagraphic.
--Ken N
 
K

Ken N

Running XP Pro on a Network with Visio 2007:
Under tools I did use the “Database Wizardâ€
Following the wizard through-
Link shapes to database records
Shapes in drawing
Select shapes
Choose source
Table
Choose Prim-Key Field
Choose default key or click none
If I choose none it does nothing!! If I choose default it changes all to the
default. But neither give me a workable link. No linked table and a error
message when I try to refresh –
 
A

AlEdlund

As a question
"Running XP Pro on a Network with Visio 2007", are Visio, the drawing, and
Access all on the same client workstation?
........
 
K

Ken N

No, Access is on a server, I can link to the database. My problem is linking
the original shape. The original shape is just a rectangle that was imported
from CAD. It had two properties (a room number and name) that I want linked
to the database. Because the room number and the door numbers look similar we
do not show the room number on the drawing and I am using it as the key. I
exported the data from the drawing originally so it would make sense that I
should be able to link back to it. The only part of the shape that is visible
is the room name so it acts like a label for the room. I cannot seem to tie
the two together without creating a new datagraphic. The drawings take up
enough space without adding redundancy, which I do not want. Monday I will
try to make a linked master. I do not have the path to the “Master Databaseâ€
so I will have to wait for my IT dept to show up. (See if I keep resetting
their servers!)
 
K

Ken N

I am not sure I can legally do, I have tried working with the wizard then
copying field from the new corresponding master over to the existing shape
sheet. It seems promising but the data still will not refresh.

This is the-

User-Defined Cells
ODBCConnection="ODBCDataSource=MS Access
Database|ODBCQualifier=Z:\OSPKeyBE|ODBCTable=tblRoomName|2|Prop_XXXXX=Prop.XXXXX|Prop_Row_1=Prop.Row_1|1|ShapeKey=Prop.ShapeKey=32|"

"This cell contains the link information for the Database Wizard."

User.ODBCChecksum="d91ae3e1"

"This cell contains a checksum of the database record."

This lets me select records but does not refresh.
If you have some influence, you could convince MS to allow us to print or
copy shape sheets.
This in itself would make working with shapes easier.
 
A

AlEdlund

I suggested adding a macro to refresh the drawing
al


Public Sub DoRefresh()
Dim myPage As Visio.Page
Dim myDoc As Visio.Document

Set myDoc = Visio.Application.ActiveDocument

For Each myPage In myDoc.Pages
RUNADDON ("DBRS")
' MsgBox CStr(myPage.Name)
Next myPage

End Sub
 
A

AlEdlund

a v2007 version for refresh


Public Sub DoRefresh()
Dim myPage As Visio.Page
Dim myDoc As Visio.Document

Set myDoc = Visio.Application.ActiveDocument

Dim visAddons As Visio.Addons
Dim addonDBRS As Visio.Addon

Set visAddons = Application.Addons
Set addonDBRS = visAddons("DBRS")


For Each myPage In myDoc.Pages
addonDBRS.Run ""
' MsgBox CStr(myPage.Name)
Next myPage

End Sub
 

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