Document Manager API Question

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.

Reply to
Dataman
Loading thread data ...

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-

Reply to
Heikki Leivo

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

Reply to
Guy Edkins

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-

Reply to
Heikki Leivo

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.

Reply to
Dataman

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-

Reply to
Heikki Leivo

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.