AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Automatically linking pictures in Autocad Map?

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
391 Views, 2 Replies

Automatically linking pictures in Autocad Map?

I have written a vba program in access that reads a textfile, and stores the
data in a table and then makes an autocadsript that inserts blocks for every
x,y point in the table. Every x,y block is asigned a uniqe identfier so I
can import the access database into autocad and link the x,y points to the
database.

My problem is, that the textfile I import into access, contains a filename
and path to a picture for every x,y point, which I includes in the access
table. Is it possible to somehow link every x,y point with the picture (I
know its possible to do this manually, but since I have several thousends of
points, and every point ha an uniqe ID i was hoping that you could do this
in the same manner as linking every x,y point to the access table.

Thanks,
Marcus Hansson
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

What you need to do is add a hyperlink to each block with the file name of
the corresponding image.

If you are already using a VBA app, it shouldn't be too hard to extend it to
do this also...

The hyperlink could get added when the block is inserted or after the block
has been linked to the db.

Cheers,
Will

"Kalle Flink" wrote in message
news:46716309BED237BD64438558B205E59F@in.WebX.maYIadrTaRb...
> I have written a vba program in access that reads a textfile, and stores
the
> data in a table and then makes an autocadsript that inserts blocks for
every
> x,y point in the table. Every x,y block is asigned a uniqe identfier so I
> can import the access database into autocad and link the x,y points to the
> database.
>
> My problem is, that the textfile I import into access, contains a filename
> and path to a picture for every x,y point, which I includes in the access
> table. Is it possible to somehow link every x,y point with the picture (I
> know its possible to do this manually, but since I have several thousends
of
> points, and every point ha an uniqe ID i was hoping that you could do this
> in the same manner as linking every x,y point to the access table.
>
> Thanks,
> Marcus Hansson
>
>
Message 3 of 3
Anonymous
in reply to: Anonymous

Marcus,

You should be able to set this up with ADEDEFDOCVIEW (Define Document View)
and then view the pictures with ADEDOCVIEW (View Associated Documents)

Jim B.

"Kalle Flink" wrote in message
news:46716309BED237BD64438558B205E59F@in.WebX.maYIadrTaRb...
> I have written a vba program in access that reads a textfile, and stores
the
> data in a table and then makes an autocadsript that inserts blocks for
every
> x,y point in the table. Every x,y block is asigned a uniqe identfier so I
> can import the access database into autocad and link the x,y points to the
> database.
>
> My problem is, that the textfile I import into access, contains a filename
> and path to a picture for every x,y point, which I includes in the access
> table. Is it possible to somehow link every x,y point with the picture (I
> know its possible to do this manually, but since I have several thousends
of
> points, and every point ha an uniqe ID i was hoping that you could do this
> in the same manner as linking every x,y point to the access table.
>
> Thanks,
> Marcus Hansson
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost