Discussion:
Document Manager API Question
(too old to reply)
Dataman
2006-02-14 15:07:46 UTC
Permalink
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.
Heikki Leivo
2006-02-14 17:04:06 UTC
Permalink
Post by Dataman
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.
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-
Guy Edkins
2006-02-14 20:56:17 UTC
Permalink
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
Post by Heikki Leivo
Post by Dataman
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.
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
2006-02-15 17:27:09 UTC
Permalink
Hello Guy,
Post by Guy Edkins
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.
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-
Post by Guy Edkins
Guy
Post by Heikki Leivo
Post by Dataman
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.
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-
Dataman
2006-02-17 01:50:22 UTC
Permalink
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.
Heikki Leivo
2006-02-17 05:10:34 UTC
Permalink
Post by Dataman
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-

Loading...