Storing objects with .vsd

A

Axel101

Hello,

I developed an addin (C#) which creates objects during the design-process -
for example I create an object for each shape which is created. Of course, I
loose all my objects after storing and reloading the visio file.

Is there maybe a possibility to store an object graph with the .vsd file and
retrieve it after a reload?

I thought of something easier than catching the save event and serialize the
object graph to an additional file. Maybe there is some built-in
functionality for this...

thanks,
Axel
 
P

Paul Herber

Hello,

I developed an addin (C#) which creates objects during the design-process -
for example I create an object for each shape which is created. Of course, I
loose all my objects after storing and reloading the visio file.

Is there maybe a possibility to store an object graph with the .vsd file and
retrieve it after a reload?

I thought of something easier than catching the save event and serialize the
object graph to an additional file. Maybe there is some built-in
functionality for this...

How about having an extra, invisible page in the document, the page
could store embedded objects and you could use varoius page fields to
store information.
 
A

Axel101

Thanks for the reply. What do you exactly mean with embedded objects and how
to use them as a placeholder for my objects?
 
A

Axel101

Thanks for your reply too. I thought of this as well, but XMLSerializer isn't
able to handle some things I use, such as hashtables...So I would have to
write additional code to handle these things or serialize to a binary format
and store this in the SolutionXML. Is this the common way?
 

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