Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Load XMP file and Preserve Prior XMP File to load Another

Last post 21 Dec 2007, 9:15 AM by Glenn. 2 replies.
Sort Posts: Previous Next
  •  12 Dec 2007, 3:11 PM 12864

    Load XMP file and Preserve Prior XMP File to load Another

    Is it possible to Load XMP file and Preserve a previously loaded XMP File.

     I would like to store a set of annotations into a Symbol Table in SQL as an XMP File so that a set

    of previously saved annotations can be stored as a group.

     Is it possible to load multiple XMP files (in my case my -symbols-) into the same viewer without destroying the first loade XMP file.

     The Annotate Demo program allows loading an XMP file but if you try to load a second XMP file the first one will be removed.

     Any help would be appreciated

    Filed under: ,
  •  19 Dec 2007, 5:13 PM 12905 in reply to 12864

    Re: Load XMP file and Preserve Prior XMP File to load Another

    You can control how the annotations are loaded by using the XmpFormatter directly.  Just create an instance of XmpFormatter and use its Deserialize method to read the annotation data into an object.  Most likely this object will be a LayerCollection, but it might be a single annotation as well.

    Once deserialized, you can add the annotations or layers to the existing annotations.
     


    Glenn Chittenden Jr.
    Atalasoft Development Team
  •  21 Dec 2007, 9:15 AM 12908 in reply to 12864

    Re: Load XMP file and Preserve Prior XMP File to load Another

    Here is a KB article with example code for doing this:  http://www.atalasoft.com/KB/article.aspx?id=10218
    Glenn Chittenden Jr.
    Atalasoft Development Team
View as RSS news feed in XML