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.
Document Manager API Question
Feb 14, 2006
5 Replies
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-
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
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-
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.
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-
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required