Document Manager API Question

Discussion in 'SolidWorks' started by Dataman, Feb 14, 2006.

  1. Dataman

    Dataman Guest

    Has anyone successfully read out and parsed the embedded XML stream
    from an assembly into something even remotely resembling an indented
    BOM? I am looking for something that includes configuration and custom
    properties data as well.
     
    Dataman, Feb 14, 2006
    #1
  2. Dataman

    Heikki Leivo Guest

    Hello,

    Do you mean the swDocManager.dll found in the Common Files\Shared folder?
    How do you use the document manager? I have tried to use it, but it seems
    that you need a license key string to use the class. Is there a trick of
    some kind?

    I guess that using xml style sheets you could transform the xml data to
    whatever you wish.

    -h-
     
    Heikki Leivo, Feb 14, 2006
    #2
  3. Dataman

    Guy Edkins Guest

    Yes it requires a license and I have one however the XML stream is..... well
    very complex to decipher and still trap all needed data. I have yet to parse
    the file in a fast and robust way. I will admit being a bit of a neophyte
    with XML. However that being siad I would still like to know if others have
    acheived this yet.


    Guy
     
    Guy Edkins, Feb 14, 2006
    #3
  4. Dataman

    Heikki Leivo Guest

    Hello Guy,
    How did you get the license? I'd like to have another, too. Could you
    cut/paste a sample XML? There aint no so complex xml files a nerd cannot
    decipher.

    -h-
     
    Heikki Leivo, Feb 15, 2006
    #4
  5. Dataman

    Dataman Guest

    As a SolidWorks Partner we have access to the Doc Manager API. The XML
    I have is a bit big to place here. Its not the size, its the speed and
    accuracy I need to parse it at that matters. I am finding it a bit slow.
     
    Dataman, Feb 17, 2006
    #5
  6. Dataman

    Heikki Leivo Guest

    Hello Dataman,

    We are a partner as well and I got a license. I just dont have realized to
    ask for it.... 'doh! To me the XML seems pretty self-describing and very
    useful. It contains files, models and model references plus lots of extra
    information which might be useful. The XML does not contain custom
    properties, however. Open the XML file to Internet Exploder! Have you ever
    used MSXML.DomDocument to parse xml documents? With it you can easily make
    queries to the xml data.

    -h-
     
    Heikki Leivo, Feb 17, 2006
    #6
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 (here). After that, you can post your question and our members will help you out.